[PATCH] D54473: [sanitizers] Initial implementation for -fsanitize=init-locals

Alexander Potapenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 14 05:18:51 PST 2018


glider added inline comments.


================
Comment at: include/clang/Basic/Sanitizers.def:163
+// Initialize local variables.
+SANITIZER("init-locals", InitLocals)
+
----------------
lebedev.ri wrote:
> Unless i'm mistaken, I suspect you may see some surprising behavior here, unfortunately.
> [[ https://bugs.llvm.org/show_bug.cgi?id=39425 | Bug 39425 - SanitizerOrdinal is out of bits ]]
Um, this is unfortunate.
We don't strictly need this feature to live under -fsanitize= flag, although having the corresponding attribute could've been handy.


Repository:
  rC Clang

https://reviews.llvm.org/D54473





More information about the cfe-commits mailing list