mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
(core_info) Prevent potential hash collisions when searching for cores
This commit is contained in:
parent
40f6f7b803
commit
3bc2758d51
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user