From: Jay Freeman (saurik) Date: Mon, 21 Sep 2015 01:52:15 +0000 (-0700) Subject: Complete padding of final fat code directory blob. X-Git-Tag: v2.1.0~103 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/672053357b3a7955fb09e039fc39af023d68d301 Complete padding of final fat code directory blob. --- diff --git a/ldid.cpp b/ldid.cpp index 874e7f5..caf6bc1 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1119,10 +1119,11 @@ void resign(void *idata, size_t isize, std::streambuf &output, const Functor position) - pad(output, allocation.alloc_ - position); + size_t saved(save(output, allocation.limit_, overlap, top)); + if (allocation.alloc_ > saved) + pad(output, allocation.alloc_ - saved); + position += allocation.alloc_; } }