mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
allow constant pointers to be inferred inside of strings
This commit is contained in:
parent
fc053ad50f
commit
91ef0680da
2 changed files with 10 additions and 3 deletions
|
@ -6553,7 +6553,6 @@ bool RulePtrsubCharConstant::pushConstFurther(Funcdata &data,TypePointer *outtyp
|
|||
Varnode *vn = op->getIn(1);
|
||||
if (!vn->isConstant()) return false; // that is adding a constant
|
||||
uintb addval = vn->getOffset();
|
||||
if (addval > 128) return false; // Sanity check on string size
|
||||
addval *= op->getIn(2)->getOffset();
|
||||
val += addval;
|
||||
Varnode *newconst = data.newConstant(vn->getSize(),val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue