avcodec/dpx: Check elements in 12bps planar path
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jun 2018 14:12:39 +0000 (16:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:02:12 +0000 (19:02 +0200)
commit841e1399e6d0db35fb4d1f75c87a6f467323d64d
tree0d45e7679bf502659e674cd0454f6b2342d8f0b8
parent9f76f0fab80cfff92d2d94cb4a8e981a8181f7d4
avcodec/dpx: Check elements in 12bps planar path

Fixes: null pointer dereference
Fixes: 8946/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DPX_fuzzer-5078915222601728

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 75a2db552423295b509546f3b0f8b2b46d3424b1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dpx.c