fdk-aac/libFDK
Martin Storsjo 3a831a5fbc Avoid undefined shifts in SATURATE_SHIFT
Make sure that the shift amount is less than the size of the shifted
value, otherwise return the saturation max values (for left shift, if
the source values was nonzero) or zero (for right shift, or zero
shifted left).

Fixes: 24376/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBFDK_AAC_fuzzer-6529411206348800

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
2020-09-02 12:56:41 +03:00
..
include Avoid undefined shifts in SATURATE_SHIFT 2020-09-02 12:56:41 +03:00
src Add sanity check in huff_decode() 2019-01-02 13:48:42 -05:00