After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 133896 - XGetWindowProperty and mismatched types
XGetWindowProperty and mismatched types
Status: RESOLVED OBSOLETE
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: High normal
: 2.21.3
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2004-02-09 15:48 UTC by Owen Taylor
Modified: 2020-11-06 20:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2004-02-09 15:48:02 UTC
GetWindowProperty has very strange behavior when the requested
type doesn't match the actual type

 * It returns the actual type to actual_type_return
 * It returns 0 to *nitems_return
 * It stores a 1-byte string containing \0 that needs
   to be XFree'ed into *prop_return.

xprops.c:get_property() is buggy here, most likely other uses
of GetWindowProperty are buggy also. The asynchronous
property retrieval code should be checked as well.

(I found bugs in the handling of this all over GTK+, thought
I'd file a bug here)
Comment 1 Thomas Thurman 2007-12-11 13:41:42 UTC
xprops.c:get_property() appears to have left this earth sometime during the 2.12 days, but many other functions in xprops.c call XGetWindowProperty(). I am thinking we need some kind of wrapper, then.

(yes, speedy triage here)
Comment 2 Elijah Newren 2007-12-13 04:40:16 UTC
Some additional notes: Kjartan fixed up a few of these that he caught with valgrind; there may not be any actual current bugs, though I agree a wrapper might prevent future ones.

I also tried reading over a few of these a couple different times, but got distracted before getting through all of them each time, and thus never got around to closing the bug out.  *shrug*
Comment 3 André Klapper 2020-11-06 20:06:13 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/metacity/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.