Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/tar/src dot-dot security fix, from redhat tar-1.13....
details:   https://anonhg.NetBSD.org/src/rev/94570bf989ba
branches:  trunk
changeset: 537982:94570bf989ba
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Oct 09 12:01:11 2002 +0000
description:
dot-dot security fix, from redhat tar-1.13.25-1.6.src.rpm
diffstat:
 gnu/dist/tar/src/misc.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r b16be5784c36 -r 94570bf989ba gnu/dist/tar/src/misc.c
--- a/gnu/dist/tar/src/misc.c   Wed Oct 09 11:57:14 2002 +0000
+++ b/gnu/dist/tar/src/misc.c   Wed Oct 09 12:01:11 2002 +0000
@@ -214,6 +214,13 @@
            return 0;
        }
       while (! ISSLASH (*p));
+
+      do
+       {
+         if (! *p++)
+           return 0;
+       }
+      while ( ISSLASH (*p));
     }
 }
 
Home |
Main Index |
Thread Index |
Old Index