avutil/common: Fix integer overflow in av_ceil_log2_c()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 27 Jun 2020 22:21:09 +0000 (00:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 30 Jun 2020 18:35:23 +0000 (20:35 +0200)
commite409262837712016097c187e97bf99aadf6a4cdf
tree78ba9e8bb1b2c4626b0d522d3f9284f4b482ac1d
parent21598d711d894081d0566282473044ba4f378f33
avutil/common: Fix integer overflow in av_ceil_log2_c()

Fixes: left shift of 1913647649 by 1 places cannot be represented in type 'int'
Fixes: 23572/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5082619795734528

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