Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 296699 Details for
Bug 97387
new ebuild: app-misc/empty
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
overflow-fixes.patch
overflow-fixes.patch (text/plain), 621 bytes, created by
James Le Cuirot
on 2011-12-22 22:01:23 UTC
(
hide
)
Description:
overflow-fixes.patch
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2011-12-22 22:01:23 UTC
Size:
621 bytes
patch
obsolete
>--- empty.c.orig 2009-07-27 18:26:42.000000000 +0100 >+++ empty.c 2011-12-22 17:17:11.037090159 +0000 >@@ -584,7 +584,7 @@ > > for (i = 1; i < argc; i++) { > strncat(buf, " ", 1); >- strncat(buf, argv[i], sizeof(buf)); >+ strncat(buf, argv[i], sizeof(buf) -1); > } > > (void)syslog(LOG_NOTICE, "forked %s", buf); >@@ -686,7 +686,7 @@ > while ((dent = readdir(dir)) != NULL) { > if (!strncmp(fmask, dent->d_name, len)) { > strncpy(fname, dent->d_name, sizeof(fname) - 1); >- fname[sizeof(buf) - 1] = '\0'; >+ fname[MAXPATHLEN - 1] = '\0'; > > strtok(fname, sep); /* empty */ > strtok(NULL, sep); /* PPID */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 97387
:
62229
|
68427
|
86075
|
140178
|
296697
| 296699