Skip to content

Commit

Permalink
fix(accountsdb): integer overflow when slot = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dnut committed Jun 12, 2024
1 parent 10082ad commit 03b1bbc
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 03b1bbc

Please sign in to comment.