Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Staging:A
patchutils
overrun.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File overrun.diff of Package patchutils
Author: Dirk Mueller <dmueller@suse.de> Subject: forgets to copy trailing NULL, so execve() fails --- src/rediff.c +++ src/rediff.c @@ -1042,8 +1042,8 @@ int main (int argc, char *argv[]) char *p = xmalloc (strlen (argv[0]) + strlen ("recountdiff") + 1); char *f; - char **const new_argv = xmalloc (sizeof (char *) * argc); - memcpy (new_argv, argv, sizeof (char *) * argc); + char **const new_argv = xmalloc (sizeof (char *) * (argc + 1)); + memcpy (new_argv, argv, sizeof (char *) * (argc + 1) ); new_argv[0] = p; strcpy (p, argv[0]); f = strrchr (p, '/');
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor