[PATCH] D30504: [sanitizer] Bail out with warning if user dlopens shared library with RTLD_DEEPBIND flag

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 10:57:44 PST 2017


kubamracek added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_common.cc:480
+void CheckNoDeepBind(int flag) {
+  if (flag & RTLD_DEEPBIND) {
+    Report("You are trying to dlopen a shared library with RTLD_DEEPBIND flag"
----------------
This will not compile on macOS (RTLD_DEEPBIND is not defined there).


Repository:
  rL LLVM

https://reviews.llvm.org/D30504





More information about the llvm-commits mailing list