crash.software
Projects
Pull Requests
Issues
Builds
scorecard
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
scorecard
Files
🤬
Sign In
1471c807
ROOT
/
checks
/
shell_download_validate.go
Search
History
1005 lines
|
ISO-8859-1
|
22 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
supportedShells
otherShells
shellNames
pythonInterpreters
shellInterpreters
otherInterpreters
interpreters
downloadUtils
isBinaryName
(expected, name string)
:
bool
isExecuteFile
(cmd []string, fn string)
:
bool
isDownloadUtility
(cmd []string)
:
bool
getWgetOutputFile
(cmd []string)
:
(pathfn string, ok bool, err error)
getGsutilOutputFile
(cmd []string)
:
(pathfn string, ok bool, err error)
getAWSOutputFile
(cmd []string)
:
(pathfn string, ok bool, err error)
getOutputFile
(cmd []string)
:
(pathfn string, ok bool, err error)
isInterpreter
(cmd []string)
:
bool
isShellInterpreterOrCommand
(cmd []string)
:
bool
extractInterpreterAndCommand
(cmd []string)
:
(string, bool)
isInterpreterWithFile
(cmd []string, fn string)
:
bool
extractCommand
(cmd interface{})
:
([]string, bool)
getLine
(startLine, endLine uint, node syntax.Node)
:
(uint, uint)
isFetchPipeExecute
(startLine, endLine uint, node syntax.Node, cmd, pathfn string, dl checker.DetailLogger, )
:
bool
getRedirectFile
(red []*syntax.Redirect)
:
(string, bool)
isExecuteFiles
(startLine, endLine uint, node syntax.Node, cmd, pathfn string, files map[string]bool, dl checker.DetailLogger, )
:
bool
isNpmUnpinnedDownload
(cmd []string)
:
bool
isGoUnpinnedDownload
(cmd []string)
:
bool
isUnpinnedPipInstall
(cmd []string)
:
bool
isPythonCommand
(cmd []string)
:
bool
extractPipCommand
(cmd []string)
:
([]string, bool)
isUnpinnedPythonPipInstall
(cmd []string)
:
bool
isPipUnpinnedDownload
(cmd []string)
:
bool
isChocoUnpinnedDownload
(cmd []string)
:
bool
isUnpinnedPakageManagerDownload
(startLine, endLine uint, node syntax.Node, cmd, pathfn string, dl checker.DetailLogger, )
:
bool
recordFetchFileFromNode
(node syntax.Node)
:
(pathfn string, ok bool, err error)
isFetchProcSubsExecute
(startLine, endLine uint, node syntax.Node, cmd, pathfn string, dl checker.DetailLogger, )
:
bool
isCommand
(cmd []string, b string)
:
bool
extractInterpreterCommandFromArgs
(args []*syntax.Word)
:
(string, bool)
extractInterpreterAndCommandFromNode
(node syntax.Node)
:
(interpreter, command string, yes bool)
nodeToString
(p *syntax.Printer, node syntax.Node)
:
(string, error)
validateShellFileAndRecord
(pathfn string, startLine, endLine uint, content []byte, files map[string]bool, dl checker.DetailLogger, )
:
(bool, error)
isSupportedShell
(shellName string)
:
bool
isShellScriptFile
(pathfn string, content []byte)
:
bool
isSupportedShellScriptFile
(pathfn string, content []byte)
:
bool
isMatchingShellScriptFile
(pathfn string, content []byte, shellsToMatch []string)
:
bool
validateShellFile
(pathfn string, startLine, endLine uint, content []byte, taintedFiles map[string]bool, dl checker.DetailLogger, )
:
(bool, error)
All occurrences
Please wait...
Page is in error, reload to recover