mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 19:01:31 +00:00
Fix buffer overrun on pdb file read ##bin
This commit is contained in:
parent
6b3535ca36
commit
ea833632f1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user