forked from OSchip/llvm-project
Fix a typo in an error message. Caught by Sean Silva!
llvm-svn: 267056
This commit is contained in:
parent
e44482fe7a
commit
6e295f2304
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue