summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/Inputs
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-11-28 22:40:50 +0000
committerKevin Enderby <enderby@apple.com>2016-11-28 22:40:50 +0000
commit4ffec859ebef5ac0e302c913ec71824d38db441e (patch)
treeb9c45b436497fb67e700078489a3143092a60934 /llvm/test/Object/Inputs
parentb367c567d932a562d100f1236a1ee75c4c03ba4b (diff)
downloadbcm5719-llvm-4ffec859ebef5ac0e302c913ec71824d38db441e.tar.gz
bcm5719-llvm-4ffec859ebef5ac0e302c913ec71824d38db441e.zip
Add error checking for Mach-O universal files.
Add the checking for both the MachO::fat_header and the MachO::fat_arch struct values in the constructor for MachOUniversalBinary. Such that when the constructor for ObjectForArch is called it can assume the values in the MachO::fat_arch for the offset and size are contained in the file after the MachOUniversalBinary constructor is called for the Parent. llvm-svn: 288084
Diffstat (limited to 'llvm/test/Object/Inputs')
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-arch-badalignbin0 -> 56 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalignbin0 -> 56 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapbin0 -> 104 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheadersbin0 -> 104 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-arch-sizebin0 -> 56 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-arch-twosamebin0 -> 104 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-fat-headerbin0 -> 8 bytes
7 files changed, 0 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
new file mode 100644
index 00000000000..da9f23ac49d
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-badalign
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign b/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign
new file mode 100644
index 00000000000..6db7158fea6
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-bigalign
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap
new file mode 100644
index 00000000000..556a3a7345c
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders
new file mode 100644
index 00000000000..04d7867e60e
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-overlapheaders
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-size b/llvm/test/Object/Inputs/macho-invalid-fat-arch-size
new file mode 100644
index 00000000000..dfd154c88e3
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-size
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame b/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame
new file mode 100644
index 00000000000..437df762c66
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-arch-twosame
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-fat-header b/llvm/test/Object/Inputs/macho-invalid-fat-header
new file mode 100644
index 00000000000..007664df921
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-fat-header
Binary files differ
OpenPOWER on IntegriCloud