i discovered one as well:
if there are no (valid) plugins installed, pluginregistry will crash.

attached patch should fix that.


fgmasr
IOhannes
Author: IOhannes m zmölnig
Description: prevent segfaults if no plugins can be found
--- gmerlin.orig/lib/pluginregistry.c
+++ gmerlin/lib/pluginregistry.c
@@ -216,7 +216,8 @@
 
   for(i = 0; i < num_plugins-1; i++)
     arr[i]->next = arr[i+1];
-  arr[num_plugins-1]->next = (bg_plugin_info_t*)0;
+  if(num_plugins>0)
+    arr[num_plugins-1]->next = (bg_plugin_info_t*)0;
   list = arr[0];
   /* Free array */
   free(arr);

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gmerlin-general mailing list
Gmerlin-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gmerlin-general

Reply via email to