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>
Sun, 15 Jul 2018 17:42:25 +0000 (19:42 +0200)
commitcd86b5cfe278af79d6b147e122d9a72c270a9fde
tree965c8e662ad0b8828cb6079784fbfe2ebf50d6cd
parent2e6ea3938669a5a0aa00a58ff83d4c0a1ae3b2a7
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>
libavcodec/dvdsub_parser.c