cloudflare / cloudflare/quiche
`Instant` to `timespec` conversion is UB
Open
- Dominant language
- Rust
- Stars
- 11.8k
- Forks
- 1.1k
- Avg merge
- 21h 9m
- Merged PRs (30d)
- 6
Description
https://github.com/cloudflare/quiche/blob/59541aa779808d5b6020a218eedcdc65e81ad5a2/quiche/src/ffi.rs#L1470-L1475
The underlying type of `Instant` cannot be assumed to be the same as the `timespec` C type; the standard library might change this. The same happened to `SocketAddr` in the past.
Contributor guide
Assessment
This issue has not been assessed yet.