mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
adjustments to resolveConstant
This commit is contained in:
parent
612c0d6f3e
commit
4edff2b9f0
10 changed files with 51 additions and 20 deletions
|
@ -1403,7 +1403,8 @@ bool PrintC::pushPtrCharConstant(uintb val,const TypePointer *ct,const Varnode *
|
|||
{
|
||||
if (val==0) return false;
|
||||
AddrSpace *spc = glb->getDefaultSpace();
|
||||
Address stringaddr = glb->resolveConstant(spc,val,ct->getSize(),op->getAddr());
|
||||
uintb fullEncoding;
|
||||
Address stringaddr = glb->resolveConstant(spc,val,ct->getSize(),op->getAddr(),fullEncoding);
|
||||
if (stringaddr.isInvalid()) return false;
|
||||
if (!glb->symboltab->getGlobalScope()->isReadOnly(stringaddr,1,Address()))
|
||||
return false; // Check that string location is readonly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue