diff options
author | Nikias Bassen | 2023-02-28 12:31:37 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-02-28 12:31:37 +0100 |
commit | 707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0 (patch) | |
tree | 7637feefed4cdf71937cad874a25894df9b70c1e | |
parent | bbc82c7d5f5ffa321cc396808ed6861b89b54dd8 (diff) | |
download | ideviceinstaller-707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0.tar.gz ideviceinstaller-707e4f0b9fd13f29bb5e9cc6a4dfdb96bad5e5f0.tar.bz2 |
Fix segfault with missing Payload dir in .ipa
-rw-r--r-- | src/ideviceinstaller.c | 4 |
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; } |