Skip to content

rustc: Don't panic on corrupt metadata #19799

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
Dec 17, 2014

Conversation

alexcrichton
Copy link
Member

Fix a panic where the compiler was looking at stale or old metadata.

See #19798, #19772, #19757, #19744, #19718, #19691.

@sfackler
Copy link
Member

Isn't this just going to cause ICEs downstream when you try to read things out of the metadata?

@alexcrichton
Copy link
Member Author

Hm, how so? This is intended to just reject all old libraries immediately instead of attempting to read their metadata.

@sfackler
Copy link
Member

Oh, is there a check later that handles the empty slice case? SGTM then

bors added a commit that referenced this pull request Dec 14, 2014
rustc: Don't panic on corrupt metadata

Reviewed-by: huonw
brson added a commit to brson/rust that referenced this pull request Dec 16, 2014
bors added a commit that referenced this pull request Dec 17, 2014
Fix a panic where the compiler was looking at stale or old metadata.

See #19798, #19772, #19757, #19744, #19718, #19691.
@alexcrichton alexcrichton merged commit 9a47d65 into rust-lang:master Dec 17, 2014
@alexcrichton
Copy link
Member Author

This PR passed on all builders, but the windows bots are taking far too long to complete tests and buildbot needs a restart to hopefully remedy this. This PR had a few more platforms left, so I went ahead and merged it so I can go ahead and restart buildbot.

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.

5 participants