1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

graphparser: Check av_get_token() memory error

CC: libav-stable@libav.org
Bug-Id: CID 1267891
This commit is contained in:
Vittorio Giovara 2015-02-04 14:20:58 +00:00
parent 5dc47a2bd5
commit 9d3b752fce

View 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,