avcodec/dvdsub_parser: Allocate input padding
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Jul 2018 16:56:10 +0000 (18:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:16:13 +0000 (19:16 +0200)
commiteae9ab01930169bceb439a7ef62ecb0549e4a6fb
tree976ef72708ecd8337d667df93ec284b5480efec0
parentdb85ff35788dfbe3f1570e71640c99f7c24579f0
avcodec/dvdsub_parser: Allocate input padding

Fixes: out of array read
Fixes: 9350/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5746777750765568

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