mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
Merge pull request #11413 from jdgleaver/menu-explore-fix
Explore Menu: Fix heap buffer overflow on initialisation
This commit is contained in:
commit
35d7e0ccdf
@ -350,6 +350,8 @@ static int explore_check_company_suffix(const char* p, bool search_reverse)
|
||||
if (p[-1] != ' ')
|
||||
return 0;
|
||||
}
|
||||
if (p[0] == '\0' || p[1] == '\0' || p[2] == '\0')
|
||||
return 0;
|
||||
p0 = p[0];
|
||||
p1 = p[1];
|
||||
p2 = p[2];
|
||||
|
Loading…
Reference in New Issue
Block a user