[Xcb] [Bug 71060] xcb-util-cursor trying to create Pixmap of size 0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 30 18:09:53 CET 2013


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

--- Comment #1 from Uli Schlachter <psychon at znc.in> ---
So the error is xcb-util-cursor creating a pixmap of size 0x0. This must be
coming from xcb_cursor_load_cursor():

 http://cgit.freedesktop.org/xcb/util-cursor/tree/cursor/load_cursor.c#n227

So something is missing a 0-check somewhere.


Thinking "how does libXcursor handle this", I found the following. It's the
only 0-check I saw and no idea if this is the right one:

 http://cgit.freedesktop.org/xorg/lib/libXcursor/tree/src/file.c#n425

while xcb-util-cursor doesn't do anything equivalent to this:


http://cgit.freedesktop.org/xcb/util-cursor/tree/cursor/parse_cursor_file.c#n148

Since I have a hard time imagining that such a broken cursor file could be
laying around anywhere, I hope someone can figure out where this broken data is
coming from.

Perhaps the fix is as easy as checking for too small (and also for too large?
libXcursor does that) width/height in parse_cursor_file().

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20131030/53656ace/attachment.html>


More information about the Xcb mailing list