Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20871 Details for
Bug 33701
Overkill $HOME environment variable buffer overflow (includes fix)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
games-action/0verkill/files/0.16-HOME-fix.patch
0.16-HOME-fix.patch (text/plain), 725 bytes, created by
Andy Dustman
on 2003-11-17 12:40:49 UTC
(
hide
)
Description:
games-action/0verkill/files/0.16-HOME-fix.patch
Filename:
MIME Type:
Creator:
Andy Dustman
Created:
2003-11-17 12:40:49 UTC
Size:
725 bytes
patch
obsolete
>--- client.c.orig 2001-12-16 04:26:38.000000000 -0500 >+++ client.c 2003-11-17 15:12:52.850772508 -0500 >@@ -191,9 +191,9 @@ > unsigned char txt[256]; > > #ifndef WIN32 >- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); >+ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); > #else >- sprintf(txt,"./%s",CFG_FILE); >+ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); > #endif > stream=fopen(txt,"r"); > if (!stream)return; >@@ -223,9 +223,9 @@ > unsigned char txt[256]; > > #ifndef WIN32 >- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); >+ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); > #else >- sprintf(txt,"./%s",CFG_FILE); >+ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); > #endif > stream=fopen(txt,"w"); > if (!stream)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 33701
:
20870
| 20871