avcodec/prosumer: Check remaining space in put byte context
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 22 Sep 2018 16:14:07 +0000 (18:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 23 Sep 2018 22:49:30 +0000 (00:49 +0200)
commit0f36ad514c45b8267b661e745607411d9a5b42cb
tree4c622ce8fdce831efda9940662b5ba2508d0ee44
parent3b5945b14654a04cd99cf3f618913c9b25ff79cd
avcodec/prosumer: Check remaining space in put byte context

Fixes: Timeout
Fixes: 10053/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PROSUMER_fuzzer-5636993883570176

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>
libavcodec/prosumer.c