]> git.sesse.net Git - ffmpeg/commit
avcodec/tiff: Fix default white level
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Jul 2020 20:42:14 +0000 (22:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Sep 2020 22:40:56 +0000 (00:40 +0200)
commitd54c24acde88a214489d5ef410982eedac7ffc29
treedf79910e5b3d48be4be2818c901c22610a506538
parentca3c6c981aa5b0af8a5576020b79fdd3cdf9ae9e
avcodec/tiff: Fix default white level

According to the spec bits per sample should be used

Fix invalid shift with bpp=32
Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int'
Fixes: 23507/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-4815432665268224
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c