Closed
Description
For context you can build asan for arm64 however it asserts in GetInstructionSize
because it can't parse the arm instructions.
SANITIZER_WINDOWS64
as defined should only be used to determine if we are working on a 32bit or 64bit operating system.
llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
Lines 114 to 118 in 145a929
However, in practice it is being used to parse x86_64 instructions.
llvm-project/compiler-rt/lib/interception/interception_win.cpp
Lines 459 to 486 in 145a929
I put up a patch: here https://reviews.llvm.org/D156839
based on:
farzonl@223ee30