mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-12 12:39:56 +00:00
rarch_game_specific_options - check NULL pointer derefences
This commit is contained in:
parent
ca3ea65332
commit
c2d85238c2
@ -610,9 +610,11 @@ static bool rarch_game_specific_options(char **output)
|
||||
char game_path[PATH_MAX_LENGTH] = {0};
|
||||
char config_directory[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
core_name = system->info.library_name;
|
||||
game_name = path_basename(global->name.base);
|
||||
core_name = system ? system->info.library_name : NULL;
|
||||
game_name = global ? path_basename(global->name.base) : NULL;
|
||||
|
||||
if (!core_name || !game_name)
|
||||
return false;
|
||||
if (core_name[0] == '\0' || game_name == '\0')
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user