<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0ab6f3fbcba57b30212f4abe1b32529e44784ae1">https://github.com/macports/macports-ports/commit/0ab6f3fbcba57b30212f4abe1b32529e44784ae1</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 0ab6f3f procmail: avoid using strlcat/strlcpy
</span>0ab6f3f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0ab6f3fbcba57b30212f4abe1b32529e44784ae1
</span>Author: Carlos Sánchez de La Lama <csanchezdll@gmail.com>
AuthorDate: Fri Jun 5 13:23:41 2020 +0200
<span style='display:block; white-space:pre;color:#404040;'> procmail: avoid using strlcat/strlcpy
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * strlcpy in macOS has undefined behaviour if strings overlap, which causes
</span><span style='display:block; white-space:pre;color:#404040;'> backtick substitution to fail.
</span><span style='display:block; white-space:pre;color:#404040;'> * this patch foces to use a substitute function provided in procmail source
</span><span style='display:block; white-space:pre;color:#404040;'> for systems where strlcat/strlcpy are not available.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/46623
</span>---
mail/procmail/Portfile | 5 +++--
mail/procmail/files/patch-avoid-strlcat-strlcpy.diff | 10 ++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/procmail/Portfile b/mail/procmail/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f7c55e3..1caceeb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/procmail/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/procmail/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span>
name procmail
version 3.22
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 8
</span> categories mail
license {Artistic-1 GPL-2+}
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,7 +72,8 @@ patchfiles getline.patch \
</span> patch-CVE-2014-3618.diff \
patch-CVE-2017-16844.diff \
patch-security-fixes.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-src-manconf.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src-manconf.c.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-avoid-strlcat-strlcpy.diff
</span>
post-patch {
reinplace "s%^/\\*\\(#define\[ \t\]*DEF\[S\]*PATH\[ \t\]*\".*\\)\".*$%\\1:${prefix}/bin\"%" ${worksrcpath}/config.h
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/procmail/files/patch-avoid-strlcat-strlcpy.diff b/mail/procmail/files/patch-avoid-strlcat-strlcpy.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c9d7ce3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/procmail/files/patch-avoid-strlcat-strlcpy.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/autoconf.orig 2020-06-05 12:39:18.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/autoconf 2020-06-05 12:39:39.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1081,6 +1081,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ grepfor $func "#define NO$func"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++echo "#define NOstrlcat" >>$ACONF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NOstrerror=no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ grepfor strerror "#define NOstrerror" && NOstrerror=yes
</span></pre><pre style='margin:0'>
</pre>