Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix temporary_cstring_as_ptr false negative #4425

Merged
merged 1 commit into from Aug 21, 2019
Merged

Fix temporary_cstring_as_ptr false negative #4425

merged 1 commit into from Aug 21, 2019

Conversation

ghost
Copy link

@ghost ghost commented Aug 21, 2019

Fixes #4375.

Changes the check to test when .unwrap().as_ptr() is called on any
Result<CString, _> as suggested by @flip1995
(#4375 (comment)).

changelog: Fix temporary_cstring_as_ptr false negative

Fixes #4375.

Changes the check to test when `.unwrap().as_ptr()` is called on any
`Result<CString, _>` as suggested by @flip1995
(#4375 (comment)).
@flip1995
Copy link
Member

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 21, 2019

📌 Commit 59893bc has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Aug 21, 2019

⌛ Testing commit 59893bc with merge 45d24fd...

bors added a commit that referenced this pull request Aug 21, 2019
Fix `temporary_cstring_as_ptr` false negative

Fixes #4375.

Changes the check to test when `.unwrap().as_ptr()` is called on any
`Result<CString, _>` as suggested by @flip1995
(#4375 (comment)).

changelog: Fix `temporary_cstring_as_ptr` false negative
@bors
Copy link
Collaborator

bors commented Aug 21, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing 45d24fd to master...

@bors bors merged commit 59893bc into rust-lang:master Aug 21, 2019
@ghost ghost deleted the 4375 branch August 31, 2019 05:21
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.

temporary_cstring_as_ptr doesn't catch UAF when Result is assigned to a variable
2 participants