Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Mar 2014 21:23:47 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347536 - in head/x11-wm/windowmaker: . files
Message-ID:  <201403082123.s28LNlVe048217@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sat Mar  8 21:23:46 2014
New Revision: 347536
URL: http://svnweb.freebsd.org/changeset/ports/347536
QAT: https://qat.redports.org/buildarchive/r347536/

Log:
  Fix wrong memory access beyond array boundary.
  
  Reported by:	Francois Tigeot
  PR:		ports/182279

Added:
  head/x11-wm/windowmaker/files/patch-src-osdep_bsd.c   (contents, props changed)
Modified:
  head/x11-wm/windowmaker/Makefile

Modified: head/x11-wm/windowmaker/Makefile
==============================================================================
--- head/x11-wm/windowmaker/Makefile	Sat Mar  8 20:33:13 2014	(r347535)
+++ head/x11-wm/windowmaker/Makefile	Sat Mar  8 21:23:46 2014	(r347536)
@@ -3,7 +3,7 @@
 
 PORTNAME=	windowmaker
 PORTVERSION=	0.95.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-wm windowmaker
 MASTER_SITES=	http://windowmaker.org/pub/%SUBDIR%/
 MASTER_SITE_SUBDIR=	source/release

Added: head/x11-wm/windowmaker/files/patch-src-osdep_bsd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/windowmaker/files/patch-src-osdep_bsd.c	Sat Mar  8 21:23:46 2014	(r347536)
@@ -0,0 +1,11 @@
+--- src/osdep_bsd.c.orig	2014-03-09 06:12:39.000000000 +0900
++++ src/osdep_bsd.c	2014-03-09 06:14:45.000000000 +0900
+@@ -85,8 +85,6 @@
+ 	if (argmax == 0) { /* it hopefully doesn't change at runtime *g* */
+ 		mib[0] = CTL_KERN;
+ 		mib[1] = KERN_ARGMAX;
+-		mib[2] = 0;
+-		mib[4] = 0;
+ 
+ 		count = sizeof(argmax);
+ 		if (sysctl(mib, 2, &argmax, &count, NULL, 0) == -1)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403082123.s28LNlVe048217>