avcodec/rv60dec: inter also fails with qp >= 32
Fixes: out of array read in decode_cu_16x16() Fixes: 398049430/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RV60_fuzzer-5525836849807360 Reviewed-by: Peter Ross <pross@xvid.org> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ce1fd73d63
commit
9230c93cc9
1 changed files with 1 additions and 1 deletions
|
|
@ -1791,7 +1791,7 @@ static int decode_cu_r(RV60Context * s, AVFrame * frame, ThreadContext * thread,
|
|||
ttype = cu.pu_type == PU_FULL ? TRANSFORM_8X8 : TRANSFORM_4X4;
|
||||
|
||||
is_intra = cu.cu_type == CU_INTRA;
|
||||
if (is_intra && qp >= 32)
|
||||
if (qp >= 32)
|
||||
return AVERROR_INVALIDDATA;
|
||||
cu_pos = ((xpos & 63) >> 3) + ((ypos & 63) >> 3) * 8;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue