(core_info) Prevent potential hash collisions when searching for cores

This commit is contained in:
jdgleaver 2021-04-28 17:52:15 +01:00
parent 40f6f7b803
commit 3bc2758d51

View File

@ -106,7 +106,8 @@ static core_info_t *core_info_find_internal(
{
core_info_t *info = &list->list[i];
if (info->core_file_id.hash == hash)
if ((info->core_file_id.hash == hash) &&
string_is_equal(info->core_file_id.str, core_file_id))
return info;
}