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>
Sat, 17 Feb 2018 15:11:57 +0000 (16:11 +0100)
commit09dad52390025b8ab73c4196cd616a7e4410cf32
tree7f485455a3f01cac066eb9d209503461b01ef050
parenta3c66132d957db7f146601ac35f31944b0e5d98f
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