solana/accounts-db
Yueh-Hsuan Chiang 09efd704eb
[TieredStorage] boundary check for get_account_address() (#34529)
#### Problem
get_account_address() does not check whether IndexOffset is 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
New unit-test is added.
2023-12-20 10:44:34 -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_address() (#34529) 2023-12-20 10:44:34 -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