[PATCH] Protection against stack-based memory corruption errors using SafeStack: compiler-rt runtime support library

Volodymyr Kuznetsov vova.kuznetsov at epfl.ch
Tue May 19 16:06:07 PDT 2015


================
Comment at: lib/safestack/safestack.cc:166
@@ +165,3 @@
+__attribute__((visibility ("default")))
+#ifndef __ELF__
+// On ELF platforms, the constructor is invoked using .preinit_array (see below)
----------------
This should also use SANITIZER_CAN_USE_PREINIT_ARRAY: __attribute__((constructor(0))) should be added whenever preinit_array is not used.

http://reviews.llvm.org/D6096

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list