The Samba-Bugzilla – Attachment 16134 Details for
Bug 14443
Out-by-4 error in smbd read reply max_send clamp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to exclude NetBIOS header allowance
smb_size_clamp.patch (text/plain), 832 bytes, created by
Sprow
on 2020-07-19 12:59:02 UTC
(
hide
)
Description:
Patch to exclude NetBIOS header allowance
Filename:
MIME Type:
Creator:
Sprow
Created:
2020-07-19 12:59:02 UTC
Size:
832 bytes
patch
obsolete
>--- source3/smbd/reply.org.c 2020-07-19 12:08:44.0 +0100 >+++ source3/smbd/reply.c 2020-07-19 12:08:44.0 +0100 >@@ -4227,7 +4227,7 @@ > /* > * However the requested READ size IS affected by max_send. Insanity.... JRA. > */ >- maxtoread = req->xconn->smb1.sessions.max_send - (smb_size + 5*2 + 3); >+ maxtoread = req->xconn->smb1.sessions.max_send - (MIN_SMB_SIZE + 5*2 + 3); > > if (numtoread > maxtoread) { > DBG_WARNING("requested read size (%zu) is greater than " >@@ -4323,7 +4323,7 @@ > /* > * The requested read size cannot be greater than max_send. JRA. > */ >- maxtoread = xconn->smb1.sessions.max_send - (smb_size + 5*2 + 3); >+ maxtoread = xconn->smb1.sessions.max_send - (MIN_SMB_SIZE + 5*2 + 3); > > if (numtoread > maxtoread) { > DEBUG(0,("reply_read: requested read size (%u) is greater than maximum allowed (%u/%u). \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14443
:
16134
|
17328