aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorfoxfair <foxfair@FreeBSD.org>2003-07-18 09:51:24 +0800
committerfoxfair <foxfair@FreeBSD.org>2003-07-18 09:51:24 +0800
commite868acaa1cedfbb68e91eddfb22265296afa931e (patch)
tree0406448acbac57d43a1bd9c7544337e24ce27f90 /security
parent5f86b0c37d3c6ed7d440240c14d96984474398cd (diff)
downloadfreebsd-ports-gnome-e868acaa1cedfbb68e91eddfb22265296afa931e.tar.gz
freebsd-ports-gnome-e868acaa1cedfbb68e91eddfb22265296afa931e.tar.zst
freebsd-ports-gnome-e868acaa1cedfbb68e91eddfb22265296afa931e.zip
PR:
Submitted by: Reviewed by: Approved by: Obtained from: MFC after: Add a patch to fix a u_int_16 overflow after new merged gcc. Submitted by: Pyun YongHyeon <yongari@kt-is.co.kr> Reviewed by: maintainer tested ok by: all current platforms
Diffstat (limited to 'security')
-rw-r--r--security/pf/Makefile2
-rw-r--r--security/pf/files/patch-af19
2 files changed, 20 insertions, 1 deletions
diff --git a/security/pf/Makefile b/security/pf/Makefile
index cbe8f9623a67..9aba498e9c1f 100644
--- a/security/pf/Makefile
+++ b/security/pf/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pf_freebsd
PORTVERSION= 1.0
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= security ipv6
MASTER_SITES= http://pf4freebsd.love2party.net/
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
diff --git a/security/pf/files/patch-af b/security/pf/files/patch-af
new file mode 100644
index 000000000000..9ae4ad0066b7
--- /dev/null
+++ b/security/pf/files/patch-af
@@ -0,0 +1,19 @@
+--- pf/pf_norm.c 3 Jul 2003 02:40:10 -0000 1.2.16.1
++++ pf/pf_norm.c 14 Jul 2003 07:11:17 -0000 1.2.16.2
+@@ -1050,12 +1050,12 @@
+ goto bad;
+ }
+
+- max = fragoff + ip_len;
+ /* Respect maximum length */
+- if (max > IP_MAXPACKET) {
+- DPFPRINTF(("max packet %d\n", max));
++ if (fragoff + ip_len > IP_MAXPACKET) {
++ DPFPRINTF(("max packet %d\n", fragoff + ip_len));
+ goto bad;
+ }
++ max = fragoff + ip_len;
+
+ if ((r->rule_flag & (PFRULE_FRAGCROP|PFRULE_FRAGDROP)) == 0) {
+ /* Fully buffer all of the fragments */
+