search for: 8056b3cd

Displaying 3 results from an estimated 3 matches for "8056b3cd".

2012 Nov 03
0
[LLVMdev] should asan catch tihs?
On Fri, Nov 2, 2012 at 6:27 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote: > I just tried asan on an optimized 32 bit build of > ------------------------------------- > #include <stdint.h> > __attribute__((noinline)) > void f(uint64_t *p) { > *p = 42; > } > int main() { > void *p; > f((uint64_t*)&p); > } >
2012 Nov 03
3
[LLVMdev] should asan catch tihs?
I just tried asan on an optimized 32 bit build of ------------------------------------- #include <stdint.h> __attribute__((noinline)) void f(uint64_t *p) { *p = 42; } int main() { void *p; f((uint64_t*)&p); } ------------------------------------ and it correctly catches the invalid access. If I comment the attribute, the optimizers find and exploit the undefined behavior and
2012 Nov 03
2
[LLVMdev] should asan catch tihs?
...> LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121103/8056b3cd/attachment.html>