avcodec/exr: Check for duplicate channel index
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 25 Dec 2018 17:41:58 +0000 (18:41 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit1623f42d993adb9fa2bb9f7c766b6ce55922a8d5
tree8035892b03e1bb9a217fbfb6bdc09e7236b5b31b
parent99576bf034ce283f1e7c48ba4898ca2e991b7286
avcodec/exr: Check for duplicate channel index

Fixes: Out of memory
Fixes: 11582/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5730204559867904

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