Changeset 99221 in vbox for trunk/src/VBox/HostDrivers/Support/posix
- Timestamp:
- Mar 30, 2023 12:48:09 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/posix/SUPR3HardenedMain-posix.cpp
r99220 r99221 365 365 return VERR_SUPLIB_UNEXPECTED_INSTRUCTION; 366 366 367 if (Dis.arch.x86.ModRM.Bits.Mod == 0 && Dis. ModRM.Bits.Rm == 5 /* wrt RIP */)367 if (Dis.arch.x86.ModRM.Bits.Mod == 0 && Dis.arch.x86.ModRM.Bits.Rm == 5 /* wrt RIP */) 368 368 cRipRelMovs++; 369 369 if ( Dis.pCurInstr->uOpcode == OP_CALL … … 427 427 return VERR_SUPLIB_UNEXPECTED_INSTRUCTION; 428 428 429 uintptr_t uAddr = (uintptr_t)&pbTarget[offInsn + cbInstr] + (intptr_t)Dis.Param2. uDisp.i32;429 uintptr_t uAddr = (uintptr_t)&pbTarget[offInsn + cbInstr] + (intptr_t)Dis.Param2.arch.x86.uDisp.i32; 430 430 431 431 if (fConvRipRelMovs) … … 443 443 *pbPatchMem++ = 0x48; 444 444 *pbPatchMem++ = 0x8b; 445 *pbPatchMem++ = (Dis.Param1. Base.arch.x86.idxGenReg << X86_MODRM_REG_SHIFT) | Dis.Param1.Base.arch.x86.idxGenReg;445 *pbPatchMem++ = (Dis.Param1.arch.x86.Base.idxGenReg << X86_MODRM_REG_SHIFT) | Dis.Param1.Base.arch.x86.idxGenReg; 446 446 } 447 447 else
Note:
See TracChangeset
for help on using the changeset viewer.