Pretty obvious... someone reported it to misc@ recently, here's a fix.
It was allocating 'colors' of size 'numcolors' and trying to access
colors[numcolors], boom.

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/xtacy/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile    17 Dec 2004 15:03:18 -0000      1.16
+++ Makefile    6 Sep 2005 01:38:52 -0000
@@ -3,7 +3,7 @@
 COMMENT=       "X11 trippy color-cycling toy"
 
 DISTNAME=      xtacy114
-PKGNAME=       xtacy-1.14
+PKGNAME=       xtacy-1.14p0
 CATEGORIES=    x11
 
 MASTER_SITES=  ftp://sidehack.gweep.net/pub/software/ \
Index: patches/patch-color_c
===================================================================
RCS file: patches/patch-color_c
diff -N patches/patch-color_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-color_c       6 Sep 2005 01:37:37 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- color.c.orig       Thu Sep  3 23:40:45 1998
++++ color.c    Mon Sep  5 19:37:03 2005
+@@ -938,7 +938,7 @@ allocPhatColors()
+   {
+     fprintf(stderr,"Aieeee.. memory problem alloc'ing HC\n");
+   }
+-  for(i=0;i<=numcolors;i++)
++  for(i=0;i<numcolors;i++)
+   {
+     colors[i]=(long*)calloc(3,sizeof(long));
+   }

Reply via email to