Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2008 06:09:18 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135775 for review
Message-ID:  <200802200609.m1K69IeX087577@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135775

Change 135775 by jb@jb_freebsd1 on 2008/02/20 06:08:23

	Avoid a core dump.

Affected files ...

.. //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_lookup.c#8 edit

Differences ...

==== //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_lookup.c#8 (text) ====

@@ -219,6 +219,9 @@
 {
 	ctf_file_t *fp = *fpp; /* caller passes in starting CTF container */
 
+	if (fp == NULL || type < 0)
+		return (NULL);
+
 	if ((fp->ctf_flags & LCTF_CHILD) && CTF_TYPE_ISPARENT(type) &&
 	    (fp = fp->ctf_parent) == NULL) {
 		(void) ctf_set_errno(*fpp, ECTF_NOPARENT);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802200609.m1K69IeX087577>