avformat/jacosubdec: Use 64bit intermediate for start/end timestamp shift
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Feb 2021 21:44:36 +0000 (22:44 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Apr 2021 09:38:44 +0000 (11:38 +0200)
commit79ff380da7a68fc48a52bd823148f233f10df960
tree58e7bae1f0688b23adb3c05492771ad9b2568c31
parent81178db83bfd9bd288b124306e0cd7d50255949d
avformat/jacosubdec: Use 64bit intermediate for start/end timestamp shift

Fixes: signed integer overflow: -1957694447 + -1620425806 cannot be represented in type 'int'
Fixes: 30207/clusterfuzz-testcase-minimized-ffmpeg_dem_JACOSUB_fuzzer-5050791771635712

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 2c477be08a64a78ab0a358ae00e2f2dc746f2b47)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/jacosubdec.c