praetorian-inc / gokart

A static analysis tool for securing Go code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I dont know how to get rid of CWE-22: Path Traversal

ignishub opened this issue · comments

configPath recieved from flag, Am i doing something wrong?

clean := filepath.Clean(configPath)

file, err := os.Open(clean)