[compiler-rt] compiler-rt: sanitizer_common: use close_range() instead of looping (PR #114442)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 13:00:33 PDT 2024


================
@@ -543,7 +543,11 @@ pid_t StartSubprocess(const char *program, const char *const argv[],
       internal_close(stderr_fd);
     }
 
+#  if SANITIZER_FREEBSD
+    internal_close_range(3, ~0U, 0);
----------------
fmayer wrote:

+1, the types also look suspicious as is to me.

https://github.com/llvm/llvm-project/pull/114442


More information about the llvm-commits mailing list