diff options
author | bouyer <bouyer> | 2005-11-03 20:06:41 +0000 |
---|---|---|
committer | bouyer <bouyer> | 2005-11-03 20:06:41 +0000 |
commit | 9e6d52915e57804d7ef9aaa9bc8cd68f46303962 (patch) | |
tree | 1c704360086ce3c983ccd85edd61c2ce8cd7db6b | |
parent | f24a826696a7ac0a28af7412a7179613b239d478 (diff) | |
download | pkgsrc-9e6d52915e57804d7ef9aaa9bc8cd68f46303962.tar.gz |
Add patch to fix a format string vulnerability in vmps_log():
http://www.security.nnov.ru/Jdocument889.html
Patch from me, reviewed by Adrian Portelli
Bump pkgrevision.
-rw-r--r-- | net/openvmps/Makefile | 3 | ||||
-rw-r--r-- | net/openvmps/distinfo | 3 | ||||
-rw-r--r-- | net/openvmps/patches/patch-ad | 18 |
3 files changed, 22 insertions, 2 deletions
diff --git a/net/openvmps/Makefile b/net/openvmps/Makefile index 7f6c778e627..c3de8a89097 100644 --- a/net/openvmps/Makefile +++ b/net/openvmps/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ +# $NetBSD: Makefile,v 1.2 2005/11/03 20:06:41 bouyer Exp $ DISTNAME= vmpsd-1.3 PKGNAME= openvmps-1.3 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vmps/} diff --git a/net/openvmps/distinfo b/net/openvmps/distinfo index 24fbeb1bc78..6af53c55712 100644 --- a/net/openvmps/distinfo +++ b/net/openvmps/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/06/06 16:07:43 bouyer Exp $ +$NetBSD: distinfo,v 1.2 2005/11/03 20:06:41 bouyer Exp $ SHA1 (vmpsd-1.3.tar.gz) = 39a8f925191690f209d9f1609321f20360810cf1 RMD160 (vmpsd-1.3.tar.gz) = 1185fbd654d5d0e939fdfa08149d1ebcb3fc0ef2 @@ -6,3 +6,4 @@ Size (vmpsd-1.3.tar.gz) = 95202 bytes SHA1 (patch-aa) = 4bead41f3def8d179af073ac883d77d6c1301dec SHA1 (patch-ab) = a30282863432d654669643103de3711da6d53620 SHA1 (patch-ac) = c5871b991808ca33d9ad0a7ee89ea1f1a4b0e803 +SHA1 (patch-ad) = 7fa3bf093f35264b1b10003fb3747fd736d12c5d diff --git a/net/openvmps/patches/patch-ad b/net/openvmps/patches/patch-ad new file mode 100644 index 00000000000..05613408aae --- /dev/null +++ b/net/openvmps/patches/patch-ad @@ -0,0 +1,18 @@ +$NetBSD: patch-ad,v 1.1 2005/11/03 20:06:41 bouyer Exp $ + +--- log.c.orig 2005-11-02 23:52:09.000000000 +0100 ++++ log.c 2005-11-02 23:52:32.000000000 +0100 +@@ -27,11 +27,10 @@ + log_opened = 1; + } + vsnprintf(str, 256, fmt, ap); +- syslog(LOG_INFO, str); ++ syslog(LOG_INFO, "%s", str); + + if ( debug ) { +- fprintf(stderr,str); +- fprintf(stderr,"\n"); ++ fprintf(stderr,"%s\n", str); + } + + va_end(ap); |