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>
Wed, 31 Jan 2018 21:56:15 +0000 (22:56 +0100)
commit0abf465dc561ef219c58318852c624ce29456c01
tree7ca2fa3a009e2d11599b4657dbb0612747f34780
parent2a53778676d068456bf245126d15eeb6f537da9a
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