avcodec/pgssubdec: Check for duplicate display segments
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 29 Jan 2019 00:06:01 +0000 (01:06 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Mar 2019 09:42:51 +0000 (10:42 +0100)
commitb9269c960cae81b5cc503e6629892894380a5527
treede0bd7279de24b4f46b77463c70a1d85f519458b
parenta066fc25ca7a925b4ba28c6602dd45d98d943148
avcodec/pgssubdec: Check for duplicate display segments

In such a duplication the previous gets overwritten and leaks

Fixes: memleak
Fixes: 12510/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PGSSUB_fuzzer-5694439226343424

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