avcodec/exr: Check remaining bits in last get code loop
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 14 Feb 2018 12:01:46 +0000 (13:01 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:52:16 +0000 (02:52 +0100)
commit675e243949bcb331d5dc4f6fd72620a1200dbb40
tree482e4220813a84715da80e30e6786bffd85d0de9
parente38e2d6533d7086527ad8fd5a47d6294818798b2
avcodec/exr: Check remaining bits in last get code loop

Fixes: runtime error: shift exponent -7 is negative
Fixes: 3902/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-6081926122176512

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