[PATCH] D67337: Add __lsan::ScopedInterceptorDisabler for strerror(3)/NetBSD

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 11:08:38 PDT 2019


vitalybuka added inline comments.


================
Comment at: lib/asan/asan_interceptors.cpp:256
+  void *ctx;
+  COMMON_INTERCEPTOR_ENTER(ctx, strerror, errnum);
+#if CAN_SANITIZE_LEAKS
----------------
could you please add this into sanitizer_common/
#ifndef COMMON_INTERCEPTOR_STRERROR
#define COMMON_INTERCEPTOR_STRERROR() {}
#endif

and define in asan and msan
#if NETBSD
#define COMMON_INTERCEPTOR_STRERROR() __lsan::ScopedInterceptorDisabler;
#fi


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67337/new/

https://reviews.llvm.org/D67337





More information about the llvm-commits mailing list