[Xcb] [Bug 23690] Return value from xcb_generate_id() not checked

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 16 12:55:44 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=23690

--- Comment #3 from ajax at nwnk dot net <ajax at nwnk.net> 2011-12-16 12:55:44 PST ---
BadIDChoice isn't something the client is expected to handle gracefully.  Or
even capable of handling gracefully, for that matter; XID choice is xlib's job.

The paths through which xcb_generate_id can return -1 are, afaict, exactly
those paths that are fatal: either the socket is already in an error condition,
or the server doesn't support XC-MISC, or the server thinks the client is
literally out of XIDs.  It might be interesting to see which of these it is.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Xcb mailing list