Skip to content

pam: Use Box::from_raw - #563

Draft
A6GibKm wants to merge 1 commit into
linux-credentials:mainfrom
A6GibKm:box-from-raw
Draft

pam: Use Box::from_raw#563
A6GibKm wants to merge 1 commit into
linux-credentials:mainfrom
A6GibKm:box-from-raw

Conversation

@A6GibKm

@A6GibKm A6GibKm commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

The password comes from a Box::into_raw so we reconstruct the Box to avoid it from leaking. See
https://doc.rust-lang.org/std/boxed/struct.Box.html#method.into_raw.

@bilelmoussaoui

Copy link
Copy Markdown
Collaborator

This needs a rebase

The password comes from a Box::into_raw so we reconstruct the Box to
avoid it from leaking. See
https://doc.rust-lang.org/std/boxed/struct.Box.html#method.into_raw.
@A6GibKm

A6GibKm commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

Done.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

📊 Code Coverage Report

Metric Value
Current PR Coverage 83.44%
Main Branch Coverage 83.47%
Coverage Change 📉 -0.03%

Coverage report generated by cargo-tarpaulin

@bilelmoussaoui

Copy link
Copy Markdown
Collaborator

was this checked beyond compilation btw?

@A6GibKm

A6GibKm commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

I forgot to mention that I did not check it. Will do during the weekend.

@A6GibKm

A6GibKm commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

Good thing that you asked, the cleanup_password might actually be taking care of that.

@A6GibKm
A6GibKm marked this pull request as draft September 1, 2026 20:58
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.

2 participants