[PATCH] D32895: [ASAN] Insert call to __asan_init and load of dynamic shadow address in correct order

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 10:41:05 PDT 2017


kcc added a comment.

I don't think this is the right fix. 
Please explain more: why does this load from __asan_shadow_memory_dynamic_address happen in a function that does not have sanitize_address attribute?

> I don't know how to write unit test for it, so any suggestions/comments are appreciated.

Check the test/Instrumentation/AddressSanitizer/ dir. 
Maybe, a proper test will help explain the fix.


Repository:
  rL LLVM

https://reviews.llvm.org/D32895





More information about the llvm-commits mailing list