History

avcodec/wavarc: Avoid signed integer overflow in sample

Fixes: signed integer overflow: -2147483648 + -25122315 cannot be represented in type 'int' Fixes: 62285/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6199806972198912

Michael Niedermayer committed 2 years ago

Commit 6009dd01 parent ebdcf981 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/wavarc.c+1−1
@@ -374,7 +374,7 @@ static int decode_2slp(AVCodecContext *avctx, · 373 unmodified lines
374 for (int o = 0; o < order; o++)374 for (int o = 0; o < order; o++)
375 sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1];375 sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1];
376 376
377 samples[n + 70] = get_srice(gb, k) + (sum >> 4);377 samples[n + 70] = get_srice(gb, k) + (unsigned)(sum >> 4);
378 }378 }
379 finished = 1;379 finished = 1;
380 break;380 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t