[compiler-rt] [sanitizer][asan][msvc] Teach GetInstructionSize about many instructions that appear in MSVC generated code. (PR #69490)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 11:00:22 PDT 2024


================
@@ -494,6 +494,11 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
     case 0x6A:  // 6A XX = push XX
       return 2;
 
+    // This instruction can be encoded with a 16-bit immediate but that is
----------------
rnk wrote:

Surely that's processor mode dependent, right? I think we can safely say that our decodings are only valid for x86/x64.

https://github.com/llvm/llvm-project/pull/69490


More information about the llvm-commits mailing list