Commit 9d3b752f authored by Vittorio Giovara's avatar Vittorio Giovara

graphparser: Check av_get_token() memory error

CC: libav-stable@libav.org
Bug-Id: CID 1267891
parent 5dc47a2b
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment