Commit 0716bcce authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ituh263dec: Check for the bitstream end in ff_h263_decode_mb()

Fixes invalid shift

Fixes: 670/clusterfuzz-testcase-4852021066727424

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpegReviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 489c09ad
......@@ -962,6 +962,9 @@ intra:
}
end:
if (get_bits_left(&s->gb) < 0)
return AVERROR_INVALIDDATA;
/* per-MB end of slice check */
{
int v= show_bits(&s->gb, 16);
......
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