* [gentoo-commits] gentoo-x86 commit in x11-wm/windowmaker/files: windowmaker-0.95.5-bsd_crash.patch
@ 2013-12-06 9:50 Bernard Cafarelli (voyageur)
0 siblings, 0 replies; only message in thread
From: Bernard Cafarelli (voyageur) @ 2013-12-06 9:50 UTC (permalink / raw
To: gentoo-commits
voyageur 13/12/06 09:50:17
Added: windowmaker-0.95.5-bsd_crash.patch
Log:
Fix crash on BSD, thanks Yuta SATOH <nigoro.gentoo@0x100.com> in bug #493124
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C74525F2)
Revision Changes Path
1.1 x11-wm/windowmaker/files/windowmaker-0.95.5-bsd_crash.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/windowmaker/files/windowmaker-0.95.5-bsd_crash.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/windowmaker/files/windowmaker-0.95.5-bsd_crash.patch?rev=1.1&content-type=text/plain
Index: windowmaker-0.95.5-bsd_crash.patch
===================================================================
From: François Tigeot <ftigeot@wolfpond.org>
Date: Sat, 21 Sep 2013 10:34:51 +0000 (+0200)
Subject: osdep_bsd.c: Fix a typo causing memory to be overwritten
X-Git-Url: http://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/38e088314a2a4b7f8031f50eb546c22e5024bdf4
osdep_bsd.c: Fix a typo causing memory to be overwritten
* When compiled on DragonFly+gcc 4.7.3, this out of bounds array element
initialization causes an important variable to be overwritten and a
subsequent WindowMaker crash
* It was sheer luck other compilers/environments didn't exhibit any obvious
issue so far
---
diff --git a/src/osdep_bsd.c b/src/osdep_bsd.c
index 3393240..ad504ad 100644
--- a/src/osdep_bsd.c
+++ b/src/osdep_bsd.c
@@ -86,7 +86,7 @@ Bool GetCommandForPid(int pid, char ***argv, int *argc)
mib[0] = CTL_KERN;
mib[1] = KERN_ARGMAX;
mib[2] = 0;
- mib[4] = 0;
+ mib[3] = 0;
count = sizeof(argmax);
if (sysctl(mib, 2, &argmax, &count, NULL, 0) == -1)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-06 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 9:50 [gentoo-commits] gentoo-x86 commit in x11-wm/windowmaker/files: windowmaker-0.95.5-bsd_crash.patch Bernard Cafarelli (voyageur)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox