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: unassignedb...@nondot.org
          Reporter: ege.ba...@invictuseurope.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to