History

graphparser: Check av_get_token() memory error

Vittorio Giovara committed 11 years ago

Commit 9d3b7521 parent 5dc47a21 file · +2 −0Browse files

Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphparser.c+2−0
@@ -62,6 +62,8 @@ static char *parse_link_name(const char **buf, void *log_ctx) · 61 unmodified lines
6262 (*buf)++;
6363
6464 name = av_get_token(buf, "]");
65+ if (!name)
66+ goto fail;
6567
6668 if (!name[0]) {
6769 av_log(log_ctx, AV_LOG_ERROR,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t