solana-with-rpc-optimizations/streamer
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
..
src removes raw indexing into packet data (#25554) 2022-06-03 01:05:06 +00:00
tests Give some tolerance to recv_mmsg test (#25299) 2022-05-19 18:54:39 +02:00
Cargo.toml chore: bump quinn from 0.8.2 to 0.8.3 (#25542) 2022-05-25 20:44:45 -06:00