diff options
Diffstat (limited to 'src/ideviceinstaller.c')
| -rw-r--r-- | src/ideviceinstaller.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index e5c36ef..33737b9 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -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; | 
