mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch
'origin/GP-3970_emteere_ConstantEvaluatorCheckRegression' into patch (#5901)
This commit is contained in:
commit
7d34bcf6ad
1 changed files with 5 additions and 2 deletions
|
@ -573,9 +573,12 @@ public class VarnodeContext implements ProcessorContext {
|
||||||
value = (value << 8 * (8 - size)) >> 8 * (8 - size);
|
value = (value << 8 * (8 - size)) >> 8 * (8 - size);
|
||||||
}
|
}
|
||||||
|
|
||||||
// constants pulled from memory are suspec
|
// constants pulled from memory are suspect
|
||||||
// unless memory is readonly, or given access from evaluator (trustWriteAccess)
|
// unless memory is readonly, or given access from evaluator (trustWriteAccess)
|
||||||
int spaceId = (isReadOnly || evaluator.allowAccess(this, addr)) ? 0 : SUSPECT_OFFSET_SPACEID;
|
int spaceId = SUSPECT_OFFSET_SPACEID;
|
||||||
|
if (isReadOnly || (evaluator != null && evaluator.allowAccess(this, addr))) {
|
||||||
|
spaceId = 0;
|
||||||
|
}
|
||||||
return createVarnode(value, spaceId, size);
|
return createVarnode(value, spaceId, size);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue