LDM SegFault when loading additional plugins
Bug #1836793 reported by
Mathieu Philippart
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.
To post a comment you must log in.
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. /github. com/ltsp/ ltsp/tree/ master/ ltsp/client/ login
https:/
Debian Buster and maybe Ubuntu 20.04 will probably be the last versions to ship LTSP5 with LDM.