tar/tar-1.15.1-CVE-2001-1267.patch

16 lines
259 B
Diff

--- src/names.c
+++ src/names.c
@@ -1152,11 +1152,10 @@
if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
return 1;
- do
+ while (! ISSLASH (*p))
{
if (! *p++)
return 0;
}
- while (! ISSLASH (*p));
}
}