From 6cf8c3b39174428234a9818bb3b723c17bd1f652 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 11 Mar 2023 17:05:48 +0100 Subject: [PATCH] ios_exploit: Fix checking the size of ios_fs --- source/ios_exploit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/ios_exploit.c b/source/ios_exploit.c index 90d9059..4c86d2a 100644 --- a/source/ios_exploit.c +++ b/source/ios_exploit.c @@ -327,8 +327,7 @@ static void uhs_exploit_init(int dev_uhs_0_handle) { payloads->size = sizeof(ios_mcp); memcpy(payloads->data, ios_mcp, payloads->size); - - static_assert(sizeof(ios_mcp) < 0xF4180000 - 0xF4170000, "IOS_FS is too big"); + static_assert(sizeof(ios_fs) < 0xF417FEF0 - 0xF4170000, "IOS_FS is too big"); payloads = (payload_info_t *) 0xF4170000; payloads->size = sizeof(ios_fs); memcpy(payloads->data, ios_fs, payloads->size);