[compiler-rt] r258983 - [sanitizers] using execv instead of execve with null env.

Mike Aizatsky via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 12:35:19 PST 2016


Author: aizatsky
Date: Wed Jan 27 14:35:18 2016
New Revision: 258983

URL: http://llvm.org/viewvc/llvm-project?rev=258983&view=rev
Log:
[sanitizers] using execv instead of execve with null env.

Differential Revision: http://reviews.llvm.org/D16646

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc?rev=258983&r1=258982&r2=258983&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix_libcdep.cc Wed Jan 27 14:35:18 2016
@@ -365,7 +365,7 @@ pid_t StartSubprocess(const char *progra
 
     for (int fd = sysconf(_SC_OPEN_MAX); fd > 2; fd--) internal_close(fd);
 
-    internal_execve(program, const_cast<char **>(&argv[0]), nullptr);
+    execv(program, const_cast<char **>(&argv[0]));
     internal__exit(1);
   }
 




More information about the llvm-commits mailing list