avcodec/mlpdec: Check that there is enough data for headers
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 May 2017 21:13:38 +0000 (23:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commit6e46f19cc8b9f4bbb17ca4cd3743e7222614caca
tree54e3620e5fe7e56eac74e053b9a498a290f7d16a
parent0c92adda48c419c4026ac1a7551ecef8fa82bafd
avcodec/mlpdec: Check that there is enough data for headers

Fixes: out of array access
Fixes: 1541/clusterfuzz-testcase-minimized-6403410590957568

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e3e51f8c14d22ae11684dcfe58df355f0f9e6401)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mlpdec.c