Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/dnstracer/, net-analyzer/dnstracer/files/
Date: Wed, 07 Feb 2018 21:14:09
Message-Id: 1518038036.30fa4bb1eed4fb6dd85bb64e40d5c5b724c383b6.jer@gentoo
1 commit: 30fa4bb1eed4fb6dd85bb64e40d5c5b724c383b6
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 7 18:23:41 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 7 21:13:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30fa4bb1
7
8 net-analyzer/dnstracer: Fix buffer overflow in host argument (bug #620928).
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-analyzer/dnstracer/dnstracer-1.9-r2.ebuild | 22 ++++++++++++++++++++++
13 .../dnstracer/files/dnstracer-1.9-argv0.patch | 11 +++++++++++
14 2 files changed, 33 insertions(+)
15
16 diff --git a/net-analyzer/dnstracer/dnstracer-1.9-r2.ebuild b/net-analyzer/dnstracer/dnstracer-1.9-r2.ebuild
17 new file mode 100644
18 index 00000000000..b5c49114d51
19 --- /dev/null
20 +++ b/net-analyzer/dnstracer/dnstracer-1.9-r2.ebuild
21 @@ -0,0 +1,22 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +DESCRIPTION="Determines where a given nameserver gets its information from"
28 +HOMEPAGE="http://www.mavetju.org/unix/general.php"
29 +SRC_URI="http://www.mavetju.org/download/${P}.tar.gz"
30 +
31 +LICENSE="BSD-2"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux"
34 +IUSE="ipv6"
35 +
36 +DOCS=( CHANGES README )
37 +PATCHES=(
38 + "${FILESDIR}"/${PN}-1.9-argv0.patch
39 +)
40 +
41 +src_configure() {
42 + econf $(use_enable ipv6)
43 +}
44
45 diff --git a/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch b/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch
46 new file mode 100644
47 index 00000000000..c83c38ea7d7
48 --- /dev/null
49 +++ b/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch
50 @@ -0,0 +1,11 @@
51 +--- a/dnstracer.c
52 ++++ b/dnstracer.c
53 +@@ -1619,7 +1619,7 @@
54 + if (argv[0] == NULL) usage();
55 +
56 + // check for a trailing dot
57 +- strcpy(argv0, argv[0]);
58 ++ strncpy(argv0, argv[0], NS_MAXDNAME);
59 + if (argv0[strlen(argv[0]) - 1] == '.') argv0[strlen(argv[0]) - 1] = 0;
60 +
61 + printf("Tracing to %s[%s] via %s, maximum of %d retries\n",