Skip to content

[6.2] swift-demangle: fix a crash for invalid input #80704

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 10, 2025

Conversation

eeckstein
Copy link
Contributor

  • Explanation: When fed with invalid input, the swift-demangle tool crashed. This change adds some bounds checks in the node printer to fix it.
  • Risk: Low. It only affects the swift-demangle tool.
  • Testing: Tested by a lit test.
  • Issue: rdar://148754959
  • Reviewer: @al45tair
  • Main branch PR: swift-demangle: fix a crash for invalid input #80666

When fed with invalid input, the swift-demangle tool crashed.

rdar://148754959
@eeckstein eeckstein requested a review from a team as a code owner April 10, 2025 04:41
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 5730559 into swiftlang:release/6.2 Apr 10, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-demangler-6.2 branch April 10, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants