diff --git a/net-tools-1.60-arp_overflow.patch b/net-tools-1.60-arp_overflow.patch new file mode 100644 index 0000000..4679a51 --- /dev/null +++ b/net-tools-1.60-arp_overflow.patch @@ -0,0 +1,11 @@ +--- net-tools-1.60/arp.c.old 2005-08-03 08:23:46.000000000 +0200 ++++ net-tools-1.60/arp.c 2005-08-03 11:02:10.000000000 +0200 +@@ -235,7 +235,7 @@ + struct ifreq ifr; + struct hwtype *xhw; + +- strcpy(ifr.ifr_name, ifname); ++ strncpy(ifr.ifr_name, ifname, IFNAMSIZ); + if (ioctl(sockfd, SIOCGIFHWADDR, &ifr) < 0) { + fprintf(stderr, _("arp: cant get HW-Address for `%s': %s.\n"), ifname, strerror(errno)); + return (-1); diff --git a/net-tools.spec b/net-tools.spec index 2d85323..171a4b3 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -3,7 +3,7 @@ Summary: Basic networking tools. Name: net-tools Version: 1.60 -Release: 55 +Release: 56 License: GPL Group: System Environment/Base Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2 @@ -54,6 +54,7 @@ Patch39: net-tools-1.60-trim_iface.patch Patch40: net-tools-1.60-stdo.patch Patch41: net-tools-1.60-statistics.patch Patch42: net-tools-1.60-ifconfig.patch +Patch43: net-tools-1.60-arp_overflow.patch BuildRoot: %{_tmppath}/%{name}-root Requires(post,preun): chkconfig @@ -104,6 +105,7 @@ ifconfig, netstat, route, and others. %patch40 -p1 -b .stdo %patch41 -p1 -b .statistics %patch42 -p1 -b .iface_drop +%patch43 -p1 -b .overflow cp %SOURCE2 ./config.h cp %SOURCE3 ./config.make @@ -212,6 +214,9 @@ exit 0 %{_sysconfdir}/rc.d/init.d/netplugd %changelog +* Wed Aug 03 2005 Radek Vokal 1.60-56 +- fixed buffer overflow in arp (#164695) + * Wed Jul 20 2005 Radek Vokal 1.60-55 - ifconfig - fixed virtual interface dropping (#162888)