- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IncNonDefault (0.1 sec)
-
src/archive/zip/reader.go
} // The zip specification states that names must use forward slashes, // so consider any backslashes in the name insecure. if !filepath.IsLocal(f.Name) || strings.Contains(f.Name, `\`) { zipinsecurepath.IncNonDefault() return ErrInsecurePath } } } return nil } // RegisterDecompressor registers or overrides a custom decompressor for a
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sat Aug 03 01:05:29 UTC 2024 - 28.1K bytes - Viewed (0) -
src/archive/tar/reader.go
if tr.err != nil { return nil, tr.err } hdr, err := tr.next() tr.err = err if err == nil && !filepath.IsLocal(hdr.Name) { if tarinsecurepath.Value() == "0" { tarinsecurepath.IncNonDefault() err = ErrInsecurePath } } return hdr, err } func (tr *Reader) next() (*Header, error) { var paxHdrs map[string]string var gnuLongName, gnuLongLink string
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0)