Skip to content

Conversation

@Pingasmaster
Copy link
Contributor

Fix the problem by throwing an error if the number is negative or unexpected, added a test too. This is a suggestion only.

Thread: #1311

Fix the problem by throwing an error if the number is negative or unexpected, added a test too.
@squell squell linked an issue Nov 5, 2025 that may be closed by this pull request
@squell squell added C-pam PAM library chore Improvements that don't alter behaviour. freeze Temporarily blocked from merging pending a release labels Nov 5, 2025
@bjorn3 bjorn3 removed the freeze Temporarily blocked from merging pending a release label Nov 10, 2025
}

#[test]
fn conversation_rejects_negative_message_count() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this test is prefix with miri_, it will also be run in the Miri test (I think that is possible and useful here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-pam PAM library chore Improvements that don't alter behaviour.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Malicious or misconfigured PAM module can DOS sudo-rs via num_msg=-1

3 participants