bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Does the following code cause access violation


From: Fan Decheng
Subject: [Bug-tar] Does the following code cause access violation
Date: Mon, 5 Sep 2005 17:32:23 +0800 (CST)

in src/names.c in tar-1.15.1.

/* Return nonzero if NAME contains ".." as a file name
component.  */
bool
contains_dot_dot (char const *name)
{
  char const *p = name + FILE_SYSTEM_PREFIX_LEN
(name);

  for (;; p++)
    {
      if (p[0] == '.' && p[1] == '.' && (ISSLASH
(p[2]) || !p[2]))
        return 1;

      do
        {
          if (! *p++)
            return 0;
        }
      while (! ISSLASH (*p));
    }
}




        

        
                
___________________________________________________________ 
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 
http://cn.mail.yahoo.com





reply via email to

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