avcodec/shorten: Check verbatim length
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 12 Aug 2018 20:43:33 +0000 (22:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Nov 2018 01:20:44 +0000 (02:20 +0100)
commitf20a35a13e4b789ccdc0c4dba27025984792a623
tree3dd5ce3b8f75e86604ab75385a9aec730d6c903a
parent1a9810dde019dba2fc4c11b7ac56533f85963ac7
avcodec/shorten: Check verbatim length

Fixes: Timeout
Fixes: 9252/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5780720709533696

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 7007dabec08f2f9f81661e71ef482dde394e17a8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c