checked sources of xorg-server 1.7.0 with static code analysis tool cppcheck

Michel Dänzer michel at
Sat Oct 3 06:02:13 PDT 2009

On Sat, 2009-10-03 at 08:43 -0400, Thomas Dickey wrote: 
> On Sat, 3 Oct 2009, Michel Dnzer wrote:
> > What purpose is that? If these functions were actually called with a
> > NULL PixmapPtr, surely the current code would have crashed with a
> > segmentation fault.
> I suppose that if you prefer the server to crash rather than check error
> conditions, there's no point in the change.

I'd expect ModifyPixmapHeader getting called with a NULL PixmapPtr to
always be a bug in the caller. I'd rather catch and fix that than cover
it up. Maybe I'm missing something.

Earthling Michel Dänzer           |      
Libre software enthusiast         |          Debian, X and DRI developer

More information about the xorg-devel mailing list