llvm-project/llvm/unittests
Kevin Enderby 87c85b7e23 Fix identify_magic() to check that a file that starts with MH_MAGIC is
at least as big as the mach header to be identified as a Mach-O file and
make sure smaller files are not identified as a Mach-O files but as
unknown files. Also fix identify_magic() so it looks at all 4 bytes of
the filetype field when determining the type of the Mach-O file.
Then fix the macho-invalid-header test case to check that it is an
unknown file and make sure it does not get the error for
object_error::parse_failed.  And also update the unit tests.

llvm-svn: 258883
2016-01-26 23:43:37 +00:00
..
ADT Remove autoconf support 2016-01-26 21:29:08 +00:00
Analysis Remove autoconf support 2016-01-26 21:29:08 +00:00
AsmParser Remove autoconf support 2016-01-26 21:29:08 +00:00
Bitcode Remove autoconf support 2016-01-26 21:29:08 +00:00
CodeGen Remove autoconf support 2016-01-26 21:29:08 +00:00
DebugInfo Remove autoconf support 2016-01-26 21:29:08 +00:00
ExecutionEngine Remove autoconf support 2016-01-26 21:29:08 +00:00
IR Handle more edge cases in intrinsic name binary search 2016-01-26 22:33:19 +00:00
LineEditor Remove autoconf support 2016-01-26 21:29:08 +00:00
Linker Remove autoconf support 2016-01-26 21:29:08 +00:00
MC Remove autoconf support 2016-01-26 21:29:08 +00:00
Option Remove autoconf support 2016-01-26 21:29:08 +00:00
ProfileData Remove autoconf support 2016-01-26 21:29:08 +00:00
Support Fix identify_magic() to check that a file that starts with MH_MAGIC is 2016-01-26 23:43:37 +00:00
Transforms Remove autoconf support 2016-01-26 21:29:08 +00:00
CMakeLists.txt AsmParser: Require a terminating null character when creating memory buffer. 2015-05-20 20:41:27 +00:00