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 09:45:48 +0000 (11:45 +0200)
commite5c21ed6e35e1efc89b583c793fd64b8b53f93e3
treef34e806f93cd87cb421ce67bb3383bcb0ce155b5
parentdd59d92e942f0986d87a80ea69b570e804ed7106
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>
(cherry picked from commit ae021c1239ec3bc0a30dc5a4720569071599ece4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qdm2.c