avcodec/apedec: Add k < 24 check to the only k++ case which lacks such a check
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 09:26:57 +0000 (11:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 16:49:07 +0000 (18:49 +0200)
commit523a47b3f6004352236ec46e9d870e236b1428f3
tree21bed90030db6ed289b55b05e7b50ca76f129074
parent7d075c5f337f76bbefee8fbcff7e3cc8d9f14a24
avcodec/apedec: Add k < 24 check to the only k++ case which lacks such a check

Fixes: 15255/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5718831688843264
Fixes: left shift of 1 by 31 places cannot be represented in type 'int'

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3d4f4f4a15e79c96c3613e5c252b2f5cc4190e18)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c