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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 9 02:16:12 PST 2013


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

--- Comment #10 from Michael Stapelberg <michael+freedesktop at stapelberg.de> ---
(In reply to comment #9)
> Created attachment 88910 [details]
> fix for loop
> 
> Sorry Uli, I couldn't apply the patch, but I think the first one is obsolete.
> This patch fix the segfault but the code from sprunge.us seems to do
> nothing. The cursor is a black cross and doesn't change. 
>  
> With this patch, error from awesome are more reliable. Always X error with
> bad drawable. 
I don’t think that patch is correct. Instead, can you try the following (on top
of latest git) please?

--- i/cursor/parse_cursor_file.c
+++ w/cursor/parse_cursor_file.c
@@ -138,7 +138,7 @@ int parse_cursor_file(xcb_cursor_context_t *c, const int
fd, xcint_image_t **ima
     for (int n = 0; n < cf.header.ntoc; n++) {
         xcint_chunk_header_t chunk;
         /* for convenience */
-        xcint_image_t *i = &((*images)[n]);
+        xcint_image_t *i = &((*images)[cnt]);
         uint32_t numpixels = 0;
         uint32_t *p = NULL;

> I have no strace on my computer, but I know that xcb-util-cursor try to open
> $HOME/.icons/default/cursors/+argv[1]. I do most of the test with this file
> > http://dl.dropboxusercontent.com/u/39506370/left_ptr
Then install strace please?

-- 
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/20131109/b952f04c/attachment.html>


More information about the Xcb mailing list