Fix a typo in an error message. Caught by Sean Silva!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kevin Enderby 2016-04-21 21:20:40 +00:00
parent 089f755c04
commit 1164632966
2 changed files with 3 additions and 3 deletions

View File

@ -284,7 +284,7 @@ MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian,
BigSize += getHeader().sizeofcmds;
if (getData().data() + BigSize > getData().end()) {
Err = malformedError(getFileName(), "truncated or malformed object "
"(load commands extends past the end of the file)");
"(load commands extend past the end of the file)");
return;
}

View File

@ -13,7 +13,7 @@ RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-too-small-
RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE %s
RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-too-small-load-command 2>&1 \
RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE %s
SMALL-LOADC-SIZE: truncated or malformed object (load commands extends past the end of the file)
SMALL-LOADC-SIZE: truncated or malformed object (load commands extend past the end of the file)
RUN: not llvm-objdump -private-headers %p/Inputs/macho-invalid-too-small-segment-load-command 2>&1 \
RUN: | FileCheck -check-prefix SMALL-SEGLOADC-SIZE %s
@ -61,4 +61,4 @@ RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-header 2>&
INVALID-HEADER: The file was not recognized as a valid object file
RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-incomplete-segment-load-command 2>&1 | FileCheck -check-prefix INCOMPLETE-SEGMENT-LOADC %s
INCOMPLETE-SEGMENT-LOADC: truncated or malformed object (load commands extends past the end of the file)
INCOMPLETE-SEGMENT-LOADC: truncated or malformed object (load commands extend past the end of the file)