avcodec/faxcompr: Check available bits in decode_uncompressed()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Jun 2021 19:25:58 +0000 (21:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit29d3e924a666c5837bd3cce48631da66e5ddbc50
treed9cd9ba0a410396a17f7d633d5224b2417392e43
parentd91f3644ce3b32adcc31b2f559b6c82f1d5b567e
avcodec/faxcompr: Check available bits in decode_uncompressed()

Fixes: Timeout
Fixes: 34950/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5686764151898112
Fixes: 34966/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-4587409334468608

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 ff56c139e07a4de2803b974b6595f6b71fbf53bd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/faxcompr.c