mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-16 15:40:14 +00:00
Truncation amount was not expressed in bytes
This commit is contained in:
parent
1ada2384d3
commit
38b72df280
@ -478,7 +478,7 @@ bool SubvariableFlow::traceForward(ReplaceVarnode *rvn)
|
||||
newmask = (rvn->mask >> sa) & calc_mask(outvn->getSize());
|
||||
if (newmask == 0) break; // subvar is set to zero, truncate flow
|
||||
if (rvn->mask != (newmask << sa)) { // Some kind of truncation of the logical value
|
||||
if (flowsize > (sa + outvn->getSize()) && (rvn->mask & 1) != 0) {
|
||||
if (flowsize > ((sa/8) + outvn->getSize()) && (rvn->mask & 1) != 0) {
|
||||
// Only a piece of the logical value remains
|
||||
addTerminalPatchSameOp(op, rvn, 0);
|
||||
hcount += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user