Skip to content

Commit

Permalink
Merge pull request #175 from Syndica/dnut/fix/status-cache-slot-0
Browse files Browse the repository at this point in the history
fix(accountsdb): status cache integer overflow when slot = 0
  • Loading branch information
0xNineteen authored Jun 12, 2024
2 parents 488fb37 + 03b1bbc commit 94f2212
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/accountsdb/snapshots.zig
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ pub const StatusCache = struct {
return error.SlotNotFoundInStatusCache;
}
}
if (slot == 0) break;
slot -= 1;
}
}
Expand Down

0 comments on commit 94f2212

Please sign in to comment.