mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Prevent null pointer dereference here too
This commit is contained in:
parent
02ee7df743
commit
d0d6d0bfe8
@ -153,6 +153,7 @@ void cb_net_generic(void *task_data, void *user_data, const char *err)
|
|||||||
if (!core_buf)
|
if (!core_buf)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
|
if (!string_is_empty(data->data))
|
||||||
memcpy(core_buf, data->data, data->len * sizeof(char));
|
memcpy(core_buf, data->data, data->len * sizeof(char));
|
||||||
core_buf[data->len] = '\0';
|
core_buf[data->len] = '\0';
|
||||||
core_len = data->len;
|
core_len = data->len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user