[Bug 1836791] [NEW] LDM SegFault when loading additional plugins

Mathieu Philippart 1836791 at bugs.launchpad.net
Tue Jul 16 18:00:17 UTC 2019


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
Foundations Bugs, which is subscribed to ldm in Ubuntu.
https://bugs.launchpad.net/bugs/1836791

Title:
  LDM SegFault when loading additional plugins

Status in ldm package in Ubuntu:
  New

Bug description:
  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.

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



More information about the foundations-bugs mailing list