summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-02-28 12:31:37 +0100
committerGravatar Nikias Bassen2023-02-28 12:31:37 +0100
commit707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0 (patch)
tree7637feefed4cdf71937cad874a25894df9b70c1e /src
parentbbc82c7d5f5ffa321cc396808ed6861b89b54dd8 (diff)
downloadideviceinstaller-707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0.tar.gz
ideviceinstaller-707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0.tar.bz2
Fix segfault with missing Payload dir in .ipa
Diffstat (limited to 'src')
-rw-r--r--src/ideviceinstaller.c4
1 files changed, 4 insertions, 0 deletions
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;
}