avcodec/exr: Check buf_size more completely
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Dec 2017 02:00:19 +0000 (03:00 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commit9143ddea0f160a739c380fd6912decf771b32bb0
tree70e5fbd6610eeaab2af8f8fcf0c5fe5d054d70f8
parent6fab791daade82f85234312577782e202323db4d
avcodec/exr: Check buf_size more completely

Fixes: Out of heap array read
Fixes: 4683/clusterfuzz-testcase-minimized-6152313673613312

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