Closed
Bug 299112
Opened 19 years ago
Closed 19 years ago
length value has wrapped in calculation (did you pass G_MAXLONG?)
Categories
(Core Graveyard :: GFX: Gtk, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: tuukka.tolvanen, Assigned: tuukka.tolvanen)
References
Details
Attachments
(1 file)
1.78 KB,
patch
|
roc
:
review+
roc
:
superreview+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
After update to gtk 2.6.8-1 (debian), getting spewage like: (thunderbird-bin:6212): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) http://lxr.mozilla.org/mozilla/source/gfx/src/gtk/nsScreenGtk.cpp#142 http://lxr.mozilla.org/mozilla/source/gfx/src/cairo/nsCairoScreen.cpp#135 http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.6/gtk+-2.6.8.changes 2005-05-18 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if length overflows. (#161520, Ian Wienand) http://developer.gnome.org/doc/API/gdk/gdk-properties-and-atoms.html#gdk-property-get gdkproperty-x11.c: /* * Round up length to next 4 byte value. Some code is in the (bad?) * habit of passing G_MAXLONG as the length argument, causing an * overflow to negative on the add. In this case, we clamp the * value to G_MAXLONG. */ get_length = length + 3; if (get_length > G_MAXLONG) { g_warning ("gdk_property_get(): length value has wrapped in calculation " "(did you pass G_MAXLONG?)"); get_length = G_MAXLONG; } Older gtk versions (e.g. 2.6.7) just used (length + 3) / 4 without checking...
Assignee | ||
Comment 1•19 years ago
|
||
here's a nice and lame patch to use G_MAXLONG - 3 instead of G_MAXLONG, with a comment.
Assignee: blizzard → tuukka.tolvanen
Status: NEW → ASSIGNED
Attachment #187637 -
Flags: superreview?(blizzard)
Attachment #187637 -
Flags: review?(roc)
Attachment #187637 -
Flags: superreview?(blizzard)
Attachment #187637 -
Flags: superreview+
Attachment #187637 -
Flags: review?(roc)
Attachment #187637 -
Flags: review+
Assignee | ||
Updated•19 years ago
|
Attachment #187637 -
Flags: approval1.8b3?
Updated•19 years ago
|
Attachment #187637 -
Flags: approval1.8b3? → approval1.8b3+
Assignee | ||
Comment 2•19 years ago
|
||
checked in, http://bonsai.mozilla.org/cvsquery.cgi?date=explicit&mindate=2005-07-03%2014:09&maxdate=2005-07-03%2014:09
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 3•19 years ago
|
||
*** Bug 298153 has been marked as a duplicate of this bug. ***
Comment 4•19 years ago
|
||
I'm having this problem with thunderbird-1.0.6 thunderbird spits (thunderbird-bin:25868): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) and refuses to start (hangs) please reopen this bug
Assignee | ||
Comment 5•19 years ago
|
||
> I'm having this problem with thunderbird-1.0.6 > please reopen this bug no -- this bug is fixed on trunk for 1.1 and isn't a critical issue that warrants fixing on the stable branch.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•