Fix typo in checkTwoLevelHintsCommand
BigSize had a copy/paste typo in it. This fixes that.
llvm-svn: 316027
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 7b4be97..8ac9691 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -1115,7 +1115,7 @@
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 "