[PATCH] D123312: [ASan] Removed code from unaligned case which was causing wrong reporting.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 14:13:33 PDT 2022


eugenis added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:1874
-    if (Exp == 0)
-      IRB.CreateCall(AsanMemoryAccessCallbackSized[IsWrite][0],
-                     {AddrLong, Size});
----------------
I'm confused - AsanMemoryAccessCallbackSized callbacks go to `__asan_loadN` / `__asan_storeN` versions which should handle unaligned properly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123312/new/

https://reviews.llvm.org/D123312



More information about the llvm-commits mailing list