avcodec/snappy: Sanity check bytestream2_get_levarint()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 Jan 2020 20:51:11 +0000 (21:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Feb 2020 23:11:18 +0000 (00:11 +0100)
commitbe54da2117a6f58c14283f2511e71fda8d3bfe9d
treec43b0ba56fd35004ea8a17e3c6317aa3b770177d
parent53aa76686e7ff4f1f6625502503d7923cec8c10e
avcodec/snappy: Sanity check bytestream2_get_levarint()

Fixes: left shift of 79 by 28 places cannot be represented in type 'int'
Fixes: 20202/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HAP_fuzzer-5719004081815552
Fixes: 20219/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HAP_fuzzer-5641738677125120
Fixes: 20389/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HAP_fuzzer-5680721517871104

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/snappy.c