From owner-svn-ports-all@FreeBSD.ORG Thu Apr 16 11:21:46 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EA0A398; Thu, 16 Apr 2015 11:21:46 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E3E53A39; Thu, 16 Apr 2015 11:21:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3GBLjPP099917; Thu, 16 Apr 2015 11:21:45 GMT (envelope-from garga@FreeBSD.org) Received: (from garga@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3GBLj2N099914; Thu, 16 Apr 2015 11:21:45 GMT (envelope-from garga@FreeBSD.org) Message-Id: <201504161121.t3GBLj2N099914@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: garga set sender to garga@FreeBSD.org using -f From: Renato Botelho Date: Thu, 16 Apr 2015 11:21:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384101 - in head/net/tcpdump: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2015 11:21:46 -0000 Author: garga Date: Thu Apr 16 11:21:44 2015 New Revision: 384101 URL: https://svnweb.freebsd.org/changeset/ports/384101 Log: - Add a patch to fix heap overflow - Bump PORTREVISION Obtained from: https://github.com/the-tcpdump-group/tcpdump/issues/446 MFH: 2015Q2 Security: CVE-2015-3138 Added: head/net/tcpdump/files/ head/net/tcpdump/files/patch-print-wb.c (contents, props changed) Modified: head/net/tcpdump/Makefile Modified: head/net/tcpdump/Makefile ============================================================================== --- head/net/tcpdump/Makefile Thu Apr 16 11:18:41 2015 (r384100) +++ head/net/tcpdump/Makefile Thu Apr 16 11:21:44 2015 (r384101) @@ -3,6 +3,7 @@ PORTNAME= tcpdump PORTVERSION= 4.7.3 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= http://www.tcpdump.org/release/ Added: head/net/tcpdump/files/patch-print-wb.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/tcpdump/files/patch-print-wb.c Thu Apr 16 11:21:44 2015 (r384101) @@ -0,0 +1,41 @@ +From 8aa5edea1b8846740514dee4158b6c707d38fc13 Mon Sep 17 00:00:00 2001 +From: Denis Ovsienko +Date: Wed, 25 Mar 2015 22:35:12 +0000 +Subject: [PATCH] whiteboard: fixup a few reversed tests (GH #446) + +This is a follow-up to commit 3a3ec26. +--- + print-wb.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/print-wb.c b/print-wb.c +index 38c2a67..e10d532 100644 +--- a/print-wb.c ++++ print-wb.c +@@ -202,7 +202,7 @@ wb_id(netdissect_options *ndo, + len -= sizeof(*io) * nid; + io = (struct id_off *)(id + 1); + cp = (char *)(io + nid); +- if (!ND_TTEST2(cp, len)) { ++ if (ND_TTEST2(cp, len)) { + ND_PRINT((ndo, "\"")); + fn_print(ndo, (u_char *)cp, (u_char *)cp + len); + ND_PRINT((ndo, "\"")); +@@ -267,7 +267,7 @@ wb_prep(netdissect_options *ndo, + } + n = EXTRACT_32BITS(&prep->pp_n); + ps = (const struct pgstate *)(prep + 1); +- while (--n >= 0 && !ND_TTEST(*ps)) { ++ while (--n >= 0 && ND_TTEST(*ps)) { + const struct id_off *io, *ie; + char c = '<'; + +@@ -276,7 +276,7 @@ wb_prep(netdissect_options *ndo, + ipaddr_string(ndo, &ps->page.p_sid), + EXTRACT_32BITS(&ps->page.p_uid))); + io = (struct id_off *)(ps + 1); +- for (ie = io + ps->nid; io < ie && !ND_TTEST(*io); ++io) { ++ for (ie = io + ps->nid; io < ie && ND_TTEST(*io); ++io) { + ND_PRINT((ndo, "%c%s:%u", c, ipaddr_string(ndo, &io->id), + EXTRACT_32BITS(&io->off))); + c = ',';