Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 250519 Details for
Bug 340909
games-action/trackballs _FORTIFY_SOURCE indicates presence of overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to trackballs-1.1.4.ebuild to fix _FORTIFY_SOURCE issue and snprintf non-literal format issues
trackballs-1.1.4.ebuild.patch (text/plain), 904 bytes, created by
Kevin Pyle
on 2010-10-14 03:55:03 UTC
(
hide
)
Description:
Patch to trackballs-1.1.4.ebuild to fix _FORTIFY_SOURCE issue and snprintf non-literal format issues
Filename:
MIME Type:
Creator:
Kevin Pyle
Created:
2010-10-14 03:55:03 UTC
Size:
904 bytes
patch
obsolete
>diff -ru a/trackballs-1.1.4.ebuild b/trackballs-1.1.4.ebuild >--- a/trackballs-1.1.4.ebuild 2009-11-07 19:08:40.000000000 +0000 >+++ b/trackballs-1.1.4.ebuild 2010-10-14 03:47:57.485688808 +0000 >@@ -35,6 +35,18 @@ > src/Makefile.in \ > po/Makefile.in.in \ > || die "sed failed" >+ # Fix _FORTIFY_SOURCE buffer overflow due to wrong sizeof >+ sed -i \ >+ -e 's/\(snprintf(\(name\),sizeof\)(str)/\1(\2)/' \ >+ src/enterHighScoreMode.cc || die >+ # Fix -Wformat-security warning due to non-literal with no format arguments >+ sed -i \ >+ -e 's/\(snprintf(levelname,sizeof(levelname),\)\(name)\)/\1 "%s", \2/' \ >+ -e 's/\(snprintf(Settings::settings->specialLevel,sizeof(Settings::settings->specialLevel),\)\(levelname)\)/\1 "%s", \2/' \ >+ src/editMode.cc || die >+ sed -i \ >+ -e 's/\(snprintf(\(textureName\),\)63\(,textureNames\[i\])\)/\1 sizeof(\2), "%s"\3/' \ >+ src/map.cc || die > } > > src_configure() {
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 340909
:
250511
| 250519