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>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commit6177ed2a9b703bca232d466e90120bd74860a771
treede183e629883790078536db08375e55680212a93
parent43a80efee600d75b5ae9efe52f36303dabfb81bb
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