]> granicus.if.org Git - llvm/commit
More additional error checks for invalid Mach-O files when
authorKevin Enderby <enderby@apple.com>
Mon, 31 Oct 2016 20:29:48 +0000 (20:29 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 31 Oct 2016 20:29:48 +0000 (20:29 +0000)
commite9885e072be0fc74531ffc004f5b4b8cac258f08
tree9826a3dbb887e8784e0739b28e807877bfeaa8dd
parent7e057dcd4e19ef38ea59c2dc00fb13bda64c5ecf
More additional error checks for invalid Mach-O files when
the offsets and sizes of an element of the file overlaps with
another element in the Mach-O file.

This shows the approach to this testing for three elements
and contains for tests for their overlap.  Checking for all the
remain elements will be added next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
test/Object/Inputs/macho-invalid-strtab-overlap [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-overlap [new file with mode: 0644]
test/Object/macho-invalid.test