From: Jay Freeman (saurik) Date: Thu, 13 Oct 2016 10:21:47 +0000 (-0700) Subject: Simulated memory map doesn't tolerate limit Align. X-Git-Tag: v2.1.0~32 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/c4f8d24363d98bae2040ad3f4ddb1ff89e9f7636 Simulated memory map doesn't tolerate limit Align. --- diff --git a/ldid.cpp b/ldid.cpp index 20abec9..8010211 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -2019,7 +2019,9 @@ static std::vector Sign(const uint8_t *prefix, size_t size, std::streambuf // XXX: this is a miserable fail std::stringbuf temp; put(temp, prefix, size); - copy(buffer, temp); + size += copy(buffer, temp); + // XXX: this is a stupid hack + pad(temp, 0x10 - (size & 0xf)); auto data(temp.str()); HashProxy proxy(hash, save);