37 lines · plain
1## Test that parsing of an invalid XCOFF traceback table with a too2## big function name length causes an out of range error.3 4# RUN: yaml2obj %s -o %t.o5# RUN: llvm-objdump -d --traceback-table --symbol-description %t.o 2>&1 | \6# RUN: FileCheck -DFILE=%t.o --implicit-check-not="warning:" --check-prefixes=WARN %s7 8--- !XCOFF9FileHeader:10 MagicNumber: 0x1DF11Sections:12 - Name: .text13 Flags: [ STYP_TEXT ]14 SectionData: "4e8000200000000000002240800102075a000000000000880073666f6f0000000000000000000000"15Symbols:16 - Name: .AddNum17 Value: 018 Section: .text19 Type: 0x2020 StorageClass: C_EXT21 AuxEntries:22 - Type: AUX_CSECT23 SectionOrLength: 0x2824 SymbolAlignmentAndType: 0x2125 StorageMappingClass: XMC_PR26 27# WARN: warning: '[[FILE]]': failure parsing traceback table with address: 0x428# WARN-NEXT: >>> unexpected end of data at offset 0x24 while reading [0x12, 0x85)29# WARN-NEXT: >>> Raw traceback table data is:30# WARN-NEXT: 8: 00 00 22 4031# WARN-NEXT: c: 80 01 02 0732# WARN-NEXT: 10: 5a 00 00 0033# WARN-NEXT: 14: 00 00 00 8834# WARN-NEXT: 18: 00 73 66 6f35# WARN-NEXT: 1c: 6f 00 00 0036# WARN-NEXT: ...37