s3: libsmb: Do some hardening in the receive processing of cli_shadow_copy_data_recv().
commitbab467dc4850e434154d74b584904ae97513e7c4
authorJeremy Allison <jra@samba.org>
Thu, 18 Aug 2016 19:06:23 +0000 (18 12:06 -0700)
committerStefan Metzmacher <metze@samba.org>
Sun, 28 Aug 2016 16:12:11 +0000 (28 18:12 +0200)
tree586bf6508de83d58c4531852c51ccd486e2cec33
parent8d7f69db40d5e12e80234c951ea2f79ebc8210cb
s3: libsmb: Do some hardening in the receive processing of cli_shadow_copy_data_recv().

Protect against malicious servers.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(cherry picked from commit 336da637541fba13586af6fc2cb9d143d656e87e)
source3/libsmb/clifile.c