Bugzilla – Attachment 68895 Details for
Bug 145081
VUL-0: CVE-2005-1918: tar directory traversal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
tar-dots.patch
tar-dots.patch (text/plain), 643 bytes, created by
Thomas Biege
on 2006-02-16 18:17:32 UTC
(
hide
)
Description:
tar-dots.patch
Filename:
MIME Type:
Creator:
Thomas Biege
Created:
2006-02-16 18:17:32 UTC
Size:
643 bytes
patch
obsolete
>--- tar-1.13.25/src/misc.c 2005-02-20 09:34:00.000000000 -0500 >+++ tar-1.13.25/src/misc.c.new 2005-02-20 09:34:14.000000000 -0500 >@@ -208,19 +208,18 @@ contains_dot_dot (char const *name) > if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2])) > return 1; > >- do >- { >- if (! *p++) >- return 0; >- } >- while (! ISSLASH (*p)); >+ while (! ISSLASH (*p)) { >+ if (! *p) >+ return 0; >+ p++; >+ } >+ >+ while ( ISSLASH (*p)) { >+ if (! *p) >+ return 0; >+ p++; >+ } > >- do >- { >- if (! *p++) >- return 0; >- } >- while ( ISSLASH (*p)); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 145081
:
64649
| 68895