summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-10-29 08:21:52 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-10-29 08:21:52 +0000
commit9694060b4c409531948060f4a7dbd7a753e713d7 (patch)
tree690cd981d9f9928c15cd236f2d0bfcbe4b84a357 /games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch
parentVersion bump, fixes security bug #342705 thank Tim Sammut for report. (diff)
downloadgentoo-2-9694060b4c409531948060f4a7dbd7a753e713d7.tar.gz
gentoo-2-9694060b4c409531948060f4a7dbd7a753e713d7.tar.bz2
gentoo-2-9694060b4c409531948060f4a7dbd7a753e713d7.zip
Fix overflow. Bug #340166
(Portage version: 2.1.9.22/cvs/Linux i686)
Diffstat (limited to 'games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch')
-rw-r--r--games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch b/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch
new file mode 100644
index 000000000000..5ed73c348cf2
--- /dev/null
+++ b/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch
@@ -0,0 +1,11 @@
+--- spacerider.cpp.old 2010-10-29 10:12:19.000000000 +0200
++++ spacerider.cpp 2010-10-29 10:13:47.000000000 +0200
+@@ -112,7 +112,7 @@
+ break;
+ case 'n':
+ /* specify a name for the online-highscore */
+- strncpy(name, optarg, 128);
++ strncpy(name, optarg, sizeof (name));
+ online_highscore = true;
+ break;
+ case 't':