avcodec/pictordec: Do not read more than nb_planes
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Feb 2017 11:31:43 +0000 (12:31 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Feb 2017 16:14:54 +0000 (17:14 +0100)
commit01d196a67dc55eb01cf3e06d6338c5d096a29b1c
treee99d02a9ebbc51cc3d234661a880a7621aaf3e35
parent947fdad92de8ce6912ed8f3095c218c35d0b9fa7
avcodec/pictordec: Do not read more than nb_planes

Fixes undefined behavior
Fixes: 622/clusterfuzz-testcase-5745722022428672

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pictordec.c