mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
patch for stride overflow
This commit is contained in:
parent
04f7366a62
commit
10bcb661c2
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