GNOME Bugzilla – Bug 309025
gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?)
Last modified: 2005-12-12 18:37:50 UTC
Newer gtk+ have this change: 2005-05-18 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if length overflows. (#161520, Ian Wienand) Which warns all the gdk_property_get calls that have the length parameter that overflow G_MAXLONG. What happens is that in gdk_property_get rounds length up to the next 4th byte value (length = length + 3). In vtebg.c and vterdb.c we pass INT_MAX as length to those two calls and we end up overflowing (because of the +3) and producing the (harmless) warning. I'll attach a simple patch to eliminate these warnings
Created attachment 48330 [details] [review] Remove gdk-property warnings
The gdk docs say this about the length parameter of gdk_property_get(): length:the length of the data to retrieve in bytes. Data is considered to be retrieved in 4 byte chunks, so length will be rounded up to the next highest 4 byte boundary (so be careful not to pass a value that might overflow when rounded up).
Ops..pressed tab and then space inadvertently..sorry about that.. Anyways, I think that by following the docs it's the app's duty to not pass INT_MAX but INT_MAX - 3, and make sure to not overflow.
*** Bug 309581 has been marked as a duplicate of this bug. ***
Hi, Will this be released for 2.10 or should we grab the patch? Thanks.
I'd just go for Gnome-2.12 for this one, it's just some harmless warnings with recent gtk+'s. Kjaartan's call though..
Well, vte has never had stable branches so you should in theory be able to use any 0.11.x release with any earlier stable release of GNOME.
Ah ok. Tought we'd target a specific gnome version with vte.. So I guess we can check this in now, since we'll "suggest" the just released 0.11.14 for the release of gnome-2.12. correct?
*** Bug 317481 has been marked as a duplicate of this bug. ***
*** Bug 317482 has been marked as a duplicate of this bug. ***
This was already aplied. Must have forgotten to close the bug.