Skip to content

Fix unaligned load in librustc_metadata::index. - #39683

Merged
bors merged 1 commit into
rust-lang:masterfrom
solson:fix-unaligned-load-librustc_metadata
Feb 10, 2017
Merged

Fix unaligned load in librustc_metadata::index.#39683
bors merged 1 commit into
rust-lang:masterfrom
solson:fix-unaligned-load-librustc_metadata

Conversation

@solson

@solsonsolson commented Feb 9, 2017

Copy link
Copy Markdown
Contributor

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

r? @bluss

@bluss

bluss commented Feb 9, 2017

Copy link
Copy Markdown
Contributor

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

@bors r+

@bors

bors commented Feb 9, 2017

Copy link
Copy Markdown
Collaborator

📌 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 fixrust-lang#27060. See [this comment](rust-lang#27060 (comment)) for more context.
r? @bluss
@frewsxcvfrewsxcv mentioned this pull request Feb 9, 2017
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:masterFeb 10, 2017
@solson
solson deleted the fix-unaligned-load-librustc_metadata branch February 10, 2017 00:45
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.

repr(packed) allows invalid unaligned loads

3 participants

@solson@bluss@bors