avcodec/diracdec: Check weight_log2denom
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jul 2017 13:46:50 +0000 (15:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commit4306ddd87d0969a2a6856987fdacd5ec9dba193c
tree917d2a2630b25d121a12bda08e57972b000ae591
parentbab4cb3fb55e32d2f01bfb8c06f8e9fbd2d3f65d
avcodec/diracdec: Check weight_log2denom

Fixes: runtime error: shift exponent -1 is negative
Fixes: 2742/clusterfuzz-testcase-minimized-5724322402402304
Fixes: 2744/clusterfuzz-testcase-minimized-4672435653705728
Fixes: 2749/clusterfuzz-testcase-minimized-5298741273690112

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 880f5c59139e1d85d3a0b3433103f3fea17ff2d3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c