I dont know how to get rid of CWE-22: Path Traversal
ignishub opened this issue · comments
Vasilev Victor commented
configPath recieved from flag, Am i doing something wrong?
clean := filepath.Clean(configPath)
file, err := os.Open(clean)
A static analysis tool for securing Go code
ignishub opened this issue · comments
configPath recieved from flag, Am i doing something wrong?
clean := filepath.Clean(configPath)
file, err := os.Open(clean)