avcodec/prosumer: Check for bytestream eof in decompress()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Oct 2018 02:06:59 +0000 (03:06 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Nov 2018 19:26:49 +0000 (20:26 +0100)
commitb9875b75837dc75ba65254f1cdb0be50b1037d2d
tree763a1f24ac65b68d1ac794a9ef1305021d5cb067
parentebc1c49e417cf7d7096d7a038d1e3e61f0432f19
avcodec/prosumer: Check for bytestream eof in decompress()

Fixes: Infinite loop
Fixes: 10685/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PROSUMER_fuzzer-5652236881887232

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9acdf17b2c30c44e6e6a3d3b3c22989b7e1117c3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/prosumer.c