mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Fixed a Boost Jam debug assertion bug encountered when creating string objects with embedded '\0' characters as done for example by the SPLIT_BY_CHARACTERS builtin rule implementation.
[SVN r79039]
This commit is contained in:
@@ -27,7 +27,11 @@ static void assert_invariants( string * self )
|
||||
|
||||
assert( self->size < self->capacity );
|
||||
assert( ( self->capacity <= sizeof( self->opt ) ) == ( self->value == self->opt ) );
|
||||
assert( strlen( self->value ) == self->size );
|
||||
assert( self->value[ self->size ] == 0 );
|
||||
/* String objects modified manually after construction to contain embedded
|
||||
* '\0' characters are considered structurally valid.
|
||||
*/
|
||||
assert( strlen( self->value ) <= self->size );
|
||||
|
||||
for ( i = 0; i < 4; ++i )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user