diff options
author | Martin Szulecki | 2014-10-15 01:53:09 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-15 01:53:09 +0200 |
commit | 12ed909c773a33d207c56f513371f82b37148b0a (patch) | |
tree | eff1e7b003760e36ed7ac95fd704debf671dda61 /tools | |
parent | 5329197243b2d1e037a5df6a718f419a4accc868 (diff) | |
download | libimobiledevice-1.1.7.tar.gz libimobiledevice-1.1.7.tar.bz2 |
idevicedebug: Fix invalid write due to out of bounds access1.1.7
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicedebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c index 9d0c561..c8772ed 100644 --- a/tools/idevicedebug.c +++ b/tools/idevicedebug.c @@ -414,7 +414,7 @@ int main(int argc, char *argv[]) /* set arguments and run app */ debug_info("Setting argv..."); i++; /* i is the offset of the bundle identifier, thus skip it */ - int app_argc = (argc - i + 1); + int app_argc = (argc - i + 2); char **app_argv = (char**)malloc(sizeof(char*) * app_argc); app_argv[0] = path; debug_info("app_argv[%d] = %s", 0, app_argv[0]); |