avcodec/dstdec: Check for input exhaustion
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Oct 2019 18:48:40 +0000 (20:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Oct 2019 12:34:20 +0000 (14:34 +0200)
commitf6df99dba1ae64b05d08fba8160d13eb9795042f
tree06158b77fa68f55a7bc63cb03082205e23697997
parenta5d29812ec364ad4b83b5c2dba281f1b559a518b
avcodec/dstdec: Check for input exhaustion

Fixes: Timeout (239sec -> 16sec)
Fixes: 17811/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5715508149616640

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