Issue |
64319
|
Summary |
ASAN on arm64 windows builds but crashes because SANITIZER_WINDOWS64 is used to do x86_64 instruction parsing
|
Labels |
|
Assignees |
|
Reporter |
farzonl
|
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.
https://github.com/llvm/llvm-project/blob/145a9290c2ecee0eb43964ec13bcc080d4db6030/compiler-rt/lib/sanitizer_common/sanitizer_platform.h#L114-L118
However, in practice it is being used to parse x86_64 instructions.
https://github.com/llvm/llvm-project/blob/145a9290c2ecee0eb43964ec13bcc080d4db6030/compiler-rt/lib/interception/interception_win.cpp#L459-L486
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs