solana/perf/src
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
..
cuda_runtime.rs Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
data_budget.rs Don't forward packets received from TPU forwards port (#22078) 2021-12-29 19:34:31 +01:00
discard.rs Make PacketBatch packets vector non-public (#25413) 2022-05-23 15:30:15 -05:00
lib.rs sigverify: add discard before dedup (#25388) 2022-05-23 03:40:33 +02:00
packet.rs Add Packet::deserialize_slice convenience method 2022-05-24 17:31:14 +08:00
perf_libs.rs Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
recycler.rs fix recycler free stat report (#23159) 2022-03-03 17:08:59 -06:00
recycler_cache.rs Reformat imports to a consistent style for imports 2021-12-03 09:19:13 -08:00
sigverify.rs removes raw indexing into packet data (#25554) 2022-06-03 01:05:06 +00:00
test_tx.rs discards serialized gossip crds votes if cannot parse tx (#22129) 2021-12-29 19:31:26 +00:00
thread.rs Upgrade to Rust 2021 2021-11-30 20:43:46 -08:00