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:
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