History

filters/f_lavfi: fix null dereference on empty graph

Kacper Michajłow committed 2 years ago

Commit 995283b1 parent 2b1e9a61 file · +3 −0Browse files

Unified · Split

filters/f_lavfi.c+3−0
@@ -904,6 +904,9 @@ struct mp_lavfi *mp_lavfi_create_graph(struct mp_filter *parent, · 903 unmodified lines
904904 char *hwdec_interop,
905905 char **graph_opts, const char *graph)
906906 {
907+ if (!graph)
908+ return NULL;
909+
907910 struct lavfi *c = lavfi_alloc(parent);
908911 if (!c)
909912 return NULL;

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