Skip to content

Commit

Permalink
Merge pull request #23 from cooljeanius/autofix/alert-87-79d6a9c879
Browse files Browse the repository at this point in the history
Fix code scanning alert NationalSecurityAgency#87: Multiplication result converted to larger type
just a simple cast
  • Loading branch information
cooljeanius authored Sep 22, 2024
2 parents bf62e66 + b25b3dc commit 9e77536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ghidra/Features/Decompiler/src/decompile/cpp/fspec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ Address ParamEntry::getAddrBySlot(int4 &slotnum,int4 sz,int4 typeAlign) const
}
else
index = slotnum;
res = Address(spaceid, addressbase + index * alignment);
res = Address(spaceid, addressbase + static_cast<uint64_t>(index) * alignment);
slotnum += slotsused; // Inform caller of number of slots used
}
if (!isLeftJustified()) // Adjust for right justified (big endian)
Expand Down

0 comments on commit 9e77536

Please sign in to comment.