pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/nullmailer nullmailer: avoid uninitialized memory...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b9eeba1d8016
branches:  trunk
changeset: 374771:b9eeba1d8016
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Sun Jan 28 23:31:16 2018 +0000

description:
nullmailer: avoid uninitialized memory, same fix as upstream

diffstat:

 mail/nullmailer/Makefile                      |  3 ++-
 mail/nullmailer/distinfo                      |  4 ++--
 mail/nullmailer/patches/patch-src_sendmail.cc |  7 +++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (55 lines):

diff -r 49457088be1e -r b9eeba1d8016 mail/nullmailer/Makefile
--- a/mail/nullmailer/Makefile  Sun Jan 28 23:21:29 2018 +0000
+++ b/mail/nullmailer/Makefile  Sun Jan 28 23:31:16 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.41 2017/10/28 04:51:06 schmonz Exp $
+# $NetBSD: Makefile,v 1.42 2018/01/28 23:31:16 wiedi Exp $
 
 DISTNAME=              nullmailer-2.1
+PKGREVISION=           1
 CATEGORIES=            mail
 MASTER_SITES=          ${HOMEPAGE:Q}
 
diff -r 49457088be1e -r b9eeba1d8016 mail/nullmailer/distinfo
--- a/mail/nullmailer/distinfo  Sun Jan 28 23:21:29 2018 +0000
+++ b/mail/nullmailer/distinfo  Sun Jan 28 23:31:16 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2017/10/28 04:51:06 schmonz Exp $
+$NetBSD: distinfo,v 1.20 2018/01/28 23:31:16 wiedi Exp $
 
 SHA1 (nullmailer-2.1.tar.gz) = 79322908cb242a80f72f8e2888ac870f2f311bcf
 RMD160 (nullmailer-2.1.tar.gz) = 834f7d5c8ee387c5d7b15663f0aa00c7f04f795f
@@ -9,7 +9,7 @@
 SHA1 (patch-doc_nullmailer-send.8) = 1ab434a1a3293c11db87781217a1694798ba6f23
 SHA1 (patch-lib_fdbuf_fdobuf.h) = 716854a1421ef2021f5383f3e63bd19ece900a23
 SHA1 (patch-lib_selfpipe.cc) = a5d7e24bfbf3fa823cbd4e696a1c6488586e3512
-SHA1 (patch-src_sendmail.cc) = 442e2324e082cd6d36057ec1d13ebe5a74a66b77
+SHA1 (patch-src_sendmail.cc) = 0b5414d5d7fe8c152b08bd30561aa224a8f78bd3
 SHA1 (patch-test_Makefile.am) = 744771972ca47f154fbc4d8a59dc0fc9b3c616f8
 SHA1 (patch-test_Makefile.in) = 5250f65a0758a9442aa6aec076b67af18ea2444c
 SHA1 (patch-test_functions.in) = 5c8d10eb57fd1fda2bd904b85a0895104525a7a4
diff -r 49457088be1e -r b9eeba1d8016 mail/nullmailer/patches/patch-src_sendmail.cc
--- a/mail/nullmailer/patches/patch-src_sendmail.cc     Sun Jan 28 23:21:29 2018 +0000
+++ b/mail/nullmailer/patches/patch-src_sendmail.cc     Sun Jan 28 23:31:16 2018 +0000
@@ -1,18 +1,17 @@
-$NetBSD: patch-src_sendmail.cc,v 1.1 2017/10/28 04:51:06 schmonz Exp $
+$NetBSD: patch-src_sendmail.cc,v 1.2 2018/01/28 23:31:16 wiedi Exp $
 
 Avoid "variable-sized object may not be initialized".
 
 --- src/sendmail.cc.orig       2017-10-25 23:36:35.000000000 +0000
 +++ src/sendmail.cc
-@@ -111,9 +111,10 @@ int do_exec(const char* program, const c
+@@ -111,8 +111,9 @@ int do_exec(const char* program, const c
  
  int cli_main(int argc, char* argv[])
  {
 -  const char* extra_args[argc + 5] = {0};
 +  const char* extra_args[argc + 5];
    int extra_argc = 1;
++  memset(extra_args, 0, sizeof extra_args);
  
-+  extra_args[0] = 0;
    switch (o_mode) {
    case mode_smtp:
-     return do_exec("nullmailer-smtpd", extra_args);



Home | Main Index | Thread Index | Old Index