[Xcb] segfault in XCBConnSetupSuccessRepRootsIter

Jamey Sharp jamey at minilop.net
Sun Nov 7 16:16:34 PST 2004


On Sun, Nov 07, 2004 at 05:24:13PM -0500, Jeremy A. Kolb wrote:
> int main(int argc, char *argv[])
>       8 {
>       9     XCBConnection       *c;
>      10     XCBSCREEN           *root;
>      11     XCBDRAWABLE         draw;
>      12     XCBDRAWABLE         p;
>      13     XCBGCONTEXT         black;
>      14     XCBPOINT            point = {100, 100};
>      15     XCBGenericEvent     *e;
>      16     CARD32              mask = 0;
>      17     CARD32              values[6];
>      18 
>      19     root = XCBConnSetupSuccessRepRootsIter(c->setup).data;

This one's not too hard. :-) That line dereferences `c`, which is not
initialized yet. You have to have connected to the X server before you
can do that.
-- 
Jamey Sharp <jamey at minilop.net> - http://minilop.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://freedesktop.org/pipermail/xcb/attachments/20041107/ddc61fbe/attachment.pgp


More information about the xcb mailing list