[PATCH] D102543: [Scudo] Make -fsanitize=scudo use standalone. Migrate tests.
    Kostya Kortchinsky via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat May 15 07:59:53 PDT 2021
    
    
  
cryptoad added a comment.
Thanks a lot Mitch! Couple of comments from a first look, I'll give it another go later.
================
Comment at: compiler-rt/lib/scudo/standalone/wrappers_cpp.cpp:42
+      if (Allocator.canReturnNull()) {                                         \
+        errno = EINVAL;                                                        \
+        return nullptr;                                                        \
----------------
I don't think errno carry over to  C++, there seems to be no sign of it in https://en.cppreference.com/w/cpp/memory/new/operator_new
================
Comment at: compiler-rt/test/scudo/standalone/lit.cfg.py:21
 c_flags = ([config.target_cflags] +
-           ["-pthread",
-           "-fPIE",
-           "-pie",
-           "-O0",
-           "-UNDEBUG",
-           "-ldl",
-           "-Wl,--gc-sections"])
+           ["-pthread", "-fPIE", "-pie", "-O0", "-UNDEBUG", "-ldl",
+            "-Wl,--gc-sections"])
----------------
-ldl might not be necessary anymore without the sanitizer dependencies?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102543/new/
https://reviews.llvm.org/D102543
    
    
More information about the cfe-commits
mailing list