History

avfilter/avfiltergraph: Check for allocation failure in avfilter_graph_queue_command()

Fixes: CID1396538

Michael Niedermayer committed 9 years ago

Commit 55d53cb1 parent 5036e211 file · +3 −0Browse files

Unified · Split

libavfilter/avfiltergraph.c+3−0
@@ -1324,6 +1324,9 @@ int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const · 1323 unmodified lines
13241324 queue = &(*queue)->next;
13251325 next = *queue;
13261326 *queue = av_mallocz(sizeof(AVFilterCommand));
1327+ if (!*queue)
1328+ return AVERROR(ENOMEM);
1329+
13271330 (*queue)->command = av_strdup(command);
13281331 (*queue)->arg = av_strdup(arg);
13291332 (*queue)->time = ts;

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