mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-2037 RuleDoubleStore
This commit is contained in:
parent
cb4b309942
commit
4448f11cb4
15 changed files with 761 additions and 231 deletions
|
@ -236,7 +236,7 @@ void EmulateMemory::executeLoad(void)
|
|||
|
||||
{
|
||||
uintb off = memstate->getValue(currentOp->getInput(1));
|
||||
AddrSpace *spc = Address::getSpaceFromConst(currentOp->getInput(0)->getAddr());
|
||||
AddrSpace *spc = currentOp->getInput(0)->getSpaceFromConst();
|
||||
|
||||
off = AddrSpace::addressToByte(off,spc->getWordSize());
|
||||
uintb res = memstate->getValue(spc,off,currentOp->getOutput()->size);
|
||||
|
@ -248,7 +248,7 @@ void EmulateMemory::executeStore(void)
|
|||
{
|
||||
uintb val = memstate->getValue(currentOp->getInput(2)); // Value being stored
|
||||
uintb off = memstate->getValue(currentOp->getInput(1)); // Offset to store at
|
||||
AddrSpace *spc = Address::getSpaceFromConst(currentOp->getInput(0)->getAddr()); // Space to store in
|
||||
AddrSpace *spc = currentOp->getInput(0)->getSpaceFromConst(); // Space to store in
|
||||
|
||||
off = AddrSpace::addressToByte(off,spc->getWordSize());
|
||||
memstate->setValue(spc,off,currentOp->getInput(2)->size,val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue