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

Add advisory for rust-lang/rust#78498 #561

Closed
wants to merge 2 commits into from

Conversation

Qwaz
Copy link
Contributor

@Qwaz Qwaz commented Jan 13, 2021

Advisory for:
String::retain allows safely creating invalid (non-utf8) strings when abusing panic (rust-lang/rust#78498)

@Qwaz
Copy link
Contributor Author

Qwaz commented Jan 13, 2021

It seems that the linter doesn't understand alloc::string::String::retain. Should I just put std::string::String::retain?

@tarcieri
Copy link
Member

Yes. Right now the linter requires the path begins with the same crate as the advisory is filed against.

Alternatively you could file it against alloc

@Qwaz
Copy link
Contributor Author

Qwaz commented Jan 13, 2021

Updated the PR to use std, considering that alloc became stable in Rust 1.36.0.

@Qwaz Qwaz closed this Feb 3, 2021
@Qwaz Qwaz deleted the std-string-retain branch February 3, 2021 16:15
@Qwaz
Copy link
Contributor Author

Qwaz commented Feb 3, 2021

I'll reopen the PR when we have CVEs

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.

3 participants