diff --git a/inject.m b/inject.m index 8dca775..5d6e3a4 100644 --- a/inject.m +++ b/inject.m @@ -190,7 +190,7 @@ int injectTrustCache(NSArray *files, uint64_t trust_chain) { return errors; } - size_t length = (sizeof(mem) + hashesToInject * TRUST_CDHASH_LEN + 0xFFFF) & ~0xFFFF; + size_t length = (sizeof(mem) + hashesToInject * TRUST_CDHASH_LEN); char *buffer = malloc(hashesToInject * TRUST_CDHASH_LEN); if (buffer == NULL) { fprintf(stderr, "Unable to allocate memory for cdhashes: %s\n", strerror(errno));