mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/pixlet: Fix runtime error: signed integer overflow: 436207616 * -5160230545260541 cannot be represented in type 'long'
Fixes: 1462/clusterfuzz-testcase-minimized-6558894463647744 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 60765cc42e3eb4a1193ef352a89946113a6e5802) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
924a2dd57a
commit
4a974cb595
@ -256,7 +256,7 @@ static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, i
|
||||
j = 0;
|
||||
dst += stride;
|
||||
}
|
||||
state += (int64_t)d * yflag - (d * state >> 8);
|
||||
state += (int64_t)d * yflag - ((int64_t)(d * (uint64_t)state) >> 8);
|
||||
|
||||
flag = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user