[PATCH] PR20721: Don't let UBSan print inaccessible memory

Evgeniy Stepanov eugenis at google.com
Tue Sep 9 01:40:47 PDT 2014


================
Comment at: lib/sanitizer_common/sanitizer_posix_libcdep.cc:171
@@ +170,3 @@
+  int sock_pair[2];
+  if (pipe(sock_pair))
+    return false;
----------------
Pipes have capacity, and large writes can block.
Maybe write to /dev/null instead?

http://reviews.llvm.org/D5253






More information about the llvm-commits mailing list