Fix the offset checks in the trans routines
commit9693ffb4803163c65a26ff0a6344753b478a320e
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:32:20 +0000 (27 15:32 +0100)
treee74852e3300a0e266e54e88b9355042b7342351f
parentd5f3fd90151793e92239105d88aed6f573426ca9
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)
(cherry picked from commit 5718a4761af9b77ea17b64f12f1010c99f738c96)
source/smbd/ipc.c
source/smbd/nttrans.c
source/smbd/trans2.c