Commit a94e6eb9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix one potential NULL-deref on invalid plugin cache

Zero-length strings are loaded as NULL. There are probably quite a few
other similar failure cases :( I have not investigated.
parent 574726a2
...@@ -270,6 +270,8 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r ) ...@@ -270,6 +270,8 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
/* Load common info */ /* Load common info */
LOAD_STRING(path); LOAD_STRING(path);
if (path == NULL)
goto error;
LOAD_IMMEDIATE(st.st_mtime); LOAD_IMMEDIATE(st.st_mtime);
LOAD_IMMEDIATE(st.st_size); LOAD_IMMEDIATE(st.st_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment