From: Jay Freeman (saurik) Date: Fri, 26 Aug 2016 00:35:46 +0000 (-0700) Subject: Apparently, I never pushed this fix to ldid -s :/. X-Git-Tag: v2.1.0~46 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/b2e6a299dd58a640569aa6cdfe9774f7059bb096 Apparently, I never pushed this fix to ldid -s :/. --- diff --git a/ldid.cpp b/ldid.cpp index b3e4beb..3011711 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -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(blob + begin); + struct CodeDirectory *directory = reinterpret_cast(blob + begin + sizeof(Blob)); uint8_t (*hashes)[LDID_SHA1_DIGEST_LENGTH] = reinterpret_cast(blob + begin + Swap(directory->hashOffset)); uint32_t pages = Swap(directory->nCodeSlots);