[6810] in Athena Bugs

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

Guaranteed null pointer deref in xlib

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Mon Jan 7 02:17:06 1991

To: bugs@ATHENA.MIT.EDU
Cc: swick@ATHENA.MIT.EDU
Reply-To: marc@MIT.EDU
Date: Mon, 07 Jan 91 02:16:42 EST
From: Marc Horowitz <marc@ATHENA.MIT.EDU>

from /mit/x11/src/mit/lib/X/Xrm.c:

    void XrmMergeDatabases(new, into)
	XrmDatabase	new, *into;
    {
	if (*into == NULL) {
	    *into = new;
	} else if (new != NULL) {
	    Merge(new, *into);
	}
    }

If the second arg is NULL (although I don't know why anybody would
pass that in), this will dump core.  I'd like to know what the author
was thinking (smoking? :-) when he wrote this....

		Marc

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