@@ -230,6 +230,7 @@ const u8 kUnpatchableCode6[] = {
230
230
0x90 , 0x90 , 0x90 , 0x90 ,
231
231
};
232
232
233
+ #if SANITIZER_WINDOWS64
233
234
const u8 kUnpatchableCode7 [] = {
234
235
0x33 , 0xc0 , // xor eax,eax
235
236
0x48 , 0x85 , 0xd2 , // test rdx,rdx
@@ -251,7 +252,9 @@ const u8 kUnpatchableCode9[] = {
251
252
0x84 , 0xc0 , // test al,al
252
253
0x75 , 0xf7 , // jne -9 (unpatchable)
253
254
};
255
+ #endif
254
256
257
+ #if SANITIZER_WINDOWS64
255
258
const u8 kPatchableCode6 [] = {
256
259
0x48 , 0x89 , 0x54 , 0x24 , 0xBB , // mov QWORD PTR [rsp + 0xBB], rdx
257
260
0x33 , 0xC9 , // xor ecx,ecx
@@ -286,7 +289,9 @@ const u8 kPatchableCode11[] = {
286
289
0x48 , 0x83 , 0xec , 0x38 , // sub rsp,38h
287
290
0x83 , 0x64 , 0x24 , 0x28 , 0x00 , // and dword ptr [rsp+28h],0
288
291
};
292
+ #endif
289
293
294
+ #if !SANITIZER_WINDOWS64
290
295
const u8 kPatchableCode12 [] = {
291
296
0x55 , // push ebp
292
297
0x53 , // push ebx
@@ -302,6 +307,7 @@ const u8 kPatchableCode13[] = {
302
307
0x56 , // push esi
303
308
0x8b , 0x5c , 0x24 , 0x14 , // mov ebx,dword ptr[esp+14h]
304
309
};
310
+ #endif
305
311
306
312
const u8 kPatchableCode14 [] = {
307
313
0x55 , // push ebp
0 commit comments