avformat/jacosubdec: Fix overflow in get_shift()
authorMichael Niedermayer <[email protected]>
Sat, 17 Sep 2022 20:55:24 +0000 (22:55 +0200)
committerMichael Niedermayer <[email protected]>
Thu, 3 Nov 2022 22:29:51 +0000 (23:29 +0100)
commitb8d29eab19f8a8bd82ec96f88dcef13a87b3d024
tree3c18a317043fba42a513880fbd64a26535f7ed16
parent622893afe30bdd81bbe62f505fbef6a05a5e6d57
avformat/jacosubdec: Fix overflow in get_shift()

Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_JACOSUB_fuzzer-6722544461283328
Fixes: signed integer overflow: 48214448 * 60 cannot be represented in type 'int'

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit b1a68127bbcd3d638363fa0249982c494e87c9e2)
Signed-off-by: Michael Niedermayer <[email protected]>
libavformat/jacosubdec.c