Fix buffer overwrite in bootstrap config

This commit is contained in:
jfreegman 2022-01-17 17:56:47 -05:00
parent fdadcb0a90
commit fc18810ba8
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8802a0afed0bcd3acaafebe22faf1f758935e3914d52472fc3e0c74e055fbc38 /usr/local/bin/tox-bootstrapd
edd2f14612df27c7211c2b0c87e714341c4cf4ada868741b2e7f73e1539f30e7 /usr/local/bin/tox-bootstrapd

View File

@ -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