avcodec/dvbsubdec: Check object position
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Mar 2019 19:14:05 +0000 (20:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Mar 2019 15:54:31 +0000 (16:54 +0100)
commit8cee4190f368c11b590bb95e2ea03fedbf5295a4
tree92a9cbee2dd1de2ed31f750dc80d78d95c946b82
parent04ce4cc0728e35d908da7f5e1aa71f9adf0b65de
avcodec/dvbsubdec: Check object position

Reference: ETSI EN 300 743 V1.2.1  7.2.2 Region composition segment

Fixes: Timeout
Fixes: 13325/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVBSUB_fuzzer-5143979392237568

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