[PATCH] Protection against stack-based memory corruption errors using SafeStack

Kostya Serebryany kcc at google.com
Tue May 19 17:24:46 PDT 2015


================
Comment at: lib/Transforms/Instrumentation/SafeStack.cpp:542
@@ +541,3 @@
+
+  if (!UnsafeStackPtr)
+    UnsafeStackPtr = getOrCreateUnsafeStackPtr(*F.getParent());
----------------
I am puzzled. Where is UnsafeStackPtr defined? 
It should probably be defined at module init time, not here.

http://reviews.llvm.org/D6094

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






More information about the llvm-commits mailing list