GNOME Bugzilla – Bug 105834
Startup-notification related crash [gnome_desktop_item_launch_on_screen_with_env]
Last modified: 2004-12-22 21:47:04 UTC
While reviewing the code for startup notification, I found a bug that can cause memory corruption by freeing random address when a DESKTOP_STARTUP_ID is defined in env. Basically, if DESKTOP_STARTUP_ID is already defines, the code in make_spawn_environment_for_sn_context skips the string in both the source *and* destination vector. When freed, the destination vector contains a random value where the DESKTOP_STARTUP_ID was defined.
Created attachment 14265 [details] [review] Fix the memory corruption problem described
Marking severity->critical (memory leak), priority->high (patch), and adding bugsquad keyword.
*** Bug 106356 has been marked as a duplicate of this bug. ***
Patch looks good. Please commit to HEAD. Thanks.
I've gone ahead and committed it. 2003-03-10 Mark McLoughlin <mark@skynet.ie> * gnome-desktop-item.c: (make_spawn_environment_for_sn_context): patch from fourdan@xfce.org for fix memory corruption when DESKTOP_STARTUP_ID is already defined. bug #105834.
*** Bug 107946 has been marked as a duplicate of this bug. ***
*** Bug 123623 has been marked as a duplicate of this bug. ***
*** Bug 106886 has been marked as a duplicate of this bug. ***