mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
graphparser: Check av_get_token() memory error
CC: libav-stable@libav.org Bug-Id: CID 1267891
This commit is contained in:
parent
5dc47a2bd5
commit
9d3b752fce
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user