mirror of
https://github.com/frida/tinycc
synced 2025-01-12 14:49:18 +03:00
tccpe: pstrcpy() will truncate .stabstr section name, use strncpy() instead.
This commit is contained in:
parent
d0c4138ac2
commit
807dc7c8de
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->Characteristics = pe_sec_flags[si->cls];
|
||||||
psh->VirtualAddress = addr;
|
psh->VirtualAddress = addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user