diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-04 17:20:58 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-17 19:27:41 +0300 |
commit | 9d3b752fceb0f2a42cac7c2a1109b0629823c99f (patch) | |
tree | d060e1d48fe84435a4c0418ead554c6cf7792b8e /libavfilter | |
parent | 5dc47a2bd52e375ed742c45d08356b45098f458d (diff) |
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.c | 2 |
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, |