https://bugs.llvm.org/show_bug.cgi?id=42122
Bug ID: 42122
Summary: Emit error and don't crash if program header reaches
past end of file
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-objcopy/strip
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected],
[email protected],
[email protected], [email protected]
If you attempt to run llvm-objcopy on the object file produced by yaml2obj for
the below YAML, it crashes, when it should really just emit an error saying
that the program header is malformed.
Example yaml2obj input:
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Machine: EM_X86_64
Sections:
- Name: .foo
Type: SHT_PROGBITS
Size: 1
AddressAlign: 0x1000
ProgramHeaders:
- Type: PT_LOAD
FileSize: 0x100000
Sections:
- Section: .foo
C:\Work\TempWork> C:\llvm\build\Debug\bin\llvm-objcopy test.o test2.o
Stack dump:
<snip>
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs