From 71465d5fd1846c801f628be21c57b52031df1655 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 16 Sep 2018 03:15:28 -0700 Subject: [PATCH] Don't include fields for later directory versions. --- ldid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); -- 2.45.2