From 1a81dfba97c5b50d6969bfe55c1f7c42e9d6db9e Mon Sep 17 00:00:00 2001 From: Jessica Paquette Date: Tue, 17 Oct 2017 20:43:33 +0000 Subject: Fix typo in checkTwoLevelHintsCommand BigSize had a copy/paste typo in it. This fixes that. llvm-svn: 316027 --- llvm/lib/Object/MachOObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 7b4be973a09..8ac96919719 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -1115,7 +1115,7 @@ static Error checkTwoLevelHintsCommand(const MachOObjectFile &Obj, Twine(LoadCommandIndex) + " extends past the end of " "the file"); uint64_t BigSize = Hints.nhints; - BigSize *= Hints.nhints * sizeof(MachO::twolevel_hint); + BigSize *= sizeof(MachO::twolevel_hint); BigSize += Hints.offset; if (BigSize > FileSize) return malformedError("offset field plus nhints times sizeof(struct " -- cgit v1.2.3