Skip to content

Conversation

@Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented May 2, 2025

Fixes: #912

Smaller version of #913 which attempts to update the entire swift demangler, but runs into other issues.

Removing the assert is fine, as upstream ended up removing it as well. This is the minimal fix to stop crashing on bad inputs. Eventually we'll want to update the swift sources.

Removed Upstream: https://github.com/swiftlang/swift/blob/ace5c20b12ef404ef4f169a5484c2ae8b981cfc3/lib/Demangling/Demangler.cpp#L3544-L3547

@Dav1dde Dav1dde force-pushed the dav1d/swift-crash branch from 3afc6c2 to 525c159 Compare May 2, 2025 07:06
@Dav1dde Dav1dde force-pushed the dav1d/swift-crash branch from 525c159 to f64d235 Compare May 2, 2025 07:08
@Dav1dde Dav1dde self-assigned this May 2, 2025
@Dav1dde Dav1dde requested a review from a team May 2, 2025 09:25
@Dav1dde Dav1dde merged commit 606ee1a into master May 2, 2025
15 checks passed
@Dav1dde Dav1dde deleted the dav1d/swift-crash branch May 2, 2025 09:54
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.

Utilising Swift demangler can cause hard-stop

3 participants