History

avcodec/wavarc: fix integer overflow in decode_5elp() block type 2

Fixes: signed integer overflow: 2097152000 + 107142979 cannot be represented in type 'int' Fixes: 67919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-5955101769400320

Michael Niedermayer committed 2 years ago

Commit a2ec2bd1 parent 1330a731 file · +1 −1Browse files

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

Unified · Split

libavcodec/wavarc.c+1−1
@@ -689,7 +689,7 @@ static int decode_5elp(AVCodecContext *avctx, · 688 unmodified lines
689689 for (int o = 0; o < order; o++)
690690 sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1];
691691
692− samples[n + 70] += ac_out[n] + (sum >> 4);
692+ samples[n + 70] += ac_out[n] + (unsigned)(sum >> 4);
693693 }
694694
695695 for (int n = 0; n < 70; n++)

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