diff options
author | adrianp <adrianp@pkgsrc.org> | 2005-05-28 14:15:23 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2005-05-28 14:15:23 +0000 |
commit | 4db1c9e472909c4d026a2ad1d3e42d860ca1c03a (patch) | |
tree | fead614910104b06cca67e6d9bf0635b50e5cc9e /net/tcpdump | |
parent | db33245bcf310ca13668652ad61c601a0798712b (diff) | |
download | pkgsrc-4db1c9e472909c4d026a2ad1d3e42d860ca1c03a.tar.gz |
- Update to nb1 for security issues
- Patches from tcpdump.org CVS tree
Diffstat (limited to 'net/tcpdump')
-rw-r--r-- | net/tcpdump/Makefile | 3 | ||||
-rw-r--r-- | net/tcpdump/distinfo | 6 | ||||
-rw-r--r-- | net/tcpdump/patches/patch-ac | 13 | ||||
-rw-r--r-- | net/tcpdump/patches/patch-ad | 23 | ||||
-rw-r--r-- | net/tcpdump/patches/patch-ae | 14 | ||||
-rw-r--r-- | net/tcpdump/patches/patch-af | 24 |
6 files changed, 81 insertions, 2 deletions
diff --git a/net/tcpdump/Makefile b/net/tcpdump/Makefile index 9c521a8dcd2..baa951d5807 100644 --- a/net/tcpdump/Makefile +++ b/net/tcpdump/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.14 2005/04/11 21:47:00 tv Exp $ +# $NetBSD: Makefile,v 1.15 2005/05/28 14:15:23 adrianp Exp $ DISTNAME= tcpdump-3.8.3 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.tcpdump.org/release/ diff --git a/net/tcpdump/distinfo b/net/tcpdump/distinfo index f3cf554ce98..0eedbb2d0b1 100644 --- a/net/tcpdump/distinfo +++ b/net/tcpdump/distinfo @@ -1,7 +1,11 @@ -$NetBSD: distinfo,v 1.7 2005/03/26 16:40:33 dmcmahill Exp $ +$NetBSD: distinfo,v 1.8 2005/05/28 14:15:23 adrianp Exp $ SHA1 (tcpdump-3.8.3.tar.gz) = 7ae3c29fe843fc23ae89acd8b1b1e513213f6042 RMD160 (tcpdump-3.8.3.tar.gz) = 585c1ad9a93a8329b1d60057dd334e7b1a88097c Size (tcpdump-3.8.3.tar.gz) = 567116 bytes SHA1 (patch-aa) = d70302c6fa68d0d170fa5c22ce0a348bdf0233be SHA1 (patch-ab) = 628f0ecf34a7c9a5c17000b234360f7846c07847 +SHA1 (patch-ac) = 7dd47ee3ebaeba29c78bed66242739f0ded4a7f1 +SHA1 (patch-ad) = 2229b6cf3af0b30bc612e3dca796f01d8e8bae90 +SHA1 (patch-ae) = 9c3b318668c3558a9cee3ce90fe7ac17fd748de5 +SHA1 (patch-af) = c0c0ce4a3a3eda013fea164ed173181b271ad6b1 diff --git a/net/tcpdump/patches/patch-ac b/net/tcpdump/patches/patch-ac new file mode 100644 index 00000000000..1765e75e9e2 --- /dev/null +++ b/net/tcpdump/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2005/05/28 14:15:23 adrianp Exp $ + +--- print-bgp.c.orig 2005-05-06 09:08:17.000000000 +0100 ++++ print-bgp.c +@@ -1216,6 +1216,8 @@ bgp_attr_print(const struct bgp_attr *at + tptr = pptr + len; + break; + } ++ if (advance < 0) /* infinite loop protection */ ++ break; + tptr += advance; + } + break; diff --git a/net/tcpdump/patches/patch-ad b/net/tcpdump/patches/patch-ad new file mode 100644 index 00000000000..acc19ca4364 --- /dev/null +++ b/net/tcpdump/patches/patch-ad @@ -0,0 +1,23 @@ +$NetBSD: patch-ad,v 1.1 2005/05/28 14:15:23 adrianp Exp $ + +--- print-isoclns.c.orig 2005-05-06 09:11:15.000000000 +0100 ++++ print-isoclns.c +@@ -1506,6 +1506,9 @@ static int isis_print (const u_int8_t *p + tlv_type, + tlv_len); + ++ if (tlv_len == 0) /* something is malformed */ ++ break; ++ + /* now check if we have a decoder otherwise do a hexdump at the end*/ + switch (tlv_type) { + case TLV_AREA_ADDR: +@@ -1536,7 +1539,7 @@ static int isis_print (const u_int8_t *p + break; + + case TLV_ISNEIGH_VARLEN: +- if (!TTEST2(*tptr, 1)) ++ if (!TTEST2(*tptr, 1) || tmp < 3) /* min. TLV length */ + goto trunctlv; + lan_alen = *tptr++; /* LAN adress length */ + tmp --; diff --git a/net/tcpdump/patches/patch-ae b/net/tcpdump/patches/patch-ae new file mode 100644 index 00000000000..2087889ff04 --- /dev/null +++ b/net/tcpdump/patches/patch-ae @@ -0,0 +1,14 @@ +$NetBSD: patch-ae,v 1.1 2005/05/28 14:15:23 adrianp Exp $ + +--- print-ldp.c.orig 2005-05-06 09:17:24.000000000 +0100 ++++ print-ldp.c +@@ -326,6 +326,9 @@ ldp_print(register const u_char *pptr, r + EXTRACT_32BITS(&ldp_msg_header->id), + LDP_MASK_U_BIT(EXTRACT_16BITS(&ldp_msg_header->type)) ? "continue processing" : "ignore"); + ++ if (msg_len == 0) /* infinite loop protection */ ++ break; ++ + msg_tptr=tptr+sizeof(struct ldp_msg_header); + msg_tlen=msg_len-sizeof(struct ldp_msg_header)+4; /* Type & Length fields not included */ + diff --git a/net/tcpdump/patches/patch-af b/net/tcpdump/patches/patch-af new file mode 100644 index 00000000000..b1ebead6b4f --- /dev/null +++ b/net/tcpdump/patches/patch-af @@ -0,0 +1,24 @@ +$NetBSD: patch-af,v 1.1 2005/05/28 14:15:23 adrianp Exp $ + +--- print-rsvp.c.orig 2004-03-24 04:01:08.000000000 +0000 ++++ print-rsvp.c +@@ -875,10 +875,17 @@ rsvp_print(register const u_char *pptr, + switch(rsvp_obj_ctype) { + case RSVP_CTYPE_IPV4: + while(obj_tlen >= 4 ) { +- printf("\n\t Subobject Type: %s", ++ printf("\n\t Subobject Type: %s, length %u", + tok2str(rsvp_obj_xro_values, + "Unknown %u", +- RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr))); ++ RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr)), ++ *(obj_tptr+1)); ++ ++ if (*(obj_tptr+1) == 0) { /* prevent infinite loops */ ++ printf("\n\t ERROR: zero length ERO subtype"); ++ break; ++ } ++ + switch(RSVP_OBJ_XRO_MASK_SUBOBJ(*obj_tptr)) { + case RSVP_OBJ_XRO_IPV4: + printf(", %s, %s/%u, Flags: [%s]", |