Skip to content

Commit 6e295f2

Browse files
committed
Fix a typo in an error message. Caught by Sean Silva!
llvm-svn: 267056
1 parent e44482f commit 6e295f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Object/MachOObjectFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian,
284284
BigSize += getHeader().sizeofcmds;
285285
if (getData().data() + BigSize > getData().end()) {
286286
Err = malformedError(getFileName(), "truncated or malformed object "
287-
"(load commands extends past the end of the file)");
287+
"(load commands extend past the end of the file)");
288288
return;
289289
}
290290

llvm/test/Object/macho-invalid.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-too-small-
1313
RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE %s
1414
RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-too-small-load-command 2>&1 \
1515
RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE %s
16-
SMALL-LOADC-SIZE: truncated or malformed object (load commands extends past the end of the file)
16+
SMALL-LOADC-SIZE: truncated or malformed object (load commands extend past the end of the file)
1717

1818
RUN: not llvm-objdump -private-headers %p/Inputs/macho-invalid-too-small-segment-load-command 2>&1 \
1919
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>&
6161
INVALID-HEADER: The file was not recognized as a valid object file
6262

6363
RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-incomplete-segment-load-command 2>&1 | FileCheck -check-prefix INCOMPLETE-SEGMENT-LOADC %s
64-
INCOMPLETE-SEGMENT-LOADC: truncated or malformed object (load commands extends past the end of the file)
64+
INCOMPLETE-SEGMENT-LOADC: truncated or malformed object (load commands extend past the end of the file)

0 commit comments

Comments
 (0)