mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Truncation amount was not expressed in bytes
This commit is contained in:
parent
1ada2384d3
commit
38b72df280
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue