pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/kannel va_list should not be dereferenced.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/956486382728
branches:  trunk
changeset: 649098:956486382728
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 31 15:56:45 2015 +0000

description:
va_list should not be dereferenced.

diffstat:

 www/kannel/distinfo                  |   3 ++-
 www/kannel/patches/patch-gwlib_log.c |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 991ef1fe818e -r 956486382728 www/kannel/distinfo
--- a/www/kannel/distinfo       Tue Mar 31 15:56:29 2015 +0000
+++ b/www/kannel/distinfo       Tue Mar 31 15:56:45 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/01/10 18:33:16 joerg Exp $
+$NetBSD: distinfo,v 1.10 2015/03/31 15:56:45 joerg Exp $
 
 SHA1 (gateway-1.4.0.tar.bz2) = 095de9f42541d74cff30bba898383c84fcc629c3
 RMD160 (gateway-1.4.0.tar.bz2) = f38cffdc43574d706acad5f2d60f80f70512312d
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = b629c1460039c47baba017c107baf4199a517341
 SHA1 (patch-ab) = 87aed599d51f03f57bb1ddb058afe34f18802d23
 SHA1 (patch-ac) = 62def56946395a1fe7106c6f1f5d0e12e415f60a
+SHA1 (patch-gwlib_log.c) = aa2d216b343b8ba1b07fca97a0f71dd9eac28b8d
diff -r 991ef1fe818e -r 956486382728 www/kannel/patches/patch-gwlib_log.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kannel/patches/patch-gwlib_log.c      Tue Mar 31 15:56:45 2015 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-gwlib_log.c,v 1.1 2015/03/31 15:56:45 joerg Exp $
+
+--- gwlib/log.c.orig   2015-03-29 10:51:48.000000000 +0000
++++ gwlib/log.c
+@@ -432,13 +432,7 @@ static void PRINTFLIKE(1,0) kannel_syslo
+     int translog;
+     
+     if (level >= sysloglevel && dosyslog) {
+-      if (args == NULL) {
+-          strncpy(buf, format, sizeof(buf));
+-          buf[sizeof(buf) - 1] = '\0';
+-      } else {
+-          vsnprintf(buf, sizeof(buf), format, args);
+-          /* XXX vsnprint not 100% portable */
+-      }
++      vsnprintf(buf, sizeof(buf), format, args);
+ 
+       switch(level) {
+       case GW_DEBUG:



Home | Main Index | Thread Index | Old Index