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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user