diff options
author | maya <maya@pkgsrc.org> | 2018-01-26 10:52:04 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2018-01-26 10:52:04 +0000 |
commit | 4d1a628c1766190b2ad454ead3933db3e7549738 (patch) | |
tree | bca993c8c41342585627382c64c107649889c73b /net/packit/patches/patch-src_utils.c | |
parent | 054111ec94f7c2e53a5f2f9019532539067a7969 (diff) | |
download | pkgsrc-4d1a628c1766190b2ad454ead3933db3e7549738.tar.gz |
packit: don't overflow a buffer. now runs with SSP/FORTIFY.
(this is already fixed in an alternative upstream)
++PKGREVISION
Diffstat (limited to 'net/packit/patches/patch-src_utils.c')
-rw-r--r-- | net/packit/patches/patch-src_utils.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/packit/patches/patch-src_utils.c b/net/packit/patches/patch-src_utils.c new file mode 100644 index 00000000000..7bd2c7357f3 --- /dev/null +++ b/net/packit/patches/patch-src_utils.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_utils.c,v 1.1 2018/01/26 10:52:04 maya Exp $ + +Don't overflow a buffer. + +--- src/utils.c.orig 2004-04-14 01:48:17.000000000 +0000 ++++ src/utils.c +@@ -137,7 +137,7 @@ print_separator(int bnl, int anl, u_int8 + #endif + + va_start(va, msgp); +- vsnprintf(msg, 256, msgp, va); ++ vsnprintf(msg, 255, msgp, va); + + msg_len = strlen(msg); + |