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 unaligned load in librustc_metadata::index. #39683

Merged
merged 1 commit into from
Feb 10, 2017
Merged

Fix unaligned load in librustc_metadata::index. #39683

merged 1 commit into from
Feb 10, 2017

Conversation

solson
Copy link
Member

@solson solson commented Feb 9, 2017

The derived Clone impl contains UB and will be unsafe when we fix #27060. See this comment for more context.

r? @bluss

@bluss
Copy link
Member

bluss commented Feb 9, 2017

Good catch (the clone code path was unused but must be fixed of course).

@bors r+

@bors
Copy link
Contributor

bors commented Feb 9, 2017

📌 Commit 5eaa7c2 has been approved by bluss

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Feb 9, 2017
…metadata, r=bluss

Fix unaligned load in librustc_metadata::index.

The derived `Clone` impl contains UB and will be unsafe when we fix rust-lang#27060. See [this comment](rust-lang#27060 (comment)) for more context.

r? @bluss
bors added a commit that referenced this pull request Feb 9, 2017
Rollup of 6 pull requests

- Successful merges: #39604, #39619, #39670, #39678, #39682, #39683
- Failed merges:
@bors bors merged commit 5eaa7c2 into rust-lang:master Feb 10, 2017
@solson solson deleted the fix-unaligned-load-librustc_metadata branch February 10, 2017 00:45
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.

repr(packed) allows invalid unaligned loads
3 participants