QUIC endpoint may panic when receiving an empty UDP packet
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- networking
Research direction
Start with compio-quic/src/endpoint.rs at the panic on line 65, then reproduce the issue using compio-quic/examples/quic-server.rs and the empty-packet client shown in the report. Done means receiving an empty UDP packet no longer panics the QUIC server.
Written by the indexing model from the issue text.
Description
A client like this may cause the server to panic:
#[compio_macros::main]
async fn main() {
let socket = compio_net::UdpSocket::bind("[::1]:0").await.unwrap();
socket.send_to([], "[::1]:4433").await.unwrap();
}
Running compio-quic/examples/quic-server.rs:
thread 'main' (3777462) panicked at compio-quic/src/endpoint.rs:65:14:
chunk size must be non-zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
- Dominant language
- Rust
- Stars
- 1.9k
- Forks
- 135
- Avg merge
- 18h 2m
- Merged PRs (30d)
- 28
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from compio-rs/compio
-
bug good first issue package: quic
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
breaking change bug package: io
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
bug driver: iocp package: net package: quic
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
driver: io-uring enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in compio-rs/compio
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
nautechsystems/nautilus_trader#5095 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stellar/rs-soroban-env#1739 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100