diff options
| author | 2014-10-15 01:53:09 +0200 | |
|---|---|---|
| committer | 2014-10-15 01:53:09 +0200 | |
| commit | 12ed909c773a33d207c56f513371f82b37148b0a (patch) | |
| tree | eff1e7b003760e36ed7ac95fd704debf671dda61 | |
| parent | 5329197243b2d1e037a5df6a718f419a4accc868 (diff) | |
| download | libimobiledevice-12ed909c773a33d207c56f513371f82b37148b0a.tar.gz libimobiledevice-12ed909c773a33d207c56f513371f82b37148b0a.tar.bz2 | |
idevicedebug: Fix invalid write due to out of bounds access1.1.7
| -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[]) | |||
| 414 | /* set arguments and run app */ | 414 | /* set arguments and run app */ |
| 415 | debug_info("Setting argv..."); | 415 | debug_info("Setting argv..."); |
| 416 | i++; /* i is the offset of the bundle identifier, thus skip it */ | 416 | i++; /* i is the offset of the bundle identifier, thus skip it */ |
| 417 | int app_argc = (argc - i + 1); | 417 | int app_argc = (argc - i + 2); |
| 418 | char **app_argv = (char**)malloc(sizeof(char*) * app_argc); | 418 | char **app_argv = (char**)malloc(sizeof(char*) * app_argc); |
| 419 | app_argv[0] = path; | 419 | app_argv[0] = path; |
| 420 | debug_info("app_argv[%d] = %s", 0, app_argv[0]); | 420 | debug_info("app_argv[%d] = %s", 0, app_argv[0]); |
