Skip to content

array drop glue: avoid using out-of-bounds index lvalues #42369

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

Merged
merged 1 commit into from
Jun 3, 2017

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Jun 1, 2017

Avoid using out-of-bounds index lvalues. Miri doesn't like them, and they seem fishy in general.
Instead, use a pointer cast to compute the address of the beginning, and Offset to compute the end.

Cc @arielb1 @nagisa

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb
Copy link
Member

eddyb commented Jun 2, 2017

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 2, 2017

📌 Commit 763ef81 has been approved by eddyb

@shepmaster shepmaster added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jun 2, 2017
@bors
Copy link
Collaborator

bors commented Jun 3, 2017

⌛ Testing commit 763ef81 with merge 0453cf5...

bors added a commit that referenced this pull request Jun 3, 2017
array drop glue: avoid using out-of-bounds index lvalues

Avoid using out-of-bounds index lvalues. Miri doesn't like them, and they seem fishy in general.
Instead, use a pointer cast to compute the address of the beginning, and Offset to compute the end.

Cc @arielb1 @nagisa
@bors
Copy link
Collaborator

bors commented Jun 3, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing 0453cf5 to master...

@bors bors merged commit 763ef81 into rust-lang:master Jun 3, 2017
@RalfJung RalfJung deleted the drop-glue branch July 15, 2017 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants