git.samba.org
/
martins
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1776918
)
libsmb: Cap max_rdata at UINT16_MAX
author
Volker Lendecke
<vl@samba.org>
Mon, 13 May 2024 09:16:21 +0000
(11:16 +0200)
committer
Jeremy Allison
<jra@samba.org>
Tue, 14 May 2024 22:29:36 +0000
(22:29 +0000)
The caller does not necessarily query max values for smb1 and smb2+.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clifile.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index ffa8453df7f2fb5f6d4a8acae82fbec2afe9f5cc..354d8960dd8b5b731b0887ec2172a3c49d4f4efd 100644
(file)
--- a/
source3/libsmb/clifile.c
+++ b/
source3/libsmb/clifile.c
@@
-7003,6
+7003,8
@@
struct tevent_req *cli_qfileinfo_send(TALLOC_CTX *mem_ctx,
return req;
}
+ max_rdata = MIN(max_rdata, UINT16_MAX);
+
switch (fscc_level) {
case FSCC_FILE_BASIC_INFORMATION:
smb_level = SMB_QUERY_FILE_BASIC_INFO;