pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/conserver/patches



Module Name:    pkgsrc
Committed By:   hauke
Date:           Mon Sep 11 14:59:46 UTC 2017

Added Files:
        pkgsrc/comms/conserver/patches: patch-conserver_util.c

Log Message:
Built with gcc 5.4 on netbsd-8, conserver terminates because of a
buffer overflow in StrTime(), when it tries to stuff a 25 char string
into a 25 byte buffer.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/conserver/patches/patch-conserver_util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/comms/conserver/patches/patch-conserver_util.c
diff -u /dev/null pkgsrc/comms/conserver/patches/patch-conserver_util.c:1.1
--- /dev/null   Mon Sep 11 14:59:46 2017
+++ pkgsrc/comms/conserver/patches/patch-conserver_util.c       Mon Sep 11 14:59:45 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-conserver_util.c,v 1.1 2017/09/11 14:59:45 hauke Exp $
+
+Built with gcc 5.4 on netbsd-8, conserver terminates because of a
+buffer overflow in StrTime(), when it tries to stuff a 25 char string
+into a 25 byte buffer.
+
+--- conserver/util.c.orig      2003-04-06 12:29:48.000000000 +0000
++++ conserver/util.c
+@@ -77,7 +77,7 @@ StrTime(ltime)
+     time_t *ltime;
+ #endif
+ {
+-    static char curtime[25];
++    static char curtime[63];
+     time_t tyme;
+ 
+     tyme = time((time_t *) 0);



Home | Main Index | Thread Index | Old Index