Commit c92c220d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vc1_block: Fix invalid shift with rangeredfrm

Fixes: left shift of negative value -7
Fixes: 16959/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3_fuzzer-5200360825683968

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c722a692)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 47e61e22
...@@ -1978,7 +1978,7 @@ static void vc1_decode_b_mb(VC1Context *v) ...@@ -1978,7 +1978,7 @@ static void vc1_decode_b_mb(VC1Context *v)
v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v->vc1dsp.vc1_inv_trans_8x8(s->block[i]);
if (v->rangeredfrm) if (v->rangeredfrm)
for (j = 0; j < 64; j++) for (j = 0; j < 64; j++)
s->block[i][j] <<= 1; s->block[i][j] *= 2;
s->idsp.put_signed_pixels_clamped(s->block[i], s->idsp.put_signed_pixels_clamped(s->block[i],
s->dest[dst_idx] + off, s->dest[dst_idx] + off,
i & 4 ? s->uvlinesize i & 4 ? s->uvlinesize
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment