[compiler-rt] [win/asan] Support instructions in GetInstructionSize used by Wine. (PR #113085)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 16:19:18 PST 2024


Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?=C3=9Cbelacker?= <bernhardu at mailbox.org>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/113085 at github.com>


================
@@ -793,6 +799,294 @@ TEST(Interception, EmptyExportTable) {
   EXPECT_EQ(0U, FunPtr);
 }
 
+TEST(Interception, GetInstructionSize) {
+
+  struct {
+    SIZE_T size;
+    u8 instr[16];
+    SIZE_T rel_offset;
+  } data[] = {
+    /* sort list */
----------------
bernhardu wrote:

Unfortunately not, I was basically just copying GetInstructionSize
and editing with notepad++`s multi-line-edit and macro feature.

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


More information about the llvm-commits mailing list