Skip to content
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

cpp demangling check for demangling error #9756

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

chobermaier
Copy link
Contributor

@chobermaier chobermaier commented Dec 6, 2024

The use of cpp_demangle in crates/environ/src/demangling.rs missed a check if demangling would actually succeed.

This PR's wraps the use of cpp_demangle with an explicitly call of demangle and can therefore check its Result.
The current implicit demangle call did not check this result. In some cases this lead to failed unwrapping in instantiate.rs.

Closes #9753

@chobermaier chobermaier requested a review from a team as a code owner December 6, 2024 18:40
@chobermaier chobermaier requested review from alexcrichton and removed request for a team December 6, 2024 18:40
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@alexcrichton alexcrichton added this pull request to the merge queue Dec 6, 2024
Merged via the queue into bytecodealliance:main with commit ad48f94 Dec 6, 2024
42 checks passed
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.

use of cpp_demangle misses check if demangling will actually succeed
2 participants