mirror of
https://github.com/libimobiledevice/ideviceinstaller.git
synced 2026-03-18 20:02:26 +00:00
Fix get wrong app directory from zip/ipa when there are other directory, taking "OnDemandResources" for example
This commit is contained in:
@@ -355,6 +355,12 @@ static int zip_get_app_directory(struct zip* zf, char** path)
|
||||
|
||||
len = p - name + 1;
|
||||
|
||||
/* make sure app directory endwith .app */
|
||||
if (len < 12 || strncmp(p - 4, ".app", 4))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (path != NULL) {
|
||||
free(*path);
|
||||
*path = NULL;
|
||||
|
||||
Reference in New Issue
Block a user