[arch-commits] Commit in iputils/trunk (2 files)

Stéphane Gaudreault stephane at archlinux.org
Wed Nov 14 16:39:45 UTC 2012


    Date: Wednesday, November 14, 2012 @ 11:39:44
  Author: stephane
Revision: 171002

upgpkg: iputils 20121114-1

upstream update

Added:
  iputils/trunk/iputils-20121114-free-unintialized.patch
Modified:
  iputils/trunk/PKGBUILD

------------------------------------------+
 PKGBUILD                                 |   18 ++++++++------
 iputils-20121114-free-unintialized.patch |   36 +++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-11-14 16:24:29 UTC (rev 171001)
+++ PKGBUILD	2012-11-14 16:39:44 UTC (rev 171002)
@@ -4,12 +4,12 @@
 # Contributor: Aaron Griffin <aaron at archlinux.org>
 
 pkgname=iputils
-pkgver=20121106
+pkgver=20121114
 pkgrel=1
-pkgdesc="IP Configuration Utilities (and Ping)"
+pkgdesc="Network monitoring tools, including ping"
 arch=('i686' 'x86_64')
-license=('GPL')
-url="http://www.linuxfoundation.org/en/Net:Iputils"
+license=('GPL' 'BSD')
+url="http://www.skbuff.net/iputils/"
 groups=('base')
 depends=('openssl' 'sysfsutils' 'libcap')
 optdepends=('xinetd: for tftpd')
@@ -19,13 +19,17 @@
 backup=(etc/xinetd.d/tftp)
 install=${pkgname}.install
 source=(http://www.skbuff.net/${pkgname}/${pkgname}-s${pkgver}.tar.bz2
-        tftp.xinetd)
-sha1sums=('9570832f3945bb5f0e89f5837facc8fdca3b7769'
-          'fc2ae26f5609725e3f4aeaf4ab82dfa6d2e378fd')
+        tftp.xinetd
+        iputils-20121114-free-unintialized.patch)
+sha1sums=('6061bf2ddbf0339b0084eddc33716465b742b82d'
+          'fc2ae26f5609725e3f4aeaf4ab82dfa6d2e378fd'
+          '7f1262f4bed7fa122ea86f09cb81d817adbd8164')
 
 build() {
   cd "${srcdir}/${pkgname}-s${pkgver}"
 
+  patch -Np1 -i ../iputils-20121114-free-unintialized.patch
+
   # Use our CFLAGS
   sed -i -e "/^CCOPT=/s|-O2|${CFLAGS}|" Makefile
 

Added: iputils-20121114-free-unintialized.patch
===================================================================
--- iputils-20121114-free-unintialized.patch	                        (rev 0)
+++ iputils-20121114-free-unintialized.patch	2012-11-14 16:39:44 UTC (rev 171002)
@@ -0,0 +1,36 @@
+From: Jan Synacek <jsynacek at redhat.com>
+Date: Wed, 14 Nov 2012 12:57:16 +0000 (+0100)
+Subject: ping: Don't free an unintialized value.
+X-Git-Url: http://www.linux-ipv6.org/gitweb/gitweb.cgi?p=gitroot%2Fiputils.git;a=commitdiff_plain;h=44c6c9a8d3f3fc65fc52e5957bfd4cc4634f0006
+
+ping: Don't free an unintialized value.
+
+Signed-off-by: YOSHIFUJI Hideaki <yoshfuji at linux-ipv6.org>
+---
+
+diff --git a/ping.c b/ping.c
+index fe9ff8a..9de3d08 100644
+--- a/ping.c
++++ b/ping.c
+@@ -122,7 +122,7 @@ main(int argc, char **argv)
+ 	u_char *packet;
+ 	char *target;
+ #ifdef USE_IDN
+-	char *hnamebuf;
++	char *hnamebuf = NULL;
+ #else
+ 	char hnamebuf[MAX_HOSTNAMELEN];
+ #endif
+@@ -263,8 +263,10 @@ main(int argc, char **argv)
+ #ifdef USE_IDN
+ 			int rc;
+ 
+-			free(hnamebuf);
+-			hnamebuf = NULL;
++			if (hnamebuf) {
++				free(hnamebuf);
++				hnamebuf = NULL;
++			}
+ 
+ 			rc = idna_to_ascii_lz(target, &idn, 0);
+ 			if (rc != IDNA_SUCCESS) {




More information about the arch-commits mailing list