avcodec/dvdsubdec: Sanity check len in decode_rle()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Sep 2018 01:33:50 +0000 (03:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Nov 2018 01:35:03 +0000 (02:35 +0100)
commit7bcc4d7ea7b2a167dfa6cb9063bd452af4dce8f7
treebab243f1ae62f5734a55b0a074736a54669acca3
parent64bccfd11dde05f9bac18d0df8a34f03adb86ce9
avcodec/dvdsubdec: Sanity check len in decode_rle()

Fixes: Timeout
Fixes: 9778/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5186007132536832

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