solana-with-rpc-optimizations/ledger
behzad nouri 5dbf7d8f91
removes raw indexing into packet data (#25554)
Packets are at the boundary of the system where, vast majority of the
time, they are received from an untrusted source. Raw indexing into the
data buffer can open attack vectors if the offsets are invalid.
Validating offsets beforehand is verbose and error prone.

The commit updates Packet::data() api to take a SliceIndex and always to
return an Option. The call-sites are so forced to explicitly handle the
case where the offsets are invalid.
2022-06-03 01:05:06 +00:00
..
benches adds support for different variants of ShredCode and ShredData 2022-06-02 18:55:50 +00:00
src removes raw indexing into packet data (#25554) 2022-06-03 01:05:06 +00:00
tests adds support for different variants of ShredCode and ShredData 2022-06-02 18:55:50 +00:00
.gitignore
Cargo.toml chore: bump lru from 0.7.5 to 0.7.6 (#25572) 2022-05-26 19:05:02 +00:00
build.rs adds crds-value for broadcasting duplicate shreds through gossip (#14133) 2020-12-18 14:32:43 +00:00