LDM SegFault when loading additional plugins

Bug #1836793 reported by Mathieu Philippart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LTSP5
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.

Revision history for this message
Mathieu Philippart (philippartm) wrote :
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Thank you for the patch; but keep in mind that LDM isn't developed anymore; the new LTSP19+ is using PAM-based logins, so normal DMs like gdm, lightdm etc.
https://github.com/ltsp/ltsp/tree/master/ltsp/client/login

Debian Buster and maybe Ubuntu 20.04 will probably be the last versions to ship LTSP5 with LDM.

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 ltsp:
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.