Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2002 11:42:19 -0700 (PDT)
From:      Liu Kang <lazykang@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   gnu/44146: patch for GNU tar which may solve PR bin/43575
Message-ID:  <200210161842.g9GIgJXf043569@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         44146
>Category:       gnu
>Synopsis:       patch for GNU tar which may solve PR bin/43575
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 16 11:50:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Liu Kang
>Release:        4.7 & 5
>Organization:
Beijing Polytechnic University
>Environment:
FreeBSD cnproxy.bjpu.edu.cn 4.7-STABLE FreeBSD 4.7-STABLE #14: Wed Oct 16 01:33:18 CST 2002     lazy@cnproxy.bjpu.edu.cn:/usr/obj/usr/src/sys/CNPROXY  i386      
>Description:
      redhat released a patch for gnu tar, which could fix the problem described in PR bin/43575,CAN-2001-1267 & CAN-2002-0399 . I've  analysed the code and tested the patch in my computer, it might be the best way to solve the problem.

>How-To-Repeat:
      use the script in PR bin/43575 
>Fix:
Here is redhat's patch:

--- tar-1.13.25/src/misc.c.orig Mon Aug 27 00:14:26 2001
+++ tar-1.13.25/src/misc.c      Mon May 27 11:29:31 2002
@@ -214,6 +214,13 @@
            return 0;
        }
       while (! ISSLASH (*p));
+
+      do
+       {
+         if (! *p++)
+           return 0;
+       }
+      while ( ISSLASH (*p));
     }
 }
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210161842.g9GIgJXf043569>