crash.software
Projects
Pull Requests
Issues
Builds
syft
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
syft
Files
🤬
Sign In
a07bfe7d
ROOT
/
internal
/
file
/
zip_file_traversal.go
Search
History
222 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
KB
MB
GB
errZipSlipDetected
Prefix
:
string
JoinArgs
:
[]string
zipTraversalRequest
newZipTraverseRequest
(paths ...string)
:
zipTraversalRequest
TraverseFilesInZip
(archivePath string, visitor func(*zip.File) error, paths ...string)
:
error
ExtractFromZipToUniqueTempFile
(archivePath, dir string, paths ...string)
:
(map[string]Opener, error)
ContentsFromZip
(archivePath string, paths ...string)
:
(map[string]string, error)
UnzipToDir
(archivePath, targetDir string)
:
error
safeJoin
(prefix string, dest ...string)
:
(string, error)
extractSingleFile
(file *zip.File, expandedFilePath, archivePath string)
:
error
*errZipSlipDetected
Error
()
:
string
All occurrences
Please wait...
Page is in error, reload to recover