avcodec/qdm2: Check checksum_size for 0
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 23 Jun 2019 23:01:04 +0000 (01:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 07:44:36 +0000 (09:44 +0200)
commit7b2ebf89a411d957ca999f1e7a919ff617fbfd56
tree43cd89818a74a00fdeb8bfbc18466ac9d6e610fd
parent694be24bd6c4cc9c62222f4583260bf79056e4c1
avcodec/qdm2: Check checksum_size for 0

Fixes: Infinite loop
Fixes: 15337/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDM2_fuzzer-5757428949319680

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