[binutils-gdb] Fix memory corruption in Guile command interface
sergiodj+buildbot@redhat.com
sergiodj+buildbot@redhat.com
Wed Mar 11 15:16:00 GMT 2015
*** TEST RESULTS FOR COMMIT 84a4591a7ba0c83c165cde85898086e9a4019b0d ***
Author: Andy Wingo <wingo@igalia.com>
Branch: master
Commit: 84a4591a7ba0c83c165cde85898086e9a4019b0d
Fix memory corruption in Guile command interface
Re-registering a command will delete previous commands of the same name,
running the destroyer for the command object. The Guile destroyer
incorrectly tried to xfree the name and other strings, which is invalid
as they are on the GC heap.
gdb/ChangeLog:
* guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
other strings, as these are on the GC'd heap, and will be
collected along with the smob.
More information about the Gdb-testers
mailing list