History

avcodec/rv60dec: Check qp for intra

The rv60_qp_to_idx table only supports qp up to 31 on intra Fixes: global-buffer-overflow Fixes: 377543818/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RV60_fuzzer-5160167345291264

Michael Niedermayer committed 1 year ago

Commit 61cbcaf1 parent 559d4351 file · +2 −0Browse files

Unified · Split

libavcodec/rv60dec.c+2−0
@@ -1779,6 +1779,8 @@ static int decode_cu_r(RV60Context * s, AVFrame * frame, ThreadContext * thread, · 1778 unmodified lines
17791779 ttype = cu.pu_type == PU_FULL ? TRANSFORM_8X8 : TRANSFORM_4X4;
17801780
17811781 is_intra = cu.cu_type == CU_INTRA;
1782+ if (is_intra && qp >= 32)
1783+ return AVERROR_INVALIDDATA;
17821784 cu_pos = ((xpos & 63) >> 3) + ((ypos & 63) >> 3) * 8;
17831785
17841786 switch (ttype) {

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