mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Merge pull request #12334 from jdgleaver/core-info-hash-collision
(core_info) Prevent potential hash collisions when searching for cores
This commit is contained in:
commit
b2faff6bf9
@ -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…
x
Reference in New Issue
Block a user