Skip to content

Commit

Permalink
Apparently, I never pushed this fix to ldid -s :/.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Aug 26, 2016
1 parent 4dd1691 commit b2e6a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,7 @@ int main(int argc, char *argv[]) {
for (size_t index(0); index != Swap(super->count); ++index)
if (Swap(super->index[index].type) == CSSLOT_CODEDIRECTORY) {
uint32_t begin = Swap(super->index[index].offset);
struct CodeDirectory *directory = reinterpret_cast<struct CodeDirectory *>(blob + begin);
struct CodeDirectory *directory = reinterpret_cast<struct CodeDirectory *>(blob + begin + sizeof(Blob));

uint8_t (*hashes)[LDID_SHA1_DIGEST_LENGTH] = reinterpret_cast<uint8_t (*)[LDID_SHA1_DIGEST_LENGTH]>(blob + begin + Swap(directory->hashOffset));
uint32_t pages = Swap(directory->nCodeSlots);
Expand Down

0 comments on commit b2e6a29

Please sign in to comment.