avcodec/mlp_parser: Check if synccode is within buffer
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 Jul 2018 11:16:37 +0000 (13:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Aug 2018 00:08:16 +0000 (02:08 +0200)
commit51ac3f43b8bf3b7f2af555af319cd240bb8b4ebf
tree73e67afb3bd2b590f1e687e39bfec5df2dcfe2ee
parent7dd836a3f9771e0e44df1b27e67d6866d91e06d7
avcodec/mlp_parser: Check if synccode is within buffer

Fixes: undefined shift
Fixes: 9216/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEHD_fuzzer-6281404575907840

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