<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - xcb-util-cursor trying to create Pixmap of size 0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71060#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - xcb-util-cursor trying to create Pixmap of size 0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71060">bug 71060</a>
              from <span class="vcard"><a class="email" href="mailto:psychon@znc.in" title="Uli Schlachter <psychon@znc.in>"> <span class="fn">Uli Schlachter</span></a>
</span></b>
        <pre>So the error is xcb-util-cursor creating a pixmap of size 0x0. This must be
coming from xcb_cursor_load_cursor():

 <a href="http://cgit.freedesktop.org/xcb/util-cursor/tree/cursor/load_cursor.c#n227">http://cgit.freedesktop.org/xcb/util-cursor/tree/cursor/load_cursor.c#n227</a>

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:

 <a href="http://cgit.freedesktop.org/xorg/lib/libXcursor/tree/src/file.c#n425">http://cgit.freedesktop.org/xorg/lib/libXcursor/tree/src/file.c#n425</a>

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


<a href="http://cgit.freedesktop.org/xcb/util-cursor/tree/cursor/parse_cursor_file.c#n148">http://cgit.freedesktop.org/xcb/util-cursor/tree/cursor/parse_cursor_file.c#n148</a>

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().</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>