-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add: gvm_json_obj_int #881
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. OpenSSF Scorecard
Scanned Files |
🔍 Vulnerabilities of
|
digest | sha256:bcdb8101ae2a909f52159811bca10496d2d3e9162c7d6c5269830bbdcfd33aab |
vulnerabilities | |
size | 66 MB |
packages | 204 |
📦 Base Image debian:testing-20250203-slim
also known as |
|
digest | sha256:7b210de05a39d3a5c4534343349eb918a99af2ac570953ae2505b6116f6403a0 |
vulnerabilities |
Description
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
Description
Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
|
There are only two cases that use this variant but there will be a similar function for strings which will have more cases.
What
Add
gvm_json_obj_int
tojson.c
, and use it inopenvasd.c
.Also add
gvm_json_obj_check_int
, and use it inopenvasd.c
andvtparser.c
. This variant allows you to know if the int field was present, and to get the int at the same time.Why
These are neater than using the cJSON snippets. They're similar to
gvm_json_obj_str
.As with
gvm_json_obj_double
, this removes assignments that were happening insideif
conditions.gvm_json_obj_check_int
is only used twice but there will be agvm_json_obj_check_str
that is used more.It's handy to have both the regular version and the
check
version because the regular version saves having to create a variable, but in some cases we need to know if the field exists before using it.References
Similar to /pull/876 and /pull/877.
Checklist