pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm/ctwm Zero out some memory that was being accessed b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a25d2fd3e955
branches:  trunk
changeset: 574642:a25d2fd3e955
user:      dogcow <dogcow%pkgsrc.org@localhost>
date:      Thu Apr 22 02:42:54 2010 +0000

description:
Zero out some memory that was being accessed before being used.
bump PKGREVISION.

diffstat:

 wm/ctwm/Makefile         |   4 ++--
 wm/ctwm/distinfo         |   3 ++-
 wm/ctwm/patches/patch-ae |  21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r e6ed73d2d9e3 -r a25d2fd3e955 wm/ctwm/Makefile
--- a/wm/ctwm/Makefile  Thu Apr 22 02:41:29 2010 +0000
+++ b/wm/ctwm/Makefile  Thu Apr 22 02:42:54 2010 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2010/01/18 09:59:29 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2010/04/22 02:42:54 dogcow Exp $
 #
 
 DISTNAME=      ctwm-3.8a
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    x11 wm
 MASTER_SITES=  http://ctwm.free.lp.se/dist/
 
diff -r e6ed73d2d9e3 -r a25d2fd3e955 wm/ctwm/distinfo
--- a/wm/ctwm/distinfo  Thu Apr 22 02:41:29 2010 +0000
+++ b/wm/ctwm/distinfo  Thu Apr 22 02:42:54 2010 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.13 2007/02/17 08:27:11 obache Exp $
+$NetBSD: distinfo,v 1.14 2010/04/22 02:42:54 dogcow Exp $
 
 SHA1 (ctwm-3.8a.tar.gz) = c3a31d669bef7dd5ec78d89950c0e575d6c51c77
 RMD160 (ctwm-3.8a.tar.gz) = cc1c3c862c3cfb1d66593d9a95d28ec0bbbbaf3c
 Size (ctwm-3.8a.tar.gz) = 738226 bytes
 SHA1 (patch-ac) = bb4cbcb8e4a68d1f2844aa16e85918aa5368a869
+SHA1 (patch-ae) = e70d268318b20ff0287dbedb67c402ac645adabe
diff -r e6ed73d2d9e3 -r a25d2fd3e955 wm/ctwm/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/ctwm/patches/patch-ae  Thu Apr 22 02:42:54 2010 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ae,v 1.1 2010/04/22 02:42:54 dogcow Exp $
+
+Fix some instances of using uninitialized memory.
+--- workmgr.c.orig     2007-02-16 01:24:28.000000000 -0800
++++ workmgr.c  2010-04-21 19:32:27.000000000 -0700
+@@ -138,6 +138,7 @@ void InitWorkSpaceManager (void)
+     Scr->workSpaceMgr.windowcpgiven = False;
+ 
+     Scr->workSpaceMgr.occupyWindow = (OccupyWindow*) malloc (sizeof (OccupyWindow));
++    memset(Scr->workSpaceMgr.occupyWindow, 0, sizeof (OccupyWindow));
+     Scr->workSpaceMgr.occupyWindow->name      = "Occupy Window";
+     Scr->workSpaceMgr.occupyWindow->icon_name = "Occupy Window Icon";
+     Scr->workSpaceMgr.occupyWindow->geometry  = NULL;
+@@ -169,6 +170,7 @@ void ConfigureWorkSpaceManager (void) {
+ 
+     for (vs = Scr->vScreenList; vs != NULL; vs = vs->next) {
+       WorkSpaceWindow *wsw = (WorkSpaceWindow*) malloc (sizeof (WorkSpaceWindow));
++        memset(wsw, 0, sizeof(WorkSpaceWindow));
+       wsw->twm_win         = (TwmWindow*) 0;
+       wsw->state = Scr->workSpaceMgr.initialstate; /* BUTTONSSTATE */
+       vs->wsw = wsw;



Home | Main Index | Thread Index | Old Index