[Xcb] [Bug 19137] New: unchecked malloc in _XConnectXCB would crash

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 17 07:07:37 PST 2008


           Summary: unchecked malloc in _XConnectXCB would crash
           Product: XCB
           Version: 1.1
          Platform: Other
               URL: http://mxr.maemo.org/diablo/source/libx11-
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: timeless at gmail.com


please excuse the code reference if it isn't current.

my starting point was this:

and i tried to find an lxr for upstream, but failed, i've pinged daniels about

int _XConnectXCB(Display *dpy, _Xconst char *display, char **fullnamep, int
        dpy->xcl = Xcalloc(1, sizeof(XCLPrivate));
                return 0;
-- so, you do check allocs --
                *fullnamep = Xmalloc(len);
-- you didn't check this alloc --
                snprintf(*fullnamep, len, "%s:%d.%d", host, n, *screenp);
-- this will crash --

I don't understand the xcb versioning, so please excuse me if i got it wrong.

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

More information about the Xcb mailing list