2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

Corrected a potential access violation in Boost Jam introduced in revision [79281] by incorrectly comparing new strings with already existing ones in the OBJECT hash table.

[SVN r79291]
This commit is contained in:
Jurko Gospodnetić
2012-07-05 18:40:38 +00:00
parent ac58313c4b
commit e034b6440b

View File

@@ -202,7 +202,7 @@ static char const * string_set_insert( string_set * set, char const * string,
struct hash_item * result;
for ( result = set->data[ pos ]; result; result = result->header.next )
if ( !result->data[ size ] && !memcmp( result->data, string, size ) )
if ( !strncmp( result->data, string, size ) && !result->data[ size ] )
return result->data;
if ( set->size >= set->num )