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 09:46:47 +0000 (11:46 +0200)
commit2424d0096e303786fdd4eb6663215f76f8e9da87
tree54a753ed4eb269178e4b7a4f8c54765b9ad62343
parent07975e89d32642e588d7713feed5a949e976e50e
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>
(cherry picked from commit 7b2ebf89a411d957ca999f1e7a919ff617fbfd56)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qdm2.c