mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix buffer overwrite in bootstrap config
This commit is contained in:
parent
fdadcb0a90
commit
fc18810ba8
|
@ -1 +1 @@
|
|||
8802a0afed0bcd3acaafebe22faf1f758935e3914d52472fc3e0c74e055fbc38 /usr/local/bin/tox-bootstrapd
|
||||
edd2f14612df27c7211c2b0c87e714341c4cf4ada868741b2e7f73e1539f30e7 /usr/local/bin/tox-bootstrapd
|
||||
|
|
|
@ -182,7 +182,7 @@ int get_general_config(const char *cfg_file_path, char **pid_file_path, char **k
|
|||
}
|
||||
|
||||
const size_t keys_file_path_len = strlen(tmp_keys_file) + 1;
|
||||
*keys_file_path = (char *)malloc(strlen(tmp_keys_file));
|
||||
*keys_file_path = (char *)malloc(keys_file_path_len);
|
||||
memcpy(*keys_file_path, tmp_keys_file, keys_file_path_len);
|
||||
|
||||
// Get IPv6 option
|
||||
|
|
Loading…
Reference in New Issue
Block a user