avcodec/qdm2: Do not read out of array in fix_coding_method_array()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 23 Jun 2019 23:01:02 +0000 (01:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 07:41:47 +0000 (09:41 +0200)
commitae021c1239ec3bc0a30dc5a4720569071599ece4
tree05eb5fb37d1718880cb9d847cf9fa14285d02014
parent85cbd042ff801b4c4e13fca637d2dd25b7a312ff
avcodec/qdm2: Do not read out of array in fix_coding_method_array()

Instead we ask for a sample, its unclear what to do in this case.

Fixes: index 30 out of bounds for type 'int8_t [30][64]'
Fixes: 15339/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDM2_fuzzer-5749441484554240

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