mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
(Network/Relay Server Location) RetroArch crashed when pressing
left while Relay Server Location entry was selected - index offset would set itself to -1 and cause a buffer overflow
This commit is contained in:
parent
43000d2e24
commit
7173efe10f
@ -4615,6 +4615,7 @@ static int setting_string_action_left_netplay_mitm_server(
|
|||||||
if (!found)
|
if (!found)
|
||||||
offset = list_len - 1;
|
offset = list_len - 1;
|
||||||
|
|
||||||
|
if (offset >= 0)
|
||||||
strlcpy(setting->value.target.string,
|
strlcpy(setting->value.target.string,
|
||||||
netplay_mitm_server_list[offset].name, setting->size);
|
netplay_mitm_server_list[offset].name, setting->size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user