changeset 8488:f2590c8d5e9b libavcodec

And another sechole ...
author michael
date Fri, 26 Dec 2008 18:14:59 +0000
parents 88e8b4f81275
children e3c04f8aad5f
files faxcompr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faxcompr.c	Fri Dec 26 18:06:29 2008 +0000
+++ b/faxcompr.c	Fri Dec 26 18:14:59 2008 +0000
@@ -217,7 +217,7 @@
             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;
             }