[Bug 208661] __cxa_demangle incorrectly demangles wchar_t
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Apr 9 19:44:23 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208661
Bug ID: 208661
Summary: __cxa_demangle incorrectly demangles wchar_t
Product: Base System
Version: 10.3-BETA2
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dwmcrobb at me.com
We wind up with 'wchar_' due to an incorrect string length in
libelftc_dem_gnu3.c.
This is an upstream bug.
Patch:
Index: libelftc_dem_gnu3.c
===================================================================
--- libelftc_dem_gnu3.c (revision 296556)
+++ libelftc_dem_gnu3.c (working copy)
@@ -2842,7 +2842,7 @@
case 'w':
/* wchar_t */
- if (!cpp_demangle_push_str(ddata, "wchar_t", 6))
+ if (!cpp_demangle_push_str(ddata, "wchar_t", 7))
goto clean;
++ddata->cur;
goto rtn;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list