avcodec/lagarith: Check that the range coded data stream is consistent when the proba...
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Jun 2018 20:16:52 +0000 (22:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Jul 2018 17:42:25 +0000 (19:42 +0200)
commit8d21ab4d128ddae03fe6b21542c29dee240151db
treebee04bb73a693a7f4597dae7247356c151a94339
parent7334985ffae8067b84884b5bd345db06fe2cc220
avcodec/lagarith: Check that the range coded data stream is consistent when the probabilities indicate no data could have been coded.

Fixes: Timeout
Fixes: 8638/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-5132046098759680
Fixes: 8943/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-4883030219948032

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