avcodec/tiff: check remaining packet size for strips
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 2 Oct 2018 01:04:50 +0000 (03:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 Oct 2018 09:13:38 +0000 (11:13 +0200)
commitc905840e8c0a0d4bc3737879bfc038618ecba2b2
tree69b5961f2ae628795478ca98a847a803f026e277
parentdcbd89e0008f54e0ea7865b0d5dd4b644ee7da18
avcodec/tiff: check remaining packet size for strips

Fixes: Timeout
Fixes: 10280/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5676217211027456

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/tiff.c