Closed
Description
Context: hyper
passes uninitialized array of httparse::Header
to Request::new
.
This is undefined behavior and I discovered it while working on Replacing mem::uninitialized
with MaybeUninit
I acknowledge that changing headers
field will be a breaking change, because it is public, so
is there a chance that a Request
type copy could be implemented, but with headers: &mut [MaybeUninit<Header>]
?
EDIT: I just realized that author of httparse
is also author of hyper
😅
Metadata
Metadata
Assignees
Labels
No labels