aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/TargetLibraryInfo.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-01-26 23:43:37 +0000
committerKevin Enderby <enderby@apple.com>2016-01-26 23:43:37 +0000
commit87c85b7e23f3d87b0c8a8826e3ebc867fca7e7ae (patch)
treefcc57d6c6144e54af650041845b208933c5e65b1 /llvm/lib/Analysis/TargetLibraryInfo.cpp
parent8e785a4ec08cf7119b9e50688b2baa9123fd4ae8 (diff)
downloadllvm-87c85b7e23f3d87b0c8a8826e3ebc867fca7e7ae.zip
llvm-87c85b7e23f3d87b0c8a8826e3ebc867fca7e7ae.tar.gz
llvm-87c85b7e23f3d87b0c8a8826e3ebc867fca7e7ae.tar.bz2
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
Diffstat (limited to 'llvm/lib/Analysis/TargetLibraryInfo.cpp')
0 files changed, 0 insertions, 0 deletions