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

[7.0] Improve handling of invalid or existent ids of nvt's preference id. #416

Merged
merged 2 commits into from
Nov 4, 2019

Conversation

jjnicola
Copy link
Member

It detects if the id is repeted.
Also detects if the id 0 is beeing used, which is invalid because id 0 is reserved
for the timeout preferences. Also detects if an id has a non-integer value.

It detects if the id is repeted.
Also detects if the id 0 is beeing used, which is invalid because id 0 is reserved
for the timeout preferences. Also detects if an id has a non-integer value.
mattmundell
mattmundell previously approved these changes Oct 31, 2019
Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems good.

{
nasl_perror (lexic,
"Invalid id or not allowed id value in the call to %s()\n",
__func__);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should switch to __func__ everywhere, instead of mixing it with the existing uses of __FUNCTION__.

nasl/nasl_scanner_glue.c Outdated Show resolved Hide resolved
Co-Authored-By: Matt Mundell <32057441+mattmundell@users.noreply.github.com>
@mattmundell mattmundell merged commit 8e4a5ff into greenbone:openvas-7.0 Nov 4, 2019
@jjnicola jjnicola deleted the timeout-id-7 branch November 20, 2019 08:27
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