Skip to content

Prevent blatent unsafety with extra_mut - #4

Merged
carllerche merged 1 commit into
carllerche:masterfrom
emberian:master
May 27, 2015
Merged

Prevent blatent unsafety with extra_mut#4
carllerche merged 1 commit into
carllerche:masterfrom
emberian:master

Conversation

@emberian

Copy link
Copy Markdown
Contributor

This API allowed to easily alias multiple &mut [u8], which wreaks havoc on
alias analysis and causes llvm-level UB.

@emberian

Copy link
Copy Markdown
ContributorAuthor

(Pushing a new version to crates.io would be much appreciated, as the mutable_transmutes lint prevents this from building)

This API allowed to *easily* alias multiple `&mut [u8]`, which wreaks havoc on
alias analysis and causes llvm-level UB.
@carllerche

Copy link
Copy Markdown
Owner

Yeah, this is definitely a blunder on my part. I will try to get this merged asap. I'm currently traveling, so hopefully tonight!

@emberian

Copy link
Copy Markdown
ContributorAuthor

@carllerche bump

@carllerche

Copy link
Copy Markdown
Owner

There was no internet where I was. Going to try to catch up on things now.

@carllerche
carllerche merged commit cd0a323 into carllerche:masterMay 27, 2015
Sign up for freeto 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

@emberian@carllerche