Skip to content

[5.10] Use StringMap in EditorDiagConsumer #68576

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

Conversation

hamishknight
Copy link
Contributor

5.10 cherry-pick of #68550

  • Explanation: Fixes a use-after-free in SourceKit diagnostic logic
  • Scope: Affects SourceKit diagnostics
  • Issue: rdar://111589090
  • Risk: Low, the fix is small and straightforward
  • Testing: Passes the test suite
  • Reviewer: Ben Barham

As noted by the comment, storing a `StringRef` is
indeed brittle. Update to use a StringMap.

rdar://111589090
Switch to storing the necessary edit information
instead.
@hamishknight hamishknight requested a review from a team as a code owner September 18, 2023 09:49
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 451b5fd into swiftlang:release/5.10 Sep 18, 2023
@hamishknight hamishknight deleted the pillar-of-garbage-5.10 branch September 18, 2023 16:39
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