mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix typo in checkTwoLevelHintsCommand
BigSize had a copy/paste typo in it. This fixes that. llvm-svn: 316027
This commit is contained in:
parent
5aa4aefc0e
commit
db8ed356f2
@ -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
Block a user