[PATCH] s3 - Add integer wrap protection when manipulating a client-supplied value.

Jeremy Allison jra at samba.org
Fri Aug 2 18:13:34 MDT 2013


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.

I noticed this when reviewing Ralph's patch, and thought I might as well
tidy this up to ensure we can never have any issues here.

Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Ensure-we-can-never-integer-wrap-when-working-on-cli.patch
Type: text/x-diff
Size: 2497 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130802/7824777c/attachment.patch>


More information about the samba-technical mailing list