Skip to content

[CS] Fix invalid key path crasher #30832

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
Apr 6, 2020

Conversation

hamishknight
Copy link
Contributor

Previously we were bailing early on encountering an optional chain in the key path. However this could cause us to miss invalid components further down the line. Instead, set a flag and force the key path to be read-only if we encountered an optional chain.

Resolves SR-12519.

Previously we were bailing early on encountering
an optional chain in the key path. However this
could cause us to miss invalid components further
down the line. Instead, set a flag and force the
key path to be read-only if we encountered an
optional chain.

Resolves SR-12519.
@hamishknight hamishknight requested a review from xedin April 6, 2020 17:18
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit d6a6df2 into swiftlang:master Apr 6, 2020
@hamishknight hamishknight deleted the off-the-chain branch April 6, 2020 19: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.

2 participants