diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2014-03-08 21:23:46 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2014-03-08 21:23:46 +0000 |
commit | d7e6cbb0758a726f003d710ed1564cd27cea3be9 (patch) | |
tree | 685cbb35e232ffacbf3f6df84bae9323d5f6d92c /x11-wm/windowmaker | |
parent | - Remove USE_DISTUTILS=yes: use setuptools since it's dependency now (diff) |
Fix wrong memory access beyond array boundary.
Reported by: Francois Tigeot
PR: ports/182279
Notes
Notes:
svn path=/head/; revision=347536
Diffstat (limited to 'x11-wm/windowmaker')
-rw-r--r-- | x11-wm/windowmaker/Makefile | 2 | ||||
-rw-r--r-- | x11-wm/windowmaker/files/patch-src-osdep_bsd.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/x11-wm/windowmaker/Makefile b/x11-wm/windowmaker/Makefile index 8c9d70627ce5..228fe964c759 100644 --- a/x11-wm/windowmaker/Makefile +++ b/x11-wm/windowmaker/Makefile @@ -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 diff --git a/x11-wm/windowmaker/files/patch-src-osdep_bsd.c b/x11-wm/windowmaker/files/patch-src-osdep_bsd.c new file mode 100644 index 000000000000..d1188e250ee9 --- /dev/null +++ b/x11-wm/windowmaker/files/patch-src-osdep_bsd.c @@ -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) |