Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug of making channels when fill oval information via HTTP #514

Merged
merged 4 commits into from
Oct 17, 2017

Conversation

kotakanbe
Copy link
Member

An Error was occurred when report with -ovaldb-url option.

$ ./vuls  report --refresh-cve --format-one-line-text -ovaldb-url=http://127.0.0.1:1324 --debug                                                                                                                                                                            Tue Oct 17 13:06:53 2017
[Oct 17 13:06:59]  INFO [localhost] Validating config...
[Oct 17 13:06:59] DEBUG [localhost] get cve-dictionary from sqlite3
[Oct 17 13:06:59]  INFO [localhost] cve-dictionary: /Users/kotakanbe/go/src/github.com/future-architect/vuls/cve.sqlite3
[Oct 17 13:06:59]  INFO [localhost] Loaded: /Users/kotakanbe/go/src/github.com/future-architect/vuls/results/2017-10-17T13:00:35+09:00
[Oct 17 13:06:59] DEBUG [localhost] open cve-dictionary db (sqlite3)
[Oct 17 13:06:59] DEBUG [localhost] Open cve-dictionary db (sqlite3): /Users/kotakanbe/go/src/github.com/future-architect/vuls/cve.sqlite3
[Oct 17 13:06:59] DEBUG [localhost] Open oval-dictionary db (sqlite3): /Users/kotakanbe/go/src/github.com/future-architect/vuls/oval.sqlite3
[Oct 17 13:06:59] DEBUG [localhost] need to refresh
[Oct 17 13:06:59]  INFO [localhost] Fill CVE detailed information with OVAL
[Oct 17 13:06:59]  WARN [localhost] OVAL for redhat 7 is old, last modified is 2017-10-12 11:29:03.203404234 +0900 JST. It's recommended to update OVAL to improve scanning accuracy. How to update OVAL database, see https://github.com/kotakanbe/goval-dictionary#usage
[Oct 17 13:06:59]  INFO [localhost] Fill CVE detailed information with CVE-DB
panic: send on closed channel

goroutine 229 [running]:
github.com/future-architect/vuls/oval.getDefsByPackNameViaHTTP.func1(0xc4202e2d00, 0xc42029e960, 0xc4200747e0)
        /Users/kotakanbe/go/src/github.com/future-architect/vuls/oval/util.go:106 +0x2af
created by github.com/future-architect/vuls/oval.getDefsByPackNameViaHTTP
        /Users/kotakanbe/go/src/github.com/future-architect/vuls/oval/util.go:118 +0x262

@kotakanbe kotakanbe merged commit a32845f into master Oct 17, 2017
kotakanbe added a commit that referenced this pull request Oct 19, 2017
* 'master' of https://github.com/future-architect/vuls:
  Fix a bug of making channels when fill oval information via HTTP (#514)
kotakanbe added a commit that referenced this pull request Nov 15, 2017
* master:
  Fix yum changelog option (#543)
  Update README.md (#542)
  Fix false positive: ignore oval info when kernel major version is different. (#541)
  Fix: Misdetection of OvalMatch for CentOS and Scientific in oval/util.go (#536)
  Fix: "Reboot Required" detection process in scan/redhat.go (#534)
  Remove README.fr.md because unable to maintenance..
  README Typo Update (#538)
  Insert `sudo` only at the beginning of command in deep scan #495 (#539)
  Fix config.toml validation (#537)
  Add pseudo server type for non-ssh scanning (only cpe scan) #512 (#531)
  README Update (#530)
  Update README
  send slack msg by api (#525)
  fix typo Privious -> Previous (#523)
  Fix package query fails on debian based container (#519) (#522)
  fix typo from "enviroment" to "environment" (#518)
  Fix typo in config/jsonloader.go (#517)
  Modified Spell Miss of "README.md". (#516)
  Fix .goreleaser.yml
  Fix a bug of making channels when fill oval information via HTTP (#514)
@kotakanbe kotakanbe deleted the fix-channel-bug-oval branch February 19, 2018 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant