[PATCH] D30432: [asan] Print a "PC is at a non-executable memory region" message if that's the case
Ulrich Weigand via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 10 09:53:14 PDT 2018
uweigand added a comment.
This is also failing on s390x (randomly). The problem is that we don't actually have a non-executable flag, so the processor *will* execute the contents of "array" as code. Depending on what's there (it is just uninitialized memory), this will crash sooner or later, but in a way that may or may not make the check succeed randomly.
I believe this (i.e. the "n" variant of the test) should only be attempted on architectures that are actually supposed to have non-execute protection.
Repository:
rL LLVM
https://reviews.llvm.org/D30432
More information about the llvm-commits
mailing list