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 UB in repr(packed) tests #40373

Merged
merged 1 commit into from
Mar 12, 2017
Merged

Fix UB in repr(packed) tests #40373

merged 1 commit into from
Mar 12, 2017

Conversation

TimNN
Copy link
Contributor

@TimNN TimNN commented Mar 8, 2017

r? @arielb1

cc #37609 and #27060

@TimNN
Copy link
Contributor Author

TimNN commented Mar 8, 2017

Actually, this is still no UB free I think -- as far as I can tell the initialisation of the fixed size array containing a packed struct does generate aligned loads, which is probably a bug in rustc?

@arielb1
Copy link
Contributor

arielb1 commented Mar 8, 2017

Yup there's a bug in loading/storing fields of pairs. I'll fix that tomorrow.

@nrc
Copy link
Member

nrc commented Mar 9, 2017

r? @arielb1

@arielb1
Copy link
Contributor

arielb1 commented Mar 9, 2017

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 9, 2017

📌 Commit 79a7ee8 has been approved by arielb1

arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 9, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 9, 2017
emit !align attributes on stores of operand pairs

This avoids another case of missing-align UB. cc rust-lang#40373

r? @eddyb
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 10, 2017
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 10, 2017
emit !align attributes on stores of operand pairs

This avoids another case of missing-align UB. cc rust-lang#40373

r? @eddyb
alexcrichton pushed a commit to arielb1/rust that referenced this pull request Mar 10, 2017
alexcrichton pushed a commit to arielb1/rust that referenced this pull request Mar 10, 2017
emit !align attributes on stores of operand pairs

This avoids another case of missing-align UB. cc rust-lang#40373

r? @eddyb
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 10, 2017
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 11, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 11, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 11, 2017
emit !align attributes on stores of operand pairs

This avoids another case of missing-align UB. cc rust-lang#40373

r? @eddyb
bors added a commit that referenced this pull request Mar 11, 2017
Rollup of 13 pull requests

- Successful merges: #40146, #40299, #40315, #40319, #40344, #40345, #40367, #40372, #40373, #40385, #40400, #40404, #40431
- Failed merges:
arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 11, 2017
bors added a commit that referenced this pull request Mar 12, 2017
Rollup of 12 pull requests

- Successful merges: #40146, #40299, #40315, #40319, #40344, #40345, #40372, #40373, #40400, #40404, #40419, #40431
- Failed merges:
@bors bors merged commit 79a7ee8 into rust-lang:master Mar 12, 2017
arielb1 added a commit to arielb1/rust that referenced this pull request Mar 13, 2017
bors added a commit that referenced this pull request Mar 13, 2017
emit !align attributes on stores of operand pairs

This avoids another case of missing-align UB. cc #40373

r? @eddyb
@shepmaster shepmaster mentioned this pull request Mar 14, 2017
23 tasks
@TimNN TimNN deleted the test-ub-packed branch April 7, 2017 20:14
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.

4 participants