mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avcodec/wavpack: Fix runtime error: signed integer overflow: 2013265955 - -134217694 cannot be represented in type 'int'
Fixes: 1922/clusterfuzz-testcase-minimized-5561194112876544 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 a47273c803edfbc43793349b74429ae29b05c003) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
653de8249d
commit
d1390a8670
@ -239,7 +239,7 @@ static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb,
|
||||
if (get_bits_left(gb) <= 0)
|
||||
goto error;
|
||||
if (get_bits1(gb)) {
|
||||
add -= (mid - base);
|
||||
add -= (mid - (unsigned)base);
|
||||
base = mid;
|
||||
} else
|
||||
add = mid - base - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user