Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2010 15:57:37 GMT
From:      Jonathan Anderson <jona@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 174096 for review
Message-ID:  <201002011557.o11Fvba1076127@repoman.freebsd.org>

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

Change 174096 by jona@jona-belle-freebsd8 on 2010/02/01 15:57:23

	Ensure that the argument to add_libdir_paths() is not NULL

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#33 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#33 (text+ko) ====

@@ -2126,6 +2126,9 @@
 static void
 add_libdir_paths(const char *path) {
 
+    if (path == NULL)
+	return;
+
     char *pathcopy, *dirname, *tokcontext;
     int pathlen = strnlen(path, PATH_MAX);
 



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