[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 06:48:27 PST 2024
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <bernhardu at mailbox.org>,
Bernhard =?utf-8?q?Übelacker?= <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 */
----------------
zmodem wrote:
Did you use any tooling to generate these tests? If so, maybe add a comment about it.
https://github.com/llvm/llvm-project/pull/113085
More information about the llvm-commits
mailing list