From 707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 28 Feb 2023 12:31:37 +0100 Subject: Fix segfault with missing Payload dir in .ipa --- src/ideviceinstaller.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 55c10d0..f0e0253 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -348,6 +348,10 @@ static int zip_get_app_directory(struct zip* zf, char** path) } } while(i < c); + if (*path == NULL) { + return -1; + } + return 0; } -- cgit v1.1-32-gdbae