mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
Add filepath.EvalSymlinks to clean functions in rule G304
Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
This commit is contained in:
parent
d34f8b77d5
commit
417a44c73b
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ func NewReadFile(id string, _ gosec.Config) (gosec.Rule, []ast.Node) {
|
||||||
rule.pathJoin.Add("path", "Join")
|
rule.pathJoin.Add("path", "Join")
|
||||||
rule.clean.Add("path/filepath", "Clean")
|
rule.clean.Add("path/filepath", "Clean")
|
||||||
rule.clean.Add("path/filepath", "Rel")
|
rule.clean.Add("path/filepath", "Rel")
|
||||||
|
rule.clean.Add("path/filepath", "EvalSymlinks")
|
||||||
rule.Add("io/ioutil", "ReadFile")
|
rule.Add("io/ioutil", "ReadFile")
|
||||||
rule.Add("os", "ReadFile")
|
rule.Add("os", "ReadFile")
|
||||||
rule.Add("os", "Open")
|
rule.Add("os", "Open")
|
||||||
|
|
Loading…
Reference in a new issue