<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0f7f7a138e737e1a1d99d5e55b3e40ead437a12f">https://github.com/macports/macports-ports/commit/0f7f7a138e737e1a1d99d5e55b3e40ead437a12f</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 0f7f7a1 rcs: fix snprintf crash on High Sierra
</span>0f7f7a1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0f7f7a138e737e1a1d99d5e55b3e40ead437a12f
</span>Author: Kurt Hindenburg <khindenburg@macports.org>
AuthorDate: Sun Oct 15 16:09:50 2017 -0400
<span style='display:block; white-space:pre;color:#404040;'> rcs: fix snprintf crash on High Sierra
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes https://trac.macports.org/ticket/55099
</span>---
devel/rcs/Portfile | 4 +++-
devel/rcs/files/secure_snprintf.patch | 15 +++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/rcs/Portfile b/devel/rcs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3af3479..8e82281 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/rcs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/rcs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name rcs
version 5.9.4
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel
platforms darwin
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,7 +27,8 @@ use_xz yes
</span> checksums rmd160 90a62da2391d6fd3d36db0f97cdf1ee995ee4917 \
sha256 063d5a0d7da1821754b80c639cdae2c82b535c8ff4131f75dc7bbf0cd63a5dff
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-noreturn.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-noreturn.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ secure_snprintf.patch
</span>
set docdir ${prefix}/share/doc/${name}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/rcs/files/secure_snprintf.patch b/devel/rcs/files/secure_snprintf.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..0dff749
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/rcs/files/secure_snprintf.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+With format string strictness, High Sierra also enforces that %n isn't used
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+in dynamic format strings, but we should just disable its use on darwin in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+general.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/vasnprintf.c.orig 2017-06-22 15:19:15.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/vasnprintf.c 2017-06-22 15:20:20.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4869,7 +4869,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *fbp = dp->conversion;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if USE_SNPRINTF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if !defined(__APPLE__) && !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fbp[1] = '%';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fbp[2] = 'n';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fbp[3] = '\0';
</span></pre><pre style='margin:0'>
</pre>