cloudflare / cloudflare/quiche

`Instant` to `timespec` conversion is UB

Open
#1,376 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.