History

avcodec/vmixdec: Fix signed integer overflow in dc

Fixes: signed integer overflow: 2147483181 + 1024 cannot be represented in type 'int' Fixes: 61117/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMIX_fuzzer-5387692433866752

Michael Niedermayer committed 3 years ago

Commit d897f821 parent fb05bc81 file · +1 −1Browse files

Unified · Split

libavcodec/vmixdec.c+1−1
@@ -148,7 +148,7 @@ static int decode_dcac(AVCodecContext *avctx, · 147 unmodified lines
148 ac_run = get_ue_golomb_long(ac_gb);148 ac_run = get_ue_golomb_long(ac_gb);
149 }149 }
150 150
151 block[0] = (dc << lshift) + add;151 block[0] = ((unsigned)dc << lshift) + (unsigned)add;
152 s->idsp.idct_put(dst + x, linesize, block);152 s->idsp.idct_put(dst + x, linesize, block);
153 }153 }
154 154

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