GNOME Bugzilla – Bug 335203
crash due to use-after-free during drag-and-drop
Last modified: 2013-09-10 14:04:15 UTC
In evolution/mail/em-utils.c the function em_utils_selection_set_urilist() uses the tmpfile variable in a call to g_filename_to_uri() after it has been freed a few lines earlier. I checked, the current revision 1.77 of that file still contains the bug. I found it while working with Evolution 2.6 as compiled with Garnome 2.14.0. I'm not sure exactly what I did to trigger it, though, and considering the random nature of such memory handling would be hard to find out anyway.
Created attachment 61603 [details] [review] proposed patch to fix the premature memory free
Thanks Patrick. For spotting the bug, providing a patch and using GARNOME. :-) Hmm, not sure about blocker. Anyway, Immediate Priority, Target Milestone 2.6. This needs to be looked into ASAP.
> Hmm, not sure about blocker. Well, I suppose that depends on your release criteria. I'm pretty sure it has caused some of the crashes that I encountered.
Patrick, don't get me wrong. I just mentioned, I am not sure about the Severity. I did not say, it is not. ;) In fact, please note -- I even raised the Priority and set a Target Mailestone, thus raising visibility for the developers. This sure needs to be looked into and fixed ASAP.
Patch looks good to commit to both HEAD and gnome-2.14 stable branch.
patch committed both to 2.6 (gnome-2-14) branch and to cvs head: http://cvs.gnome.org/viewcvs/evolution/mail/em-utils.c?r1=1.79&r2=1.80 http://cvs.gnome.org/viewcvs/evolution/mail/em-utils.c?r1=1.78.2.1&r2=1.78.2.2 thanks a lot.
*** Bug 326123 has been marked as a duplicate of this bug. ***
*** Bug 335075 has been marked as a duplicate of this bug. ***
*** Bug 335283 has been marked as a duplicate of this bug. ***
*** Bug 335770 has been marked as a duplicate of this bug. ***
*** Bug 334633 has been marked as a duplicate of this bug. ***