mirror of
https://github.com/geohot/qira
synced 2025-02-06 01:24:12 +03:00
Merge pull request #1 from janbbeck/janbbeck-patch-xsavec
Fix bug in PIN plugin using xsavec
This commit is contained in:
commit
8fa5660a8e
@ -650,6 +650,11 @@ VOID Instruction(INS ins, VOID *v) {
|
|||||||
// TODO: Bitch at the PIN folks.
|
// TODO: Bitch at the PIN folks.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(INS_Mnemonic(ins) == "XSAVEC") {
|
||||||
|
// Avoids "Cannot use IARG_MEMORYWRITE_SIZE on non-standard memory access of instruction at 0xfoo: xsavec ptr [rsp]"
|
||||||
|
// TODO: Bitch at the PIN folks.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for(UINT32 i = 0; i < memOps; i++) {
|
for(UINT32 i = 0; i < memOps; i++) {
|
||||||
if(!filtered && INS_MemoryOperandIsRead(ins, i)) {
|
if(!filtered && INS_MemoryOperandIsRead(ins, i)) {
|
||||||
@ -969,4 +974,3 @@ int main(int argc, char *argv[]) {
|
|||||||
process_state.init(PIN_GetPid());
|
process_state.init(PIN_GetPid());
|
||||||
PIN_StartProgram(); // Note that this unwinds the stack!
|
PIN_StartProgram(); // Note that this unwinds the stack!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user