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:02:12 +0000 (19:02 +0200)
commit3ef38c414e7908b2f66552081efe485bce52037c
treeddc0e0397cfe52b0ebed210ae4c8317eb8c1a346
parent40ed40902ade1fa6294e12d853cf06f30f85b8cb
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