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>
Tue, 17 Jul 2018 09:46:33 +0000 (11:46 +0200)
commit6f354ca5fd5e758cdc0151f6e84936c44e0b8e2f
tree9350ab877e261b5eb5949fc8646a3caba4d7ebbc
parent6ea8b39c905722201424e12f9c179732fb5dac58
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