avcodec/faxcompr: Check for end of bitstream in decode_group3_1d_line() and decode_gr...
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Apr 2021 14:58:50 +0000 (16:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit89d8eae0c618b156361d27200f4629becbdabb1e
tree690414f212c3769e8edc61ef56d20da81e0aa362
parent82de510a59f80fa9b1f8d0150856ff32e1c55778
avcodec/faxcompr: Check for end of bitstream in decode_group3_1d_line() and decode_group3_2d_line()

Fixes: infinite loop
Fixes: 33674/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-4816457818046464

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