[FFmpeg-soc] [soc]: r4057 - libavfilter/vf_format.c

stefano subversion at mplayerhq.hu
Mon Feb 16 21:58:33 CET 2009


Author: stefano
Date: Mon Feb 16 21:58:33 2009
New Revision: 4057

Log:
Fix off-by-one write in the "name" buffer.

Modified:
   libavfilter/vf_format.c

Modified: libavfilter/vf_format.c
==============================================================================
--- libavfilter/vf_format.c	Mon Feb 16 21:53:50 2009	(r4056)
+++ libavfilter/vf_format.c	Mon Feb 16 21:58:33 2009	(r4057)
@@ -43,7 +43,7 @@ static av_cold int init(AVFilterContext 
             fmt = avcodec_get_pix_fmt(cur);
         else {
             len = sep - cur;
-            if(len > 32) {
+            if(len >= 32) {
                 av_log(ctx, AV_LOG_ERROR, "format name too long\n");
                 return -1;
             }



More information about the FFmpeg-soc mailing list