diff options
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-arch-badalign | bin | 0 -> 56 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign | bin | 0 -> 56 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap | bin | 0 -> 104 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders | bin | 0 -> 104 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-arch-size | bin | 0 -> 56 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame | bin | 0 -> 104 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/macho-invalid-fat-header | bin | 0 -> 8 bytes | |||
| -rw-r--r-- | llvm/test/Object/macho-invalid.test | 21 |
8 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-badalign b/llvm/test/Object/Inputs/macho-invalid-fat-arch-badalign Binary files differnew file mode 100644 index 00000000000..da9f23ac49d --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-badalign diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign b/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign Binary files differnew file mode 100644 index 00000000000..6db7158fea6 --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap Binary files differnew file mode 100644 index 00000000000..556a3a7345c --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders Binary files differnew file mode 100644 index 00000000000..04d7867e60e --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-size b/llvm/test/Object/Inputs/macho-invalid-fat-arch-size Binary files differnew file mode 100644 index 00000000000..dfd154c88e3 --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-size diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame b/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame Binary files differnew file mode 100644 index 00000000000..437df762c66 --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-header b/llvm/test/Object/Inputs/macho-invalid-fat-header Binary files differnew file mode 100644 index 00000000000..007664df921 --- /dev/null +++ b/llvm/test/Object/Inputs/macho-invalid-fat-header diff --git a/llvm/test/Object/macho-invalid.test b/llvm/test/Object/macho-invalid.test index b193ebb8c41..6370228e598 100644 --- a/llvm/test/Object/macho-invalid.test +++ b/llvm/test/Object/macho-invalid.test @@ -484,3 +484,24 @@ INVALID-LAZY_BIND-OVERLAP: macho-invalid-lazy_bind-overlap': truncated or malfor RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-export-overlap 2>&1 | FileCheck -check-prefix INVALID-EXPORT-OVERLAP %s INVALID-EXPORT-OVERLAP: macho-invalid-export-overlap': truncated or malformed object (dyld export info at offset 200 with a size of 32, overlaps dyld lazy bind info at offset 176 with a size of 32) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-header 2>&1 | FileCheck -check-prefix INVALID-FAT-HEADER %s +INVALID-FAT-HEADER: macho-invalid-fat-header': truncated or malformed fat file (contains zero architecture types) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-arch-size 2>&1 | FileCheck -check-prefix INVALID-FAT-ARCH-SIZE %s +INVALID-FAT-ARCH-SIZE: macho-invalid-fat-arch-size': truncated or malformed fat file (offset plus size of cputype (7) cpusubtype (3) extends past the end of the file) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-arch-bigalign 2>&1 | FileCheck -check-prefix INVALID-FAT-ARCH-BIGALIGN %s +INVALID-FAT-ARCH-BIGALIGN: macho-invalid-fat-arch-bigalign': truncated or malformed fat file (align (2^212) too large for cputype (7) cpusubtype (3) (maximum 2^15)) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-arch-badalign 2>&1 | FileCheck -check-prefix INVALID-FAT-ARCH-BADALIGN %s +INVALID-FAT-ARCH-BADALIGN: macho-invalid-fat-arch-badalign': truncated or malformed fat file (offset: 28 for cputype (7) cpusubtype (3) not aligned on it's alignment (2^4)) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-arch-twosame 2>&1 | FileCheck -check-prefix INVALID-FAT-ARCH-TWOSAME %s +INVALID-FAT-ARCH-TWOSAME: macho-invalid-fat-arch-twosame': truncated or malformed fat file (contains two of the same architecture (cputype (7) cpusubtype (3))) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-arch-overlap 2>&1 | FileCheck -check-prefix INVALID-FAT-ARCH-OVERLAP %s +INVALID-FAT-ARCH-OVERLAP: macho-invalid-fat-arch-overlap': truncated or malformed fat file (cputype (7) cpusubtype (5) at offset 48 with a size of 28, overlaps cputype (7) cpusubtype (3) at offset 52 with a size of 28) + +RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat-arch-overlapheaders 2>&1 | FileCheck -check-prefix INVALID-FAT-ARCH-OVERLAPHEADERS %s +INVALID-FAT-ARCH-OVERLAPHEADERS: macho-invalid-fat-arch-overlapheaders': truncated or malformed fat file (cputype (7) cpusubtype (3) offset 12 overlaps universal headers) |

