avcodec/pictordec: Check plane value before doing value/mask computations
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Feb 2017 19:28:00 +0000 (20:28 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 28 Feb 2017 00:13:52 +0000 (01:13 +0100)
commit63e400a8807dca7b0ffa3841df2e31f7419abb8d
tree2f52cd0bcc2c85f719386557c16bd0c9209d447c
parent25e93aacc2142f3b57f1e63c67ca46d304f154ef
avcodec/pictordec: Check plane value before doing value/mask computations

Fixes integer overflow
Fixes: 675/clusterfuzz-testcase-6722971232108544

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