summaryrefslogtreecommitdiff
path: root/games/bomberclone/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-02-21 22:44:53 +0000
committerwiz <wiz@pkgsrc.org>2006-02-21 22:44:53 +0000
commitb578c47004baba78858e5210616c2af893abdd33 (patch)
tree7ecb20a5ed44d4a7b3b519ff74e9e717dc4ca50b /games/bomberclone/patches
parentc187dc1640e4c266b21d66dc85236966c963346d (diff)
downloadpkgsrc-b578c47004baba78858e5210616c2af893abdd33.tar.gz
Add patches for fixing
http://www.gentoo.org/security/en/glsa/glsa-200602-09.xml from Gentoo.
Diffstat (limited to 'games/bomberclone/patches')
-rw-r--r--games/bomberclone/patches/patch-ac26
-rw-r--r--games/bomberclone/patches/patch-ad17
2 files changed, 43 insertions, 0 deletions
diff --git a/games/bomberclone/patches/patch-ac b/games/bomberclone/patches/patch-ac
new file mode 100644
index 00000000000..4f468ea03a8
--- /dev/null
+++ b/games/bomberclone/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.1 2006/02/21 22:44:53 wiz Exp $
+
+From http://dev.gentoo.org/~plasmaroo/stuff/bomberclone-fix-kaboom.patch
+fixing http://www.gentoo.org/security/en/glsa/glsa-200602-09.xml
+(part 1).
+
+--- src/menu.c.orig 2005-03-27 03:31:50.000000000 +0200
++++ src/menu.c
+@@ -629,7 +629,7 @@ menu_displaymessage (char *title, char *
+ memset (text, 0, sizeof (text));
+ memset (out, 0, sizeof (out));
+ va_start (args, fmt);
+- vsprintf (text, fmt, args);
++ vsnprintf (text, 512, fmt, args);
+ va_end (args);
+
+ menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
+@@ -722,7 +722,7 @@ menu_displaytext (char *title, char *fmt
+ memset (text, 0, sizeof (text));
+ memset (out, 0, sizeof (out));
+ va_start (args, fmt);
+- vsprintf (text, fmt, args);
++ vsnprintf (text, 512, fmt, args);
+ va_end (args);
+
+ menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
diff --git a/games/bomberclone/patches/patch-ad b/games/bomberclone/patches/patch-ad
new file mode 100644
index 00000000000..be3afb51d7d
--- /dev/null
+++ b/games/bomberclone/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1 2006/02/21 22:44:53 wiz Exp $
+
+From http://dev.gentoo.org/~plasmaroo/stuff/bomberclone-fix-kaboom.patch
+fixing http://www.gentoo.org/security/en/glsa/glsa-200602-09.xml
+(part 2).
+
+--- src/menulabels.c.orig 2004-09-12 18:49:48.000000000 +0200
++++ src/menulabels.c
+@@ -72,7 +72,7 @@ void menu_create_text (_menu *menu, char
+ memset (text, 0, sizeof (text));
+ memset (out, 0, sizeof (out));
+ va_start (args, fmt);
+- vsprintf (text, fmt, args);
++ vsnprintf (text, 1024, fmt, args);
+ va_end (args);
+
+ menu_formattext (text, out, lineptr, &linecnt, &maxchar, maxlen, maxlines);