[PATCH] D15644: [asan] Use private aliases for global variables (compiler-rt part).

Maxim Ostapenko via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 11:52:10 PST 2015


m.ostapenko added inline comments.

================
Comment at: test/asan/TestCases/Linux/local_alias.cc:15
@@ +14,3 @@
+long foo(long *);
+long h = 12;
+long i = 13;
----------------
kcc wrote:
> 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? 
Right. But still, there's C code with semantic interposition that would fail here unconditionally. 


Repository:
  rL LLVM

http://reviews.llvm.org/D15644





More information about the llvm-commits mailing list