diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2010-11-08 10:57:53 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2010-11-08 10:57:53 +0000 |
commit | 1e9c04f69fe98be8362f1630a6c8449808a2ed19 (patch) | |
tree | a688431619b0f78cdbc53955105a0b7b4c2763d7 /games-action | |
parent | x86 stable wrt bug #344333 (diff) | |
download | historical-1e9c04f69fe98be8362f1630a6c8449808a2ed19.tar.gz historical-1e9c04f69fe98be8362f1630a6c8449808a2ed19.tar.bz2 historical-1e9c04f69fe98be8362f1630a6c8449808a2ed19.zip |
Fix overflow. Bug #337188
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/0verkill/0verkill-0.16-r3.ebuild | 5 | ||||
-rw-r--r-- | games-action/0verkill/ChangeLog | 8 | ||||
-rw-r--r-- | games-action/0verkill/Manifest | 5 | ||||
-rw-r--r-- | games-action/0verkill/files/0verkill-0.16-ovflfix.patch | 24 |
4 files changed, 36 insertions, 6 deletions
diff --git a/games-action/0verkill/0verkill-0.16-r3.ebuild b/games-action/0verkill/0verkill-0.16-r3.ebuild index de18a2702f00..c5aa39f13cba 100644 --- a/games-action/0verkill/0verkill-0.16-r3.ebuild +++ b/games-action/0verkill/0verkill-0.16-r3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/0verkill-0.16-r3.ebuild,v 1.7 2010/01/02 23:09:27 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/0verkill-0.16-r3.ebuild,v 1.8 2010/11/08 10:57:53 tupone Exp $ EAPI=2 inherit autotools eutils games @@ -22,6 +22,7 @@ src_prepare() { "${FILESDIR}"/${P}-home-overflow.patch \ "${FILESDIR}"/${P}-segv.patch \ "${FILESDIR}"/${P}-gentoo-paths.patch \ + "${FILESDIR}"/${P}-ovflfix.patch \ "${FILESDIR}"/${P}-underflow-check.patch #136222 sed -i \ -e "s:data/:${GAMES_DATADIR}/${PN}/data/:" cfg.h \ diff --git a/games-action/0verkill/ChangeLog b/games-action/0verkill/ChangeLog index 6543cabbfd0f..94ba0cc881be 100644 --- a/games-action/0verkill/ChangeLog +++ b/games-action/0verkill/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-action/0verkill -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/ChangeLog,v 1.16 2008/03/07 23:54:07 wolf31o2 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/ChangeLog,v 1.17 2010/11/08 10:57:53 tupone Exp $ + + 08 Nov 2010; Alfredo Tupone <tupone@gentoo.org> 0verkill-0.16-r3.ebuild, + +files/0verkill-0.16-ovflfix.patch: + Fix overflow. Bug #337188 by flameeyes@gentoo.org 07 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> 0verkill-0.16-r3.ebuild: diff --git a/games-action/0verkill/Manifest b/games-action/0verkill/Manifest index 3d9b8568d342..d450394278f9 100644 --- a/games-action/0verkill/Manifest +++ b/games-action/0verkill/Manifest @@ -1,9 +1,10 @@ AUX 0verkill-0.16-docs.patch 1477 RMD160 697fc37a2ae76ec58ddd8f40873ec33da3567eb1 SHA1 b0655ae1e29ab7bfce19d1c5dcfa02cf7aa07a3b SHA256 aa866aa38f93ac4fee8fe72f58dfd7ce6311780303169917a79fdc479ed2d1b6 AUX 0verkill-0.16-gentoo-paths.patch 531 RMD160 14f6a75ed034f3aa7547b9d5ddc92b3511ca4a90 SHA1 b8d2e9e3284bb38604b75be8c8e8ec412c13f03c SHA256 d89de2a05ffd6480d7b76d0256d1ab5670561e68d9476d1d03772f54929110c9 AUX 0verkill-0.16-home-overflow.patch 725 RMD160 6bb85c426570813b0f6d35fa0085562b28930fa8 SHA1 cb4798c87de055dd4b205fef2542bb455e576f87 SHA256 9e0261f16dad0623c955026d777e1872eac4017e34ed66b02a8c8ef977a9f69d +AUX 0verkill-0.16-ovflfix.patch 805 RMD160 58fede5ce70b190f88577b5a25d93263d082db78 SHA1 fd77d8be0252b41417973200a3b25a847a13f068 SHA256 f5b29dbc10a4a26c57d3d1c9eaf8ec1efc090311bfcf1b05aa0f21959e7090e2 AUX 0verkill-0.16-segv.patch 1560 RMD160 a3a244821dc9882692a7c5dd13ddd1e5c7c02163 SHA1 4c82c1c80a91ffb6800c8aecaa43078d0ce1fc1d SHA256 b49cb1a14667cc4033e6094f99a9ddc1ef242381acac83a3abdeebf208724291 AUX 0verkill-0.16-underflow-check.patch 675 RMD160 cff920abbc084cfb4632cca17791a3fdf6228f49 SHA1 2c00a18d15e5a0afa3b2f6f433ba58790fef918e SHA256 e918e3b2b632632cca8c337caf019b0c2565ded120b8055a4d31677d446ef8e5 DIST 0verkill-0.16.tgz 276579 RMD160 fdf7a132dfa0312d8d732b2bf2999e7264685eec SHA1 6ce4152f20709175e0bad80cc79ec00e2064a100 SHA256 8091261c3fef3535edb97ab46cb48c067befb329e951bfa3f1b54ae6b7e1dadf -EBUILD 0verkill-0.16-r3.ebuild 1589 RMD160 f5263dedda92a42894aa50b735493369aa278e45 SHA1 805e8d5c8471d04c69313276c3cce4f1bdfe8a4d SHA256 e84f530d626a9b36029ccca1b74e9767ee09f522d3f58e3caf77b56077ab57dc -MISC ChangeLog 2219 RMD160 f3436d2cff7283111ab77b8c3867b94ac8e88be2 SHA1 8f559a0c08800cddb6f206879c0593952d02987c SHA256 050df942f13515de5fa813332de20ca4223f53a4808eb0746f4246e3823a4d7d +EBUILD 0verkill-0.16-r3.ebuild 1623 RMD160 d0fe9cf61438e9236550bb5999c93c56dc363350 SHA1 3f10855d31f80be57b27f3c45339ebdc65888983 SHA256 c5e2aabdb0d360c2f12e62b8b5a3821cdad4ff3f022183278b3d56146868a721 +MISC ChangeLog 2383 RMD160 d1946eb478ab800140b06eaa5263b8eed3473b5f SHA1 ff5223269531d06d2e2b969bf3f1e2fb7af336c3 SHA256 6547aab857ca7ab65ef6f1af0aff1267a032b98ffbd173ba855df9a942842a1f MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-action/0verkill/files/0verkill-0.16-ovflfix.patch b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch new file mode 100644 index 000000000000..3df8a0789545 --- /dev/null +++ b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch @@ -0,0 +1,24 @@ +--- server.c.old 2010-11-08 11:53:18.000000000 +0100 ++++ server.c 2010-11-08 11:53:43.000000000 +0100 +@@ -905,8 +905,8 @@ + int len; + + packet[0]=P_MESSAGE; +- if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;} +- else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} ++ if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;} ++ else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;} + send_chunk_packet_to_player(packet,len,player); + } + +--- console.c.old 2010-11-08 11:53:26.000000000 +0100 ++++ console.c 2010-11-08 11:54:44.000000000 +0100 +@@ -206,7 +206,7 @@ + void c_setcolor_3b(unsigned char a) + { + char txt[8]; +- snprintf(txt,16,"\033[%dm",30+(a&7)); ++ snprintf(txt,sizeof(txt),"\033[%dm",30+(a&7)); + my_print(txt); + } + |