avcodec/dirac_parser: Fix overflow in dts
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Jul 2019 21:23:07 +0000 (23:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 15:54:24 +0000 (17:54 +0200)
commit549fcba8fc83330763ccd3cc67233037c96bc6d9
treef269c1cbb1dd2e6fe109e1855a9746a04cb1714c
parent3c06ba171697b665ef4b2b47fe0008199b3eff86
avcodec/dirac_parser: Fix overflow in dts

Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
Fixes: 15568/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5634719611355136

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dirac_parser.c