]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix memory corruption in C++ demangler
authorJustine Tunney <jtunney@gmail.com>
Fri, 10 May 2024 01:55:45 +0000 (19:55 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 10 May 2024 01:55:52 +0000 (19:55 -0600)
commit12be6f12e87abc3e1edd3cc6cdc20334bdd63380
treee8ee8fb5f465d5bcec1e64d1b2277facfa8242b1
parentfbe965591f8a0a32c805a279a2505d4c20d22d26
Fix memory corruption in C++ demangler

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 https://github.com/libcxxrt/libcxxrt/pull/34 which
fixes the immediate problem.

Reviewed by: imp, emaste (I think)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1222
contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c
contrib/libcxxrt/libelftc_dem_gnu3.c