GNOME Bugzilla – Bug 301093
Crashes in impl_save
Last modified: 2005-06-05 13:15:26 UTC
Distribution/Version: Debian experimental Go to a page with a favicon and witness a crash (happens on my ppc, not on my i386).. Patch attached with a fix
Created attachment 45406 [details] [review] Use the right type when getting a property impl_save gets the max_size (among other things) from the EphyEmbedPersist object.. It passes a 32 bit (on ppc32) variable to it to store the value, but the stored value is 64 bit. Which causes some memory curruption, resulting in the crash i was seeing
Fixed in cvs (HEAD and gnome-2-10); thanks for the patch!
In the changelog you mention that it's a crash on 64 bit archs.. That's wrong, my powerpc is definately 32 bit :).. The property that's being retrieved is a 64 bit value (gint64), which was being stored in a 32 bit variable (what long is on 32 bit archs).. So probably it wouldn't even crash on 64 bit archs where long is 64 bit :)
Right, sorry. Just a thinko while writing the changelog entry :)
*** Bug 306429 has been marked as a duplicate of this bug. ***