forked from OSchip/llvm-project
21 lines
997 B
Plaintext
21 lines
997 B
Plaintext
// These test checks that llvm-objdump will not crash with malformed Archive
|
|
// files. So the check line is not all that important but the bug fixes to
|
|
// make sure llvm-objdump is robust is what matters.
|
|
# RUN: not llvm-objdump -macho -archive-headers \
|
|
# RUN: %p/Inputs/libbogus1.a \
|
|
# RUN: 2>&1 | FileCheck -check-prefix=bogus1 %s
|
|
|
|
# bogus1: libbogus1.a': truncated or malformed archive (characters in size field in archive header are not all decimal numbers: '10%')
|
|
|
|
# RUN: not llvm-objdump -macho -archive-headers \
|
|
# RUN: %p/Inputs/libbogus2.a \
|
|
# RUN: 2>&1 | FileCheck -check-prefix=bogus2 %s
|
|
|
|
# bogus2: libbogus2.a': truncated or malformed archive (characters in size field in archive header are not all decimal numbers: '1%')
|
|
|
|
# RUN: not llvm-objdump -macho -archive-headers \
|
|
# RUN: %p/Inputs/libbogus3.a \
|
|
# RUN: 2>&1 | FileCheck -check-prefix=bogus3 %s
|
|
|
|
# bogus3: libbogus3.a': truncated or malformed archive (offset to next archive member past the end of the archive)
|