gnucash unstable: Bug 787439 - Segmentation Fault in Transfer dialog after clearing...

John Ralls jralls at code.gnucash.org
Tue Mar 13 14:39:57 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/c381b2c9 (commit)
	from  https://github.com/Gnucash/gnucash/commit/2391db37 (commit)



commit c381b2c965f58ba35b4c1c254a8207e1f3714b44
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Mar 13 11:28:39 2018 -0700

    Bug 787439 - Segmentation Fault in Transfer dialog after clearing...
    
     Date field and pressing escape.
    
    gtk_widget_destroy() ran the signals on the dialog controls which
    tried to access the XferDialog data, but since gnc_xfer_dialog_close_cb()
    had already run that memory had been freed and then used by the std::string
    in GncDate::format; later handlers attempting to access the XferData had
    garbage pointers to work with, causing a crash.
    
    Running gtk_widget_destroy() first preserves the pointers long enough for
    the dialog control callbacks to function without crashing.



Summary of changes:
 gnucash/gnome-utils/dialog-transfer.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)



More information about the gnucash-patches mailing list