GNOME Bugzilla – Bug 751136
xprops: Don't pass ULONG_MAX as a uint32_t parameter
Last modified: 2015-06-18 03:52:30 UTC
It seems the largest possible value is to be passed, so actually pass that instead. Note that even though the name of the xcb_get_property parameter is called 'long_length' its actually a uint32_t.
Created attachment 305513 [details] [review] xprops: Don't pass ULONG_MAX as a uint32_t parameter
Review of attachment 305513 [details] [review]: Nice catch, thank you. It's weird that it accepted G_MAXLONG before, though.
Attachment 305513 [details] pushed as bbf2b4e - xprops: Don't pass ULONG_MAX as a uint32_t parameter
(In reply to Jasper St. Pierre from comment #2) > Review of attachment 305513 [details] [review] [review]: > > Nice catch, thank you. It's weird that it accepted G_MAXLONG before, though. Indeed. Looking at the old code, it seems to have been long until it was written to some struct. Can't remember whether I saw a warning before though.