From 13990230e7759e69f1f18b21cdde5eef8f728ec7 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 26 Oct 2006 06:10:01 +0000 Subject: [PATCH] Fix buffer overflows 1 element before and after buffer boundaries. Fixes segfault on startup. OK author, pval@. --- games/fire/Makefile | 3 ++- games/fire/patches/patch-fire_c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 games/fire/patches/patch-fire_c diff --git a/games/fire/Makefile b/games/fire/Makefile index 99e92f51d7a..6fd1fcb77be 100644 --- a/games/fire/Makefile +++ b/games/fire/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.7 2004/11/28 22:41:17 espie Exp $ +# $OpenBSD: Makefile,v 1.8 2006/10/26 06:10:01 ray Exp $ COMMENT= "organic fireworks demo" DISTNAME= fire-1.0 +PKGNAME= ${DISTNAME}p0 CATEGORIES= games HOMEPAGE= http://www.libsdl.org/projects/fire/ diff --git a/games/fire/patches/patch-fire_c b/games/fire/patches/patch-fire_c new file mode 100644 index 00000000000..ae24bb8bab6 --- /dev/null +++ b/games/fire/patches/patch-fire_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-fire_c,v 1.1 2006/10/26 06:10:01 ray Exp $ +--- fire.c.orig Tue Dec 21 00:19:06 1999 ++++ fire.c Thu Aug 24 06:10:54 2006 +@@ -105,7 +105,7 @@ unsigned char *p3, *p4; + + for(y=2;y