History

avcodec/jfdctint_template: use unsigned z* in row_fdct()

Fixes: signed integer overflow: 856827136 + 2123580416 cannot be represented in type 'int' Fixes: 70772/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PRORES_KS_fuzzer-5180569961431040

Michael Niedermayer committed 2 years ago

Commit f27c8b01 parent fde86371 file · +1 −1Browse files

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

Unified · Split

libavcodec/jfdctint_template.c+1−1
@@ -183,7 +183,7 @@ static av_always_inline void FUNC(row_fdct)(int16_t *data) · 182 unmodified lines
183183 {
184184 int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
185185 int tmp10, tmp11, tmp12, tmp13;
186− int z1, z2, z3, z4, z5;
186+ unsigned z1, z2, z3, z4, z5;
187187 int16_t *dataptr;
188188 int ctr;
189189

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