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>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commit892ceb512f0f10f6cdb7edb4446efbb0ae5b94ed
tree0407db6d184b458bcc72c7cc09822c7538b5ad2e
parent5987b16f868cc4e615d1e4b344498509cca97fb8
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