Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61573 Details for
Bug 94587
net-im/silc-server-0.9.21 insecure temporary file creation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use O_EXCL
silcd-tmpfile.diff (text/plain), 499 bytes, created by
Tavis Ormandy (RETIRED)
on 2005-06-20 05:56:50 UTC
(
hide
)
Description:
use O_EXCL
Filename:
MIME Type:
Creator:
Tavis Ormandy (RETIRED)
Created:
2005-06-20 05:56:50 UTC
Size:
499 bytes
patch
obsolete
>--- silcd/silcd.c.orig 2004-02-27 15:29:51.000000000 +0000 >+++ silcd/silcd.c 2005-06-20 13:49:34.511237224 +0100 >@@ -260,11 +260,13 @@ > SILC_TASK_CALLBACK(dump_stats) > { > FILE *fdd; >+ int fdes; > char filename[256]; > > memset(filename, 0, sizeof(filename)); > snprintf(filename, sizeof(filename) - 1, "/tmp/silcd.%d.stats", getpid()); >- fdd = fopen(filename, "w+"); >+ fdes = open (filename, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR); >+ fdd = fdopen(fdes, "w"); > if (!fdd) > return; >
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 94587
: 61573