OSDN Git Service

graphparser: Check av_get_token() memory error
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 4 Feb 2015 14:20:58 +0000 (14:20 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 17 Feb 2015 16:27:41 +0000 (11:27 -0500)
CC: libav-stable@libav.org
Bug-Id: CID 1267891

libavfilter/graphparser.c

index e20dd62..d79215b 100644 (file)
@@ -62,6 +62,8 @@ static char *parse_link_name(const char **buf, void *log_ctx)
     (*buf)++;
 
     name = av_get_token(buf, "]");
+    if (!name)
+        goto fail;
 
     if (!name[0]) {
         av_log(log_ctx, AV_LOG_ERROR,