commit-inetutils
[Top][All Lists]
Advanced

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

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-3-g993e7a9


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-3-g993e7a9
Date: Sat, 18 Jul 2015 10:10:54 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  993e7a9703821acc81a2a3dfe7cadd4d35197597 (commit)
      from  9a90d9b9119906df23cb2db1503cb0f099942dd9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=993e7a9703821acc81a2a3dfe7cadd4d35197597


commit 993e7a9703821acc81a2a3dfe7cadd4d35197597
Author: Mats Erik Andersson <address@hidden>
Date:   Sat Jul 18 10:51:28 2015 +0200

    rcp: Integer overflow with large files.
    
    An insufficiently sized variable cannot handle
    file sizes in excess of 2GB.

diff --git a/ChangeLog b/ChangeLog
index 18a584b..822b6d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2015-07-18  Mats Erik Andersson  <address@hidden>
 
+       rcp: Integer overflow.
+       During transmission of large files, size exceeding 2GB,
+       a long integer variable overflows.  Issue reported and
+       identified by Wenlin Kang in
+       http://lists.gnu.org/archive/html/bug-inetutils/2015-07/msg00004.html
+
+       * src/rcp.c (sink): Change SIZE to have type `off_t'.
+
+2015-07-18  Mats Erik Andersson  <address@hidden>
+
        ifconfig: Improve the support for GNU/Hurd.
        Add system specific abilities, including parsing of command
        line and hardware addresses.
diff --git a/src/rcp.c b/src/rcp.c
index 21f55b6..bafa35f 100644
--- a/src/rcp.c
+++ b/src/rcp.c
@@ -876,9 +876,9 @@ sink (int argc, char *argv[])
   enum
   { YES, NO, DISPLAYED } wrerr;
   BUF *bp;
-  off_t i, j;
+  off_t i, j, size;
   int amt, count, exists, first, mask, mode, ofd, omode;
-  int setimes, size, targisdir, wrerrno;
+  int setimes, targisdir, wrerrno;
   char ch, *cp, *np, *targ, *vect[1], buf[BUFSIZ];
   const char *why;
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |   10 ++++++++++
 src/rcp.c |    4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]