summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-15 01:53:09 +0200
committerGravatar Martin Szulecki2014-10-15 01:53:09 +0200
commit12ed909c773a33d207c56f513371f82b37148b0a (patch)
treeeff1e7b003760e36ed7ac95fd704debf671dda61 /tools
parent5329197243b2d1e037a5df6a718f419a4accc868 (diff)
downloadlibimobiledevice-12ed909c773a33d207c56f513371f82b37148b0a.tar.gz
libimobiledevice-12ed909c773a33d207c56f513371f82b37148b0a.tar.bz2
idevicedebug: Fix invalid write due to out of bounds access1.1.7
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicedebug.c2
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]);