pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/socat net/socat: Patch ctype(3) abuse.
details: https://anonhg.NetBSD.org/pkgsrc/rev/cbaba26f4084
branches: trunk
changeset: 376181:cbaba26f4084
user: riastradh <riastradh%pkgsrc.org@localhost>
date: Sun Apr 03 10:29:41 2022 +0000
description:
net/socat: Patch ctype(3) abuse.
diffstat:
net/socat/Makefile | 3 ++-
net/socat/distinfo | 5 ++++-
net/socat/patches/patch-sysutils.c | 33 +++++++++++++++++++++++++++++++++
net/socat/patches/patch-xio-openssl.c | 15 +++++++++++++++
net/socat/patches/patch-xio-socket.c | 15 +++++++++++++++
5 files changed, 69 insertions(+), 2 deletions(-)
diffs (103 lines):
diff -r a54d7e1c0d52 -r cbaba26f4084 net/socat/Makefile
--- a/net/socat/Makefile Sun Apr 03 10:10:10 2022 +0000
+++ b/net/socat/Makefile Sun Apr 03 10:29:41 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2021/01/10 22:07:28 otis Exp $
+# $NetBSD: Makefile,v 1.47 2022/04/03 10:29:41 riastradh Exp $
DISTNAME= socat-1.7.4.1
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.dest-unreach.org/socat/download/
diff -r a54d7e1c0d52 -r cbaba26f4084 net/socat/distinfo
--- a/net/socat/distinfo Sun Apr 03 10:10:10 2022 +0000
+++ b/net/socat/distinfo Sun Apr 03 10:29:41 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2021/10/26 11:06:57 nia Exp $
+$NetBSD: distinfo,v 1.34 2022/04/03 10:29:41 riastradh Exp $
BLAKE2s (socat-1.7.4.1.tar.gz) = 40fc322f89ca333a35c77cb25d71512404bfd116d36aecedb1773201f37b5d2e
SHA512 (socat-1.7.4.1.tar.gz) = e43c8b23a841aea5ecc3ac324185ee4ada552a8284ec41b99245def2d8b493bca9caea1af6f646f434a7eda67a1dd71e4e037eea65fce0444840236eadb126a6
@@ -7,3 +7,6 @@
SHA1 (patch-configure) = ba75b5f192c1359220bea019fa50603b2b5c7c3a
SHA1 (patch-fdname.c) = c59bd921989e4d84375764fdd707b7cd6c49ceba
SHA1 (patch-sysincludes.h) = d48307ade6bc82bea946920e7336bc5329714c08
+SHA1 (patch-sysutils.c) = 03ae8b81f0277d8dbbdf82e5b215d7099b25cc36
+SHA1 (patch-xio-openssl.c) = 26745eff5eab745ac45eb04b2243b0bc4bfd6b8d
+SHA1 (patch-xio-socket.c) = f36e6ccc3a659ec9d6d7ce4e470d8b874fe8f6ff
diff -r a54d7e1c0d52 -r cbaba26f4084 net/socat/patches/patch-sysutils.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socat/patches/patch-sysutils.c Sun Apr 03 10:29:41 2022 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-sysutils.c,v 1.1 2022/04/03 10:29:41 riastradh Exp $
+
+Fix ctype(3) abuse.
+
+--- sysutils.c.orig 2021-01-03 18:23:22.000000000 +0000
++++ sysutils.c
+@@ -745,7 +745,7 @@ int xiosetenv(const char *varname, const
+ progname = diag_get_string('p');
+ envname[0] = '\0'; strncat(envname, progname, XIO_ENVNAMELEN-1);
+ l = strlen(envname);
+- for (i = 0; i < l; ++i) envname[i] = toupper(envname[i]);
++ for (i = 0; i < l; ++i) envname[i] = toupper((unsigned char)envname[i]);
+ strncat(envname+l, "_", XIO_ENVNAMELEN-l-1);
+ l += 1;
+ strncat(envname+l, varname, XIO_ENVNAMELEN-l-1);
+@@ -771,7 +771,7 @@ int xiosetenv2(const char *varname, cons
+ l += 1;
+ strncat(envname+l, varname2, XIO_ENVNAMELEN-l-1);
+ l += strlen(envname+l);
+- for (i = 0; i < l; ++i) envname[i] = toupper(envname[i]);
++ for (i = 0; i < l; ++i) envname[i] = toupper((unsigned char)envname[i]);
+ return _xiosetenv(envname, value, overwrite, sep);
+ # undef XIO_ENVNAMELEN
+ }
+@@ -799,7 +799,7 @@ int xiosetenv3(const char *varname, cons
+ l += 1;
+ strncat(envname+l, varname3, XIO_ENVNAMELEN-l-1);
+ l += strlen(envname+l);
+- for (i = 0; i < l; ++i) envname[i] = toupper(envname[i]);
++ for (i = 0; i < l; ++i) envname[i] = toupper((unsigned char)envname[i]);
+ return _xiosetenv(envname, value, overwrite, sep);
+ # undef XIO_ENVNAMELEN
+ }
diff -r a54d7e1c0d52 -r cbaba26f4084 net/socat/patches/patch-xio-openssl.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socat/patches/patch-xio-openssl.c Sun Apr 03 10:29:41 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xio-openssl.c,v 1.1 2022/04/03 10:29:41 riastradh Exp $
+
+Fix ctype(3) abuse.
+
+--- xio-openssl.c.orig 2021-01-03 18:23:22.000000000 +0000
++++ xio-openssl.c
+@@ -1505,7 +1505,7 @@ static int openssl_delete_cert_info(void
+ progname = diag_get_string('p');
+ envprefix[0] = '\0'; strncat(envprefix, progname, XIO_ENVNAMELEN-1);
+ l = strlen(envprefix);
+- for (i = 0; i < l; ++i) envprefix[i] = toupper(envprefix[i]);
++ for (i = 0; i < l; ++i) envprefix[i] = toupper((unsigned char)envprefix[i]);
+ strncat(envprefix+l, "_OPENSSL_", XIO_ENVNAMELEN-l-1);
+
+ #if HAVE_VAR_ENVIRON
diff -r a54d7e1c0d52 -r cbaba26f4084 net/socat/patches/patch-xio-socket.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socat/patches/patch-xio-socket.c Sun Apr 03 10:29:41 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xio-socket.c,v 1.1 2022/04/03 10:29:41 riastradh Exp $
+
+Fix ctype(3) abuse.
+
+--- xio-socket.c.orig 2021-01-03 18:23:22.000000000 +0000
++++ xio-socket.c
+@@ -1595,7 +1595,7 @@ int retropt_socket_pf(struct opt *opts,
+ char *pfname;
+
+ if (retropt_string(opts, OPT_PROTOCOL_FAMILY, &pfname) >= 0) {
+- if (isdigit(pfname[0])) {
++ if (isdigit((unsigned char)pfname[0])) {
+ *pf = strtoul(pfname, NULL /*!*/, 0);
+ #if WITH_IP4
+ } else if (!strcasecmp("inet", pfname) ||
Home |
Main Index |
Thread Index |
Old Index