LDM SegFault when loading additional plugins
Bug #1836791 reported by
Mathieu Philippart
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ldm (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
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 post a comment you must log in.
The attachment "ldmplugin.c.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]