[PATCH] D15644: [asan] Use private aliases for global variables (compiler-rt part).
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 11:35:43 PST 2015
kcc added inline comments.
================
Comment at: test/asan/TestCases/Linux/local_alias.cc:15
@@ +14,3 @@
+long foo(long *);
+long h = 12;
+long i = 13;
----------------
m.ostapenko wrote:
> kcc wrote:
> > isn't this a real ODR which we now will fail to detect?
> Yes, we can't detect ODR violation here, because libfoo.so is sanitized and libbar.so is not. But how could we do it with existing approach? And anyway, this particular testcase fails with CHECK on x86 and with false positive global buffer overflow on x86_64. I think it's better to miss ODR violation than just miserably die :).
With the current approach we do die, even though miserably. So, the bug is in fact detected.
Now we will miss it completely. Right?
Repository:
rL LLVM
http://reviews.llvm.org/D15644
More information about the llvm-commits
mailing list