tccpe: pstrcpy() will truncate .stabstr section name, use strncpy() instead.
This commit is contained in:
parent
d0c4138ac2
commit
807dc7c8de
1 changed files with 1 additions and 1 deletions
2
tccpe.c
2
tccpe.c
|
@ -663,7 +663,7 @@ static int pe_write(struct pe_info *pe)
|
|||
}
|
||||
}
|
||||
|
||||
pstrcpy((char*)psh->Name, sizeof psh->Name, sh_name);
|
||||
strncpy((char*)psh->Name, sh_name, sizeof psh->Name);
|
||||
|
||||
psh->Characteristics = pe_sec_flags[si->cls];
|
||||
psh->VirtualAddress = addr;
|
||||
|
|
Loading…
Reference in a new issue