avformat/jacosubdec: Check for min in t overflow in get_shift()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Jun 2021 20:26:41 +0000 (22:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Oct 2021 21:19:39 +0000 (23:19 +0200)
commitd482bf35eb10393bd91c9bd447e839fffd84a1d8
tree04ce5dfceb5216ce54aa1c442afeac1309b585f7
parent26083824d7de19ed75a6b3418697aa9efe47af65
avformat/jacosubdec: Check for min in t overflow in get_shift()

Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 34651/clusterfuzz-testcase-minimized-ffmpeg_dem_JACOSUB_fuzzer-5157941012463616

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