The branch, master has been updated via aa362e8... s3: Protect against an invalid bcc in SMBsendtxt from f7adf53... s3: For "smbcontrol <pid> pool-usage", print the first 50 bytes of a string
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit aa362e8e68b317fcc4fecbe44f62750e8cee6d32 Author: Volker Lendecke <v...@samba.org> Date: Tue Nov 10 23:14:58 2009 +0100 s3: Protect against an invalid bcc in SMBsendtxt ----------------------------------------------------------------------- Summary of changes: source3/smbd/message.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/message.c b/source3/smbd/message.c index 82b3dc3..386aca1 100644 --- a/source3/smbd/message.c +++ b/source3/smbd/message.c @@ -245,7 +245,7 @@ void reply_sendtxt(struct smb_request *req) return; } - if (smbd_msg_state == NULL) { + if ((smbd_msg_state == NULL) || (req->buflen < 3)) { reply_nterror(req, NT_STATUS_INVALID_PARAMETER); END_PROFILE(SMBsendtxt); return; -- Samba Shared Repository