diff options
author | hrs <hrs@FreeBSD.org> | 2014-03-09 05:23:46 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-03-09 05:23:46 +0800 |
commit | 4d5a3a0a47958ce4b8d5bd4c265045502674f903 (patch) | |
tree | 685cbb35e232ffacbf3f6df84bae9323d5f6d92c /x11-wm | |
parent | d477e7ff785c5e458216806e8891bbcc62ebd758 (diff) | |
download | freebsd-ports-gnome-4d5a3a0a47958ce4b8d5bd4c265045502674f903.tar.gz freebsd-ports-gnome-4d5a3a0a47958ce4b8d5bd4c265045502674f903.tar.zst freebsd-ports-gnome-4d5a3a0a47958ce4b8d5bd4c265045502674f903.zip |
Fix wrong memory access beyond array boundary.
Reported by: Francois Tigeot
PR: ports/182279
Diffstat (limited to 'x11-wm')
-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) |