dot-dot security fix, from redhat tar-1.13.25-1.6.src.rpm
This commit is contained in:
parent
77dee4dead
commit
c873f2dfba
|
@ -214,6 +214,13 @@ contains_dot_dot (char const *name)
|
|||
return 0;
|
||||
}
|
||||
while (! ISSLASH (*p));
|
||||
|
||||
do
|
||||
{
|
||||
if (! *p++)
|
||||
return 0;
|
||||
}
|
||||
while ( ISSLASH (*p));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue