mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
47b6696dcd
If ‘size’ was equal to UINT32_MAX, the expression ‘size+1’ could overflow to zero. This could result in inadequate memory being allocated, which could cause ndr_pull_compression_xpress_huff_raw_chunk() to overflow memory with zero bytes. Credit to OSS-Fuzz. REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=57728 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15415 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>