]> git.saurik.com Git - ldid.git/commitdiff
Simulated memory map doesn't tolerate limit Align.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Oct 2016 10:21:47 +0000 (03:21 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Oct 2016 10:21:47 +0000 (03:21 -0700)
ldid.cpp

index 20abec9fe69ad0293abfcd79631f9c59a49d8f23..80102113cb0200bdb77c2d2a00d1759d526a3140 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -2019,7 +2019,9 @@ static std::vector<char> 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);