[6813] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: Guaranteed null pointer deref in xlib

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Mon Jan 7 09:23:20 1991

To: marc@MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: Your message of Mon, 07 Jan 91 02:16:42 -0500.
Date: Mon, 07 Jan 91 09:23:03 EST
From: Ralph Swick <swick@ATHENA.MIT.EDU>

    If the second arg is NULL...

Nowhere in the Xlib specification does it say that Xlib will validate
pointer arguments and report meaningful errors if the programmer makes
a mistake.  libc.a does precisely the same thing all over the place...

The right way to "fix" this is to use an ANSI compiler.

home help back first fref pref prev next nref lref last post