Bugzilla – Attachment 64731 Details for
Bug 52539
: TypeInfoHelper::getClassName() may crash if cppunit is compiled with older compiler
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
TypeInfoHelper.patch (text/plain), 550 bytes, created by
Andriy Gapon
on 2012-07-26 13:08:36 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2012-07-26 13:08:36 UTC
Size:
550 bytes
patch
obsolete
>--- src/cppunit/TypeInfoHelper.cpp.orig 2012-07-25 16:51:42.684996802 +0300 >+++ src/cppunit/TypeInfoHelper.cpp 2012-07-25 16:59:06.149667846 +0300 >@@ -21,7 +22,10 @@ TypeInfoHelper::getClassName( const std: > int status = 0; > char* c_name = 0; > >- c_name = abi::__cxa_demangle( info.name(), 0, 0, &status ); >+ const char* m_name = info.name(); >+ if (m_name[0] == '*') // inlined std::type_info::name() of older GXX >+ m_name++; >+ c_name = abi::__cxa_demangle( m_name, 0, 0, &status ); > > std::string name( c_name ); > free( c_name );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 52539
: 64731