[llvm-bugs] [Bug 34949] New: Misscalculated PE header value
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 14 10:44:52 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34949
Bug ID: 34949
Summary: Misscalculated PE header value
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: ege.balci at invictuseurope.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19275
--> https://bugs.llvm.org/attachment.cgi?id=19275&action=edit
Miscalculated SizeOfImage value
Recently putty project (http://www.putty.org/) switched to building with clang
and lld instead of Microsoft's toolchain. Their latest released PE 32 bit
binary (https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe) seems to has
faulty SizeOfImage value on the PE header, if you check the actual size of the
PE image just after mapping it on the memory it does not add up to the header
value. This bug causes packers like UPX to crash while trying to parse the PE
file. I sent a email to the putty team and they sad it should be about the lld
linker.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171014/b8d2d27d/attachment.html>
More information about the llvm-bugs
mailing list