git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41dde03
)
smbd: Fix error return for STREAM_INFO
author
Volker Lendecke
<vl@samba.org>
Tue, 27 Aug 2013 09:39:17 +0000
(09:39 +0000)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 18 Sep 2013 08:41:22 +0000
(10:41 +0200)
The stream_info marshalling follows its own rules. This needs unifying
eventually...
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10106
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
5634f240fd4273cb7327111140ccbea0fd41e3fc
)
(cherry picked from commit
a63ca3ed840ca4ab19b4b4bd9238b663228ac2a6
)
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 2f840b73e122a97809de64eeda7ede534cc48207..3c8c06fa982a8ba591e29f2491aaa3f06589734c 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-4145,6
+4145,10
@@
static NTSTATUS marshall_stream_info(unsigned int num_streams,
unsigned int i;
unsigned int ofs = 0;
+ if (max_data_bytes < 32) {
+ return NT_STATUS_INFO_LENGTH_MISMATCH;
+ }
+
for (i = 0; i < num_streams; i++) {
unsigned int next_offset;
size_t namelen;