allow constant pointers to be inferred inside of strings

This commit is contained in:
caheckman 2020-06-02 19:15:41 -04:00
parent fc053ad50f
commit 91ef0680da
2 changed files with 10 additions and 3 deletions

View file

@ -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);