mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-5184_PtrsubUndoFix
This commit is contained in:
parent
420dd7ce0c
commit
21a6a276b2
10 changed files with 66 additions and 47 deletions
|
@ -565,7 +565,7 @@ void Funcdata::opUndoPtradd(PcodeOp *op,bool finalize)
|
|||
newVal &= calc_mask(offVn->getSize());
|
||||
Varnode *newOffVn = newConstant(offVn->getSize(), newVal);
|
||||
if (finalize)
|
||||
newOffVn->updateType(offVn->getTypeReadFacing(op), false, false);
|
||||
newOffVn->updateType(offVn->getTypeReadFacing(op));
|
||||
opSetInput(op,newOffVn,1);
|
||||
return;
|
||||
}
|
||||
|
@ -573,7 +573,7 @@ void Funcdata::opUndoPtradd(PcodeOp *op,bool finalize)
|
|||
opSetOpcode(multOp,CPUI_INT_MULT);
|
||||
Varnode *addVn = newUniqueOut(offVn->getSize(),multOp);
|
||||
if (finalize) {
|
||||
addVn->updateType(multVn->getType(), false, false);
|
||||
addVn->updateType(multVn->getType());
|
||||
addVn->setImplied();
|
||||
}
|
||||
opSetInput(multOp,offVn,0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue