forked from OSchip/llvm-project
Fix typo in checkTwoLevelHintsCommand
BigSize had a copy/paste typo in it. This fixes that. llvm-svn: 316027
This commit is contained in:
parent
35713eba56
commit
1a81dfba97
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue