Ensure we can never integer wrap when working on client-supplied max_data_bytes.
authorJeremy Allison <jra@samba.org>
Sat, 3 Aug 2013 00:05:58 +0000 (17:05 -0700)
committerDavid Disseldorp <ddiss@samba.org>
Sun, 4 Aug 2013 14:54:04 +0000 (16:54 +0200)
commitb35a27b77954992fc1e6db446bbfa6cfbb7547a1
tree712da5edf6a92054d4651d8957af87fe46438b7a
parent852c9ac34dbef66d0b2619554c611157c2fab771
Ensure we can never integer wrap when working on client-supplied max_data_bytes.

This would only be possible with SMB2, and is already checked in the upper
SMB2 layers, but it really doesn't hurt to have these extra checks at time
of use also.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Sun Aug  4 16:54:04 CEST 2013 on sn-devel-104
source3/smbd/trans2.c