pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mtr Update to 0.75:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1d5074c6fb0
branches:  trunk
changeset: 549602:f1d5074c6fb0
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Nov 05 19:58:25 2008 +0000

description:
Update to 0.75:

  v0.75 Feelgood patch to move sprintf to snprintf. People might think
        that sprintf might cause a buffer overflow. Now it's clean.
        cut-paste patches: you can now copy an intermediate host to the
        clipboard.

diffstat:

 net/mtr/Makefile         |   4 ++--
 net/mtr/distinfo         |  10 +++++-----
 net/mtr/patches/patch-ab |  16 ++++++++--------
 3 files changed, 15 insertions(+), 15 deletions(-)

diffs (79 lines):

diff -r a6d68223160b -r f1d5074c6fb0 net/mtr/Makefile
--- a/net/mtr/Makefile  Wed Nov 05 19:49:20 2008 +0000
+++ b/net/mtr/Makefile  Wed Nov 05 19:58:25 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.52 2008/08/28 20:05:24 tron Exp $
+# $NetBSD: Makefile,v 1.53 2008/11/05 19:58:25 wiz Exp $
 
-DISTNAME=      mtr-0.74
+DISTNAME=      mtr-0.75
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.bitwizard.nl/mtr/
 
diff -r a6d68223160b -r f1d5074c6fb0 net/mtr/distinfo
--- a/net/mtr/distinfo  Wed Nov 05 19:49:20 2008 +0000
+++ b/net/mtr/distinfo  Wed Nov 05 19:58:25 2008 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.25 2008/08/29 08:32:41 tonnerre Exp $
+$NetBSD: distinfo,v 1.26 2008/11/05 19:58:25 wiz Exp $
 
-SHA1 (mtr-0.74.tar.gz) = 33038f02872827ac0f3f10d4b7a86d02c76459a5
-RMD160 (mtr-0.74.tar.gz) = 38bba2bee80f2ae5180354e18f025d71506f3739
-Size (mtr-0.74.tar.gz) = 178587 bytes
+SHA1 (mtr-0.75.tar.gz) = d9d3f849e32dda8aa5a7a297c25053e5d8504b27
+RMD160 (mtr-0.75.tar.gz) = d7df41c0c9b457eeff4034c9bc2f01456b8f6c68
+Size (mtr-0.75.tar.gz) = 179376 bytes
 SHA1 (patch-aa) = 844cfa989ee103f3dbc3c1c96a7d631496a251a9
-SHA1 (patch-ab) = 6736da4136b3a4483330973b5cd05668542fe268
+SHA1 (patch-ab) = 09ad79840272c6e3dc1cad74a3349a0ab6bfee40
diff -r a6d68223160b -r f1d5074c6fb0 net/mtr/patches/patch-ab
--- a/net/mtr/patches/patch-ab  Wed Nov 05 19:49:20 2008 +0000
+++ b/net/mtr/patches/patch-ab  Wed Nov 05 19:58:25 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.15 2008/08/24 12:36:34 tron Exp $
+$NetBSD: patch-ab,v 1.16 2008/11/05 19:58:25 wiz Exp $
 
---- dns.c.orig 2008-08-19 18:07:33.000000000 +0100
-+++ dns.c      2008-08-24 13:22:55.000000000 +0100
-@@ -310,6 +310,17 @@
+--- dns.c.orig 2008-09-18 12:36:50.000000000 +0000
++++ dns.c
+@@ -310,6 +310,17 @@ char nullstring[] = "";
  
  int use_dns = 1;
  
@@ -20,7 +20,7 @@
  
  /* Code */
  #ifdef CorruptCheck
-@@ -484,14 +495,14 @@
+@@ -484,14 +495,14 @@ void dns_open(void)
  {
    int option,i;
  
@@ -40,7 +40,7 @@
    resfd = socket(AF_INET, SOCK_DGRAM, 0);
    if (resfd == -1) {
      fprintf(stderr,"Unable to allocate socket for nameserver communication: %s\n",
-@@ -874,17 +885,17 @@
+@@ -874,17 +885,17 @@ void dorequest(char *s,int type,word id)
  {
    packetheader *hp;
    int r,i;
@@ -62,7 +62,7 @@
                 sizeof(struct sockaddr));
  }
  
-@@ -1240,18 +1251,18 @@
+@@ -1240,18 +1251,18 @@ void dns_ack(void)
      /* Check to see if this server is actually one we sent to */
      if ( addrcmp( (void *) &(from4->sin_addr), (void *) &localhost,
                    (int) AF_INET ) == 0 ) {
@@ -84,6 +84,6 @@
          break;
 -    if (i == _res.nscount) {
 +    if (i == myres.nscount) {
-       sprintf(tempstring,"Resolver error: Received reply from unknown source: %s",
+       snprintf(tempstring, sizeof(tempstring), "Resolver error: Received reply from unknown source: %s",
              inet_ntoa(from4->sin_addr ));
        restell(tempstring);



Home | Main Index | Thread Index | Old Index