Skip to content

[win/asan] Avoid warnings in compiling interception_win_test.cpp. #116887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler-rt/lib/interception/tests/interception_win_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const u8 kUnpatchableCode6[] = {
0x90, 0x90, 0x90, 0x90,
};

# if SANITIZER_WINDOWS64
const u8 kUnpatchableCode7[] = {
0x33, 0xc0, // xor eax,eax
0x48, 0x85, 0xd2, // test rdx,rdx
Expand Down Expand Up @@ -286,7 +287,9 @@ const u8 kPatchableCode11[] = {
0x48, 0x83, 0xec, 0x38, // sub rsp,38h
0x83, 0x64, 0x24, 0x28, 0x00, // and dword ptr [rsp+28h],0
};
# endif

# if !SANITIZER_WINDOWS64
const u8 kPatchableCode12[] = {
0x55, // push ebp
0x53, // push ebx
Expand All @@ -302,6 +305,7 @@ const u8 kPatchableCode13[] = {
0x56, // push esi
0x8b, 0x5c, 0x24, 0x14, // mov ebx,dword ptr[esp+14h]
};
# endif

const u8 kPatchableCode14[] = {
0x55, // push ebp
Expand Down
Loading