mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Merge remote-tracking branch 'origin/GT-3215_StrideOverflow' into Ghidra_9.1
This commit is contained in:
commit
60ac2077bc
1 changed files with 2 additions and 1 deletions
|
@ -419,12 +419,13 @@ int4 JumpBasic::getStride(Varnode *vn)
|
|||
|
||||
{
|
||||
uintb mask = vn->getNZMask();
|
||||
if ((mask & 0x3f)==0) // Limit the maximum stride we can return
|
||||
return 32;
|
||||
int4 stride = 1;
|
||||
while((mask&1)==0) {
|
||||
mask >>= 1;
|
||||
stride <<= 1;
|
||||
}
|
||||
if (stride > 32) return 1;
|
||||
return stride;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue