Fix buffer overrun on pdb file read ##bin

This commit is contained in:
eazy-f 2019-01-24 22:22:28 +00:00 committed by radare
parent 6b3535ca36
commit ea833632f1

View File

@ -146,7 +146,7 @@ int copy_string(STypeCodeStr *type_code_str, char *str_for_copy, unsigned int co
}
if (str_for_copy) {
strcpy (dst, str_for_copy);
r_str_ncpy (dst, str_for_copy, str_for_copy_len + 1);
} else {
memset (dst, 0, str_for_copy_len);
}