avcodec/faxcompr: Check if bits are available before reading in cmode == 9 || cmode...
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Jun 2021 19:20:04 +0000 (21:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Jun 2021 12:22:42 +0000 (14:22 +0200)
commit7d8421e3d5bc1300687a65384baccbcb3874b7ac
tree401e29f0d0070a3222fd2e0c324b2d840a7e6e4b
parentffe4851e2359e17c4406ab05e2e31fc7ef68de95
avcodec/faxcompr: Check if bits are available before reading in cmode == 9 || cmode == 10

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

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