Skip to content
Snippets Groups Projects
Commit 4c9e1a93 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix corner case crash on corrupt plugin with callbacks

parent df72d5e5
No related branches found
No related tags found
No related merge requests found
......@@ -492,6 +492,8 @@ static int AllocatePluginFile (module_bank_t *bank, const char *abspath,
/* !unloadable not allowed for plugins with callbacks */
vlc_module_destroy (module);
module = module_InitDynamic (bank->obj, abspath, false);
if (unlikely(module == NULL))
return -1;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment