mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-15 11:51:37 +00:00
Assert when trying to adjust _start in "needs delete" mode.
This commit is contained in:
parent
0b26702ac9
commit
67a5bb0ac1
@ -150,6 +150,8 @@ char* StrPair::ParseName( char* p )
|
|||||||
|
|
||||||
void StrPair::CollapseWhitespace()
|
void StrPair::CollapseWhitespace()
|
||||||
{
|
{
|
||||||
|
// Adjusting _start would cause undefined behavior on delete[]
|
||||||
|
TIXMLASSERT( ( _flags & NEEDS_DELETE ) == 0 );
|
||||||
// Trim leading space.
|
// Trim leading space.
|
||||||
_start = XMLUtil::SkipWhiteSpace( _start );
|
_start = XMLUtil::SkipWhiteSpace( _start );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user