[PATCH 3/5] wmfsm: Lengthen the buffer for mount options to decrease the likelihood of a stack buffer overflow.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 wmfsm/wmfsm/wmfsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wmfsm/wmfsm/wmfsm.c b/wmfsm/wmfsm/wmfsm.c
index 46c5395..3032b76 100644
--- a/wmfsm/wmfsm/wmfsm.c
+++ b/wmfsm/wmfsm/wmfsm.c
@@ -513,7 +513,7 @@ readFileSystems()
 #else /* __OpenBSD__ || __FreeBSD__ */
 
 	FILE *fp;
-	char mountPoint[255], dummy[255], fstype[255], options[255];
+	char mountPoint[255], dummy[255], fstype[255], options[512];
 
 #if defined(SunOS)
 	/* Solaris uses /etc/mnttab */
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.