History

tccpe: pstrcpy() will truncate .stabstr section name, use strncpy() instead.

Roy committed 13 years ago

Commit 807dc7c1 parent d0c41381 file · +1 −1Browse files

Unified · Split

tccpe.c+1−1
@@ -663,7 +663,7 @@ static int pe_write(struct pe_info *pe) · 662 unmodified lines
663 }663 }
664 }664 }
665 665
666 pstrcpy((char*)psh->Name, sizeof psh->Name, sh_name);666 strncpy((char*)psh->Name, sh_name, sizeof psh->Name);
667 667
668 psh->Characteristics = pe_sec_flags[si->cls];668 psh->Characteristics = pe_sec_flags[si->cls];
669 psh->VirtualAddress = addr;669 psh->VirtualAddress = addr;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t