pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/delegate
Module Name: pkgsrc
Committed By: rillig
Date: Sun May 3 17:22:50 UTC 2020
Modified Files:
pkgsrc/net/delegate: Makefile
Log Message:
net/delegate: fix potential endless loop in CGI part
Not reported upstream since the homepage is not reachable.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pkgsrc/net/delegate/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/delegate/Makefile
diff -u pkgsrc/net/delegate/Makefile:1.46 pkgsrc/net/delegate/Makefile:1.47
--- pkgsrc/net/delegate/Makefile:1.46 Sun Nov 3 11:45:33 2019
+++ pkgsrc/net/delegate/Makefile Sun May 3 17:22:50 2020
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.46 2019/11/03 11:45:33 rillig Exp $
+# $NetBSD: Makefile,v 1.47 2020/05/03 17:22:50 rillig Exp $
DISTNAME= delegate9.9.1
PKGNAME= delegate-9.9.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.delegate.org/anonftp/DeleGate/
MASTER_SITES+= ftp://ftp.u-aizu.ac.jp/pub/net/DeleGate/delegate.org/
@@ -13,6 +13,18 @@ COMMENT= General purpose TCP/IP proxy sy
MAKE_JOBS_SAFE= no
+# several usages of array[char]: cgi.c was dangerous, see below;
+# the other uses are all safe as of version 9.9.1.
+BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
+
+# Prevent undefined behavior when there are more than 127 environment
+# variables, in which case argv and the rest of the stack would be
+# interpreted as environment variables.
+SUBST_CLASSES+= char
+SUBST_STAGE.char= pre-configure
+SUBST_FILES.char= src/cgi.c
+SUBST_SED.char= -e 's|char ei;|int ei;|'
+
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= DELEGATE_MANAGER
Home |
Main Index |
Thread Index |
Old Index