[SCM] libav/experimental: Add missing check on the existence of an associated output pad for each specified output link label.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:18:54 UTC 2013


The following commit has been merged in the experimental branch:
commit 668673f10ce225d26a96f1aeb62066e8c641c85a
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Thu Nov 11 22:41:22 2010 +0000

    Add missing check on the existence of an associated output pad for
    each specified output link label.
    
    Fix crash.
    
    Originally committed as revision 25723 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 4266e81..99982b3 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -294,6 +294,12 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs,
         AVFilterInOut *match;
 
         AVFilterInOut *input = *curr_inputs;
+        if (!input) {
+            av_log(log_ctx, AV_LOG_ERROR,
+                   "No output pad can be associated to link label '%s'.\n",
+                   name);
+            return AVERROR(EINVAL);
+        }
         *curr_inputs = (*curr_inputs)->next;
 
         if (!name)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list