Skip to content

[4.0] RangeInfo: Add several defensive null pointer checks. rdar://32047178 #11732

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
Sep 5, 2017
Merged

[4.0] RangeInfo: Add several defensive null pointer checks. rdar://32047178 #11732

merged 1 commit into from
Sep 5, 2017

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Sep 1, 2017

Explanation: This patch adds several null pointer checks in the range info resolver to ensure available refactoring requests don't crash sourcekitd service.
Radar: rdar://problem/32047178
Risk: Very Low; just add several defensive null pointer checks.
Testing: The original reproducing test case is long and hard to reduce. Since the patch only adds null pointer checks, existing tests cover all of the unchanged behaviors.

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Sep 1, 2017

@swift-ci please test

@tkremenek tkremenek merged commit 0ba2267 into swiftlang:swift-4.0-branch Sep 5, 2017
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