avcodec/qtrle: Check how much of the chunk is available before decoding
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 2 Apr 2019 00:18:34 +0000 (02:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 25 Apr 2019 12:49:51 +0000 (14:49 +0200)
commitaf77adc02e4a814007c50d7fde6ef5e9837ca5a5
tree7dfd05e3734ef6dd49a310a47c82ab057ed7e3ca
parent8ea211ab79d646f6d0af0945971ee55f36bfcbc9
avcodec/qtrle: Check how much of the chunk is available before decoding

Fixes: Timeout (10sec -> 2sec)
Fixes: 13979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QTRLE_fuzzer-5635157718990848

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