Commit 0e3b97d0 authored by michael's avatar michael

fix segfault with lol-ffplay2.mpg (dunno if this is exploitable, probably not easily)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7889 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f0b1f04f
......@@ -2593,6 +2593,10 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
break;
}
}
if(s->mb_x >= (unsigned)s->mb_width){
av_log(s->avctx, AV_LOG_ERROR, "initial skip overflow\n");
return -1;
}
s->resync_mb_x= s->mb_x;
s->resync_mb_y= s->mb_y= mb_y;
......
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