]> git.sesse.net Git - vlc/commitdiff
Fix corner case crash on corrupt plugin with callbacks
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 7 Oct 2011 16:38:27 +0000 (19:38 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 7 Oct 2011 20:16:32 +0000 (23:16 +0300)
src/modules/bank.c

index 61e5a3556e2852ddc9c6671971bf8102bc1d9dc0..b6cf6d04bb78b3b4f7a065bb60c5bfbd106f0d5a 100644 (file)
@@ -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;
          }