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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit659a23e89fbaf649f8984a9d5dfd5479e5a37386
tree937c07f387948cb2bd5cf93c2e316561a622b6ed
parent519d48c861a91f3c458e37478d0e408aa608117c
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