Fix bug #9209 - Parse of invalid SMB2 create blob can cause smbd crash.
commit14d59e1c8ba37ddd80fda6c8288ba743c25f11e1
authorJeremy Allison <jra@samba.org>
Wed, 26 Sep 2012 23:58:58 +0000 (26 16:58 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Oct 2012 09:05:40 +0000 (29 10:05 +0100)
tree87d9c92dc48e46ecd15c562578a7e229364b44ba
parentf5ae3088e96f25d0dc569cda539dbb83645513c9
Fix bug #9209 - Parse of invalid SMB2 create blob can cause smbd crash.

Ensure we correctly protect against blobs with data_offset==0
and data_length != 0.

Jeremy.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 27 22:07:02 CEST 2012 on sn-devel-104
(cherry picked from commit 322e3d42f65dadabeccf8813fcb0e9b7d353ffb2)
(cherry picked from commit dd8e9801d6bcb8c6dca42312ffcb24149eb2645a)
libcli/smb/smb2_create_blob.c