GNOME Bugzilla – Bug 338831
[PATCH] gnome-session may crash on 64-bit platforms due to pointer truncation
Last modified: 2006-04-24 21:55:20 UTC
There are two modules in gnome-session that are missing an include for util.h. Because of this, the gsm_get_conf_client() function is not properly prototyped. Since this function returns a pointer, that's a problem, because without a protoype, GCC determines that the pointer returns an int. The result can cause crashes on 64-bit platforms such as amd64. Attached are patches to correct both instances.
Created attachment 63746 [details] [review] Properly prototype gsm_get_conf_client()
Created attachment 63747 [details] [review] Properly prototype gsm_get_conf_client()
Thanks