From: Jay Freeman (saurik) Date: Sun, 16 Sep 2018 10:15:28 +0000 (-0700) Subject: Don't include fields for later directory versions. X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/71465d5fd1846c801f628be21c57b52031df1655 Don't include fields for later directory versions. --- diff --git a/ldid.cpp b/ldid.cpp index 4d97bb8..25f3027 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -859,8 +859,8 @@ struct CodeDirectory { uint32_t spare2; uint32_t scatterOffset; uint32_t teamIDOffset; - uint32_t spare3; - uint64_t codeLimit64; + //uint32_t spare3; + //uint64_t codeLimit64; } _packed; #ifndef LDID_NOFLAGT @@ -1721,8 +1721,8 @@ Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::st directory.pageSize = PageShift_; directory.spare2 = Swap(uint32_t(0)); directory.scatterOffset = Swap(uint32_t(0)); - directory.spare3 = Swap(uint32_t(0)); - directory.codeLimit64 = Swap(uint64_t(0)); + //directory.spare3 = Swap(uint32_t(0)); + //directory.codeLimit64 = Swap(uint64_t(0)); uint32_t offset(sizeof(Blob) + sizeof(CodeDirectory));