1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00
FFmpeg/libavcodec
Michael Niedermayer e241831a6c avcodec/alac: Check decorr_shift to avoid invalid shift
Later the decorrelate_stereo call is guarded by channels == 2
and non-zero decorr_left_weight. Make sure decorr_shift is in
the expected shift range for that case.

Fixes: shift exponent 128 is too large for 32-bit type 'int'
Fixes: 23860/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALAC_fuzzer-5751138914402304

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4333718b357a9ad195031e5d0ea080d37677b795)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-10-17 21:34:53 +02:00
..
2019-12-02 19:41:48 +01:00
2018-07-10 01:52:55 +02:00
2019-12-02 19:41:49 +01:00
2020-07-05 12:43:08 +02:00
2018-07-10 01:52:55 +02:00
2020-07-05 12:43:08 +02:00
2020-07-05 12:43:08 +02:00
2018-01-31 22:09:44 -03:00
2019-12-02 19:41:47 +01:00
2019-12-02 19:41:49 +01:00
2020-07-05 12:43:08 +02:00
2020-07-06 01:51:19 +02:00
2020-04-23 21:29:01 +02:00
2019-12-06 20:30:56 +01:00
2018-07-10 01:18:52 +02:00
2019-12-02 19:41:48 +01:00
2021-10-17 21:34:53 +02:00
2019-12-06 20:30:57 +01:00
2019-12-06 20:30:58 +01:00
2019-12-02 19:41:48 +01:00
2019-12-06 20:30:57 +01:00
2019-12-06 20:30:57 +01:00
2019-12-06 20:30:57 +01:00
2019-12-02 19:41:49 +01:00