solana/accounts-db
Yueh-Hsuan Chiang a583035812
[TieredStorage] Boundary check for get_account_offset() (#34531)
#### Problem
TieredStorage doesn't perform boundary check in get_account_offset
when the input IndexOffset isn't valid.

#### Summary of Changes
This PR adds two checks.  First, it checks whether the IndexOffset exceeds
the boundary of the index block.  Second, when an index format that has the
same index entries as account entries is used, it also checks whether IndexOffset
is smaller than account_entry_count.

#### Test Plan
Two new tests are added to this PR.
2023-12-21 12:52:15 -08:00
..
benches remove IncludeSlotInHash after feature activation on mnb (#33816) 2023-10-23 15:12:02 -07:00
src [TieredStorage] Boundary check for get_account_offset() (#34531) 2023-12-21 12:52:15 -08:00
store-tool Uses AccountHash in StorableAccountsWithHashesAndWriteVersions (#33751) 2023-10-18 18:58:19 -04:00
Cargo.toml Adds `iter_ones()` to RollingBitField (#33956) 2023-11-06 14:06:43 -05:00
build.rs Crates have identical build.rs to frozen-abi can just be symlink (#33787) 2023-10-21 13:33:10 -05:00