summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-02-04 14:20:58 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-02-17 11:27:41 -0500
commit9d3b752fceb0f2a42cac7c2a1109b0629823c99f (patch)
treed060e1d48fe84435a4c0418ead554c6cf7792b8e /libavfilter
parent5dc47a2bd52e375ed742c45d08356b45098f458d (diff)
downloadffmpeg-9d3b752fceb0f2a42cac7c2a1109b0629823c99f.tar.gz
graphparser: Check av_get_token() memory error
CC: libav-stable@libav.org Bug-Id: CID 1267891
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index e20dd626bc..d79215bf4a 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -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,