Public bug reported:

By developing a plugin for LDM, I figured out that LDM load correctly up
to 2 plugins, but when I try to load a third plugin, the program crashes
with a Segmentation Fault.

Using Valgrind, I discovered that the problem came from the
ldm_init_plugin function in ldmplugin.c. The plugin_names array is freed
twice and there is a writing operation out of his memory allocation.

The attached patch fixes this problem.

** Affects: ldm (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "ldmplugin.c.diff"
   
https://bugs.launchpad.net/bugs/1836791/+attachment/5277477/+files/ldmplugin.c.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836791

Title:
  LDM SegFault when loading additional plugins

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ldm/+bug/1836791/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to