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

Maximum 6 nodes available to scan #12

Closed
Bregor opened this issue Apr 7, 2016 · 4 comments
Closed

Maximum 6 nodes available to scan #12

Bregor opened this issue Apr 7, 2016 · 4 comments
Labels

Comments

@Bregor
Copy link
Contributor

Bregor commented Apr 7, 2016

With "full" load of nodes:

$ grep "servers\." /tmp/go/src/github.com/future-architect/vuls/config.toml|wc -l
  20

$ ./vuls scan
INFO[0000] Begin scannig (config: /tmp/go/src/github.com/future-architect/vuls/config.toml)
panic: runtime error: index out of range

goroutine 1 [running]:
panic(0x4709000, 0xc8200121a0)
    /usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
github.com/future-architect/vuls/config.TOMLLoader.Load(0xc8202aff40, 0x38, 0x0, 0x0)
    /tmp/go/src/github.com/future-architect/vuls/config/tomlloader.go:89 +0xbd5
github.com/future-architect/vuls/config.(*TOMLLoader).Load(0x4b1e8f8, 0xc8202aff40, 0x38, 0x0, 0x0)
    <autogenerated>:3 +0xaf
    ...

After deleting 14 nodes:

$ grep "servers\." /tmp/go/src/github.com/future-architect/vuls/config.toml|wc -l
   6

$ ./vuls scan
INFO[0000] Begin scannig (config: /tmp/go/src/github.com/future-architect/vuls/config.toml)
[Apr  7 19:34:59]  INFO [localhost] Validating Config...
[Apr  7 19:34:59]  INFO [localhost] Detecting OS...
[Apr  7 19:35:01]  INFO [localhost] Scanning vulnerabilities...
[Apr  7 19:35:01]  INFO [localhost] Check required packages for scanning...
[Apr  7 19:35:01]  INFO [localhost] Scanning vuluneable OS packages...

Is there expected behaviour?

@kotakanbe kotakanbe added the bug label Apr 7, 2016
@kotakanbe
Copy link
Member

Thanks for reporting. It is a critical bug. I will fix it soon.

@Bregor
Copy link
Contributor Author

Bregor commented Apr 7, 2016

Thank you!

kotakanbe added a commit that referenced this issue Apr 7, 2016
…hen_7_servers

Fix index out of range error when the number of servers is over 6. #12
@kotakanbe
Copy link
Member

@Bregor Fixed and merged to master. please
$ go get -u github.com/future-architect/vuls
then try again.

@Bregor
Copy link
Contributor Author

Bregor commented Apr 7, 2016

Works like a charm!
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants