summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/igmpproxy/Makefile3
-rw-r--r--net/igmpproxy/files/patch-fix-buffer-overflow_igmp.c22
-rw-r--r--net/igmpproxy/files/patch-src_rttable.c33
-rw-r--r--net/ip2location/Makefile2
-rw-r--r--net/ip2location/distinfo6
-rw-r--r--net/ip2proxy/Makefile4
-rw-r--r--net/ip2proxy/distinfo6
-rw-r--r--net/samba422/pkg-plist2
-rw-r--r--net/samba423/pkg-plist2
9 files changed, 67 insertions, 13 deletions
diff --git a/net/igmpproxy/Makefile b/net/igmpproxy/Makefile
index d11554273288..5375fea7dff7 100644
--- a/net/igmpproxy/Makefile
+++ b/net/igmpproxy/Makefile
@@ -1,6 +1,6 @@
PORTNAME= igmpproxy
DISTVERSION= 0.4
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= net
@@ -15,7 +15,6 @@ USES= autoreconf
USE_GITHUB= yes
GH_ACCOUNT= pali
GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
USE_RC_SUBR= igmpproxy
post-install:
diff --git a/net/igmpproxy/files/patch-fix-buffer-overflow_igmp.c b/net/igmpproxy/files/patch-fix-buffer-overflow_igmp.c
new file mode 100644
index 000000000000..47f7a0b5866b
--- /dev/null
+++ b/net/igmpproxy/files/patch-fix-buffer-overflow_igmp.c
@@ -0,0 +1,22 @@
+From 2b30c36e6ab5b21defb76ec6458ab7687984484c Mon Sep 17 00:00:00 2001
+From: Jan Klemkow <j.klemkow@wemelug.de>
+Date: Thu, 17 Apr 2025 19:02:16 +0200
+Subject: [PATCH] Fix Buffer Overflow #97
+
+---
+ src/igmp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/igmp.c b/src/igmp.c
+index a80c4e5..838694c 100644
+--- src/igmp.c
++++ src/igmp.c
+@@ -94,7 +94,7 @@ static const char *igmpPacketKind(unsigned int type, unsigned int code) {
+ case IGMP_V2_LEAVE_GROUP: return "Leave message ";
+
+ default:
+- sprintf(unknown, "unk: 0x%02x/0x%02x ", type, code);
++ snprintf(unknown, sizeof unknown, "unk: 0x%02x/0x%02x ", type, code);
+ return unknown;
+ }
+ }
diff --git a/net/igmpproxy/files/patch-src_rttable.c b/net/igmpproxy/files/patch-src_rttable.c
new file mode 100644
index 000000000000..14cdf8b868fe
--- /dev/null
+++ b/net/igmpproxy/files/patch-src_rttable.c
@@ -0,0 +1,33 @@
+From e49fb373da9044dfb00ffbcd3e1f68ca7107af75 Mon Sep 17 00:00:00 2001
+From: Jan Klemkow <j.klemkow@wemelug.de>
+Date: Thu, 17 Apr 2025 18:53:18 +0200
+Subject: [PATCH] Fix use after free(3) in internAgeRoute().
+
+removeRoute(croute) calls free(croute). Thus, the zeroing of
+croute->ageVifBits afterwards is unnecessary, illegal and an
+undefined behavior.
+---
+ src/rttable.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/rttable.c b/src/rttable.c
+index bcafa3fe..04e24f3b 100644
+--- src/rttable.c
++++ src/rttable.c
+@@ -704,13 +704,15 @@ int internAgeRoute(struct RouteTable* croute) {
+
+ // No activity was registered within the timelimit, so remove the route.
+ removeRoute(croute);
++ croute = NULL;
+ }
+ // Tell that the route was updated...
+ result = 1;
+ }
+
+ // The aging vif bits must be reset for each round...
+- BIT_ZERO(croute->ageVifBits);
++ if (croute != NULL)
++ BIT_ZERO(croute->ageVifBits);
+
+ return result;
+ }
diff --git a/net/ip2location/Makefile b/net/ip2location/Makefile
index d9694e38240d..b3281ad63284 100644
--- a/net/ip2location/Makefile
+++ b/net/ip2location/Makefile
@@ -1,5 +1,5 @@
PORTNAME= ip2location
-PORTVERSION= 8.6.1
+PORTVERSION= 8.7.0
CATEGORIES= net
MAINTAINER= zi@FreeBSD.org
diff --git a/net/ip2location/distinfo b/net/ip2location/distinfo
index 13adaa9aae97..940458c6cb81 100644
--- a/net/ip2location/distinfo
+++ b/net/ip2location/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1698946866
-SHA256 (chrislim2888-IP2Location-C-Library-8.6.1_GH0.tar.gz) = c4825bdf7d5753ab83c323ae85f7801d2308046fbdfcd2761c16c856765165b4
-SIZE (chrislim2888-IP2Location-C-Library-8.6.1_GH0.tar.gz) = 3564380
+TIMESTAMP = 1766432959
+SHA256 (chrislim2888-IP2Location-C-Library-8.7.0_GH0.tar.gz) = 0c196016c281f685cb428011d4703360bca8a805f4efa777eb1bd29c8295d196
+SIZE (chrislim2888-IP2Location-C-Library-8.7.0_GH0.tar.gz) = 3591904
diff --git a/net/ip2proxy/Makefile b/net/ip2proxy/Makefile
index 74d0779c43eb..6f30994589ff 100644
--- a/net/ip2proxy/Makefile
+++ b/net/ip2proxy/Makefile
@@ -1,5 +1,5 @@
PORTNAME= ip2proxy
-PORTVERSION= 20250204
+PORTVERSION= 20251118
CATEGORIES= net
MAINTAINER= zi@FreeBSD.org
@@ -13,7 +13,7 @@ USES= autoreconf libtool
USE_GITHUB= yes
GH_ACCOUNT= ip2location
GH_PROJECT= ${PORTNAME}-c
-GH_TAGNAME= 75beea9
+GH_TAGNAME= 7966220
HAS_CONFIGURE= yes
USE_LDCONFIG= yes
diff --git a/net/ip2proxy/distinfo b/net/ip2proxy/distinfo
index f05ee42904f8..b069f1ef06ae 100644
--- a/net/ip2proxy/distinfo
+++ b/net/ip2proxy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1738698515
-SHA256 (ip2location-ip2proxy-c-20250204-75beea9_GH0.tar.gz) = 28cac5d63a0c2f099c09015bff8e2fde68815dcd10dade1ce1b15d97bf102470
-SIZE (ip2location-ip2proxy-c-20250204-75beea9_GH0.tar.gz) = 7772028
+TIMESTAMP = 1766433117
+SHA256 (ip2location-ip2proxy-c-20251118-7966220_GH0.tar.gz) = ea0007c46b6a6b873652f6260556abf45090cb5fa0621a008171f4cb78f336ec
+SIZE (ip2location-ip2proxy-c-20251118-7966220_GH0.tar.gz) = 450596
diff --git a/net/samba422/pkg-plist b/net/samba422/pkg-plist
index 5898fca60c80..7a3687e03de6 100644
--- a/net/samba422/pkg-plist
+++ b/net/samba422/pkg-plist
@@ -467,7 +467,7 @@ bin/ldbsearch
%%BUNDLED_TALLOC%%%%PYTHON3%%%%PYTHON_SITELIBDIR%%/talloc%%PYTHON_TAG%%.so
%%BUNDLED_TALLOC%%%%PYTHON3%%%%SAMBA4_LIBDIR%%/private/libpytalloc-util%%PYTHON_TAG%%-private-samba.so
%%BUNDLED_TALLOC%%%%SAMBA4_LIBDIR%%/private/libtalloc-private-samba.so
-%%BUNDLED_TALLOC%%share/man/man3/samba-talloc.3.gz
+%%MANPAGES%%%%BUNDLED_TALLOC%%share/man/man3/samba-talloc.3.gz
%%BUNDLED_TDB%%%%PYTHON3%%%%PYTHON_SITELIBDIR%%/_tdb_text.py
%%BUNDLED_TDB%%%%PYTHON3%%%%PYTHON_SITELIBDIR%%/tdb%%PYTHON_TAG%%.so
%%BUNDLED_TDB%%bin/tdbbackup
diff --git a/net/samba423/pkg-plist b/net/samba423/pkg-plist
index 2d28c967a5d5..b6179fa83c46 100644
--- a/net/samba423/pkg-plist
+++ b/net/samba423/pkg-plist
@@ -467,7 +467,7 @@ bin/ldbsearch
%%BUNDLED_TALLOC%%%%PYTHON3%%%%PYTHON_SITELIBDIR%%/talloc%%PYTHON_TAG%%.so
%%BUNDLED_TALLOC%%%%PYTHON3%%%%SAMBA4_LIBDIR%%/private/libpytalloc-util%%PYTHON_TAG%%-private-samba.so
%%BUNDLED_TALLOC%%%%SAMBA4_LIBDIR%%/private/libtalloc-private-samba.so
-%%BUNDLED_TALLOC%%share/man/man3/samba-talloc.3.gz
+%%MANPAGES%%%%BUNDLED_TALLOC%%share/man/man3/samba-talloc.3.gz
%%BUNDLED_TDB%%%%PYTHON3%%%%PYTHON_SITELIBDIR%%/_tdb_text.py
%%BUNDLED_TDB%%%%PYTHON3%%%%PYTHON_SITELIBDIR%%/tdb%%PYTHON_TAG%%.so
%%BUNDLED_TDB%%bin/tdbbackup