PERFORCE change 174096 for review

Jonathan Anderson jona at FreeBSD.org
Mon Feb 1 15:57:38 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=174096

Change 174096 by jona at 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);
 


More information about the p4-projects mailing list