From: Michael Niedermayer Date: Fri, 26 Dec 2008 18:14:59 +0000 (+0000) Subject: And another sechole ... X-Git-Tag: v0.5~1445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb0094b224389fd7c337e3bf354b0d9120f9e961;p=platform%2Fupstream%2Flibav.git And another sechole ... Originally committed as revision 16346 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index 72ad8b9..424de59 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -217,7 +217,7 @@ static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, else run_off -= *--ref; offs += run; - if(offs > width){ + if(offs > width || run > width){ av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n"); return -1; }