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

Fix memory corruption in C++ demangler #1222

Merged
merged 1 commit into from
May 10, 2024
Merged

Conversation

jart
Copy link
Contributor

@jart jart commented May 7, 2024

The __cxa_demangle_gnu3() and cpp_demangle_gnu3() functions segfault on various libcxxabi test cases due to a copy and paste error. This change fixes that.

@emaste
Copy link
Member

emaste commented May 7, 2024

See also libcxxrt/libcxxrt#34. It seems reasonable to bring in the small fix now and let more extensive changes (adding tests etc.) happen via the upstream projects.

The __cxa_demangle_gnu3() and cpp_demangle_gnu3() functions segfault on
various libcxxabi test cases due to a copy and paste error. This change
fixes that.

This is a subset of libcxxrt/libcxxrt#34 which
fixes the immediate problem.

Reviewed by: imp, emaste (I think)
Pull Request: freebsd#1222
@freebsd-git freebsd-git merged commit 12be6f1 into freebsd:main May 10, 2024
7 of 9 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
3 participants