OSDN Git Service

Next set of additional error checks for invalid Mach-O files for bad LC_SYMTAB’s.
authorKevin Enderby <enderby@apple.com>
Fri, 26 Aug 2016 19:34:07 +0000 (19:34 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 26 Aug 2016 19:34:07 +0000 (19:34 +0000)
commitff19e2b684835e63d9741865958bcdcdaa6e52a1
tree2b91274879d6629cf98c663611c007b4256ec17d
parent55d021c2f56ec5e7c84cb23fbd1537a1712b1734
Next set of additional error checks for invalid Mach-O files for bad LC_SYMTAB’s.

This contains the missing checks for LC_SYMTAB load command fields.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279854 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
test/Object/Inputs/macho-invalid-symtab-bad-size [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-more-than-one [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-small [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-stroff [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-stroff-strsize [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-symoff [new file with mode: 0644]
test/Object/Inputs/macho-invalid-symtab-symoff-nsyms [new file with mode: 0644]
test/Object/macho-invalid.test