avcodec/apedec: Fix invalid shift with 24 bps
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 11 Feb 2020 22:56:45 +0000 (23:56 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Feb 2020 16:05:30 +0000 (17:05 +0100)
commit8e278672294f28a3feaba0a38460afd51f0fadda
tree389b454f1e382da0ce5874df4df38f782455171e
parent47773f7979d77c1fcd08b57e85af1ad08d9248c8
avcodec/apedec: Fix invalid shift with 24 bps

Fixes: left shift of negative value -463
Fixes: 20542/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5688714435231744

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c