LDM SegFault when loading additional plugins

Bug #1836791 reported by Mathieu Philippart
8
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.

Tags: patch
Revision history for this message
Mathieu Philippart (philippartm) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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.]

tags: added: patch
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Closing old LTSP bugs as they're no longer relevant after LTSP has been rewritten from scratch.

Changed in ldm (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.