[Xcb] bug #8208: proposed patches

Barton C Massey bart at cs.pdx.edu
Fri Sep 15 15:26:32 PDT 2006


In message <20060915175650.GA28137 at id.minilop.net> you wrote:
> > Shouldn't XCBConnectionHasError() also check for (c=3D=3DNULL || (int)=20
> > c=3D=3D1)?
> I think the app should segfault if it passes in null.

Of course you know this, but don't count on dereferencing a
null pointer to produce a segfault; add an assertion that
the pointer is non-null.  Otherwise the SE and security
issues get hard, and the check is free.

     Bart


More information about the Xcb mailing list