1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s4:gensec_tstream: allow wrapped messages up to a size of 0xfffffff

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11872

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-04-22 16:18:24 +02:00
parent 415872990e
commit 8704958fb3

View File

@ -253,7 +253,11 @@ static int tstream_gensec_readv_next_vector(struct tstream_context *unix_stream,
msg_len = RIVAL(state->wrapped.hdr, 0);
if (msg_len > 0x00FFFFFF) {
/*
* I got a Windows 2012R2 server responding with
* a message of 0x1b28a33.
*/
if (msg_len > 0x0FFFFFFF) {
errno = EMSGSIZE;
return -1;
}