mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-5869 Fix for some out of bounds array indices and shift amounts
This commit is contained in:
parent
7426d4b685
commit
943ccd322d
17 changed files with 98 additions and 50 deletions
|
@ -665,8 +665,9 @@ uintb PcodeOp::getNZMaskLocal(bool cliploop) const
|
|||
resmask &= fullmask;
|
||||
break;
|
||||
case CPUI_PIECE:
|
||||
sa = getIn(1)->getSize();
|
||||
resmask = getIn(0)->getNZMask();
|
||||
resmask <<= 8*getIn(1)->getSize();
|
||||
resmask = (sa < sizeof(uintb)) ? resmask << 8*sa : 0;
|
||||
resmask |= getIn(1)->getNZMask();
|
||||
break;
|
||||
case CPUI_INT_MULT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue