Skip to content

Commit

Permalink
Annotate two gosec issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sioro-Neoku committed Jan 13, 2019
1 parent 1fdec13 commit ec584e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Expand Up @@ -144,6 +144,8 @@ func getBlocklist() iplist.Ranger {
}

// Load blocklist.
// #nosec
// We trust our temporary directory as we just wrote the file there ourselves.
blocklistReader, err := os.Open(blocklistPath)
if err != nil {
log.Printf("Error opening blocklist: %s", err)
Expand Down
2 changes: 2 additions & 0 deletions player.go
Expand Up @@ -33,6 +33,8 @@ func (p GenericPlayer) Open(url string) error {
}
command = append(command, p.Args...)
command = append(command, url)
// #nosec
// It is the user's responsibility to pass the correct arguments to open the url.
return exec.Command(command[0], command[1:]...).Start()
}

Expand Down

0 comments on commit ec584e2

Please sign in to comment.