Skip to content

tls: avoid mem::forget for borrowed handshakes#2489

Merged
antoniovicente merged 1 commit into
masterfrom
mem-forget
May 20, 2026
Merged

tls: avoid mem::forget for borrowed handshakes#2489
antoniovicente merged 1 commit into
masterfrom
mem-forget

Conversation

@ghedo
Copy link
Copy Markdown
Member

@ghedo ghedo commented May 19, 2026

Represent temporary Handshake views over existing SSL pointers with ManuallyDrop. This keeps the ownership boundary explicit and avoids relying on mem::forget after use.

Also removes one instance from tokio-quiche to allow denying mem::forget at workspace level.

@ghedo ghedo requested a review from a team as a code owner May 19, 2026 08:38
Base automatically changed from lints-workspace to master May 19, 2026 08:39
Represent temporary Handshake views over existing SSL pointers with
ManuallyDrop. This keeps the ownership boundary explicit and avoids
relying on mem::forget after use.

Also removes one instance from tokio-quiche to allow denying mem::forget
at workspace level.
@antoniovicente antoniovicente merged commit 2ff003f into master May 20, 2026
38 checks passed
@antoniovicente antoniovicente deleted the mem-forget branch May 20, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants