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

minor is_cpu_vulnerable() changes #71

Merged
merged 3 commits into from
Jan 13, 2018
Merged

minor is_cpu_vulnerable() changes #71

merged 3 commits into from
Jan 13, 2018

Conversation

bugfood
Copy link
Contributor

@bugfood bugfood commented Jan 12, 2018

I had some difficulty understanding is_cpu_vulnerable() since the comments didn't quite match what I read in the code. I think these changes are correct and make it more understandable.

As far as I can tell, the function and usage are correct for the comment
to be inverted.

Add a clarifying note as to why the value choice makes sense.
If this happens, it's a bug in the script. None of the calling code
checks for status 255, so don't let a scripting bug cause a false
negative.
According to comment above this code:
'by default, everything is vulnerable, we work in a "whitelist" logic here.'
@speed47 speed47 merged commit 4a2d051 into speed47:master Jan 13, 2018
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.

2 participants