Fix the offset checks in the trans routines
commit5718a4761af9b77ea17b64f12f1010c99f738c96
authorVolker Lendecke <vl@samba.org>
Sat, 8 Nov 2008 16:14:06 +0000 (8 17:14 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 27 Nov 2008 14:28:47 +0000 (27 15:28 +0100)
tree298a5cece88447e26b8f675bcdb6cb58ce65f543
parent4bfe0e069983b1af050c2df6157b161e8ea572e9
Fix the offset checks in the trans routines

This fixes a potential crash bug, a client can make us read memory we
should not read. Luckily I got the disp checks right...

Volker
(cherry picked from commit 64a1d80851da5b05e70ec6c96f6e9bd473748369)
(cherry picked from commit f04c5650a3aeca23591ddc781c4b297caaf9bb3f)
source/smbd/ipc.c
source/smbd/nttrans.c
source/smbd/trans2.c