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 issues reported by OpenScanHub after 1.4.0 release #2152

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

jan-cerny
Copy link
Member

For more details, please read commit messages of all commits.

Addressing:

5. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1076:5: alloc_fn: Storage is returned from allocation function "oscap_concat".
6. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1076:5: var_assign: Assigning: "block" = storage returned from "oscap_concat(block, "\n")".
12. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1119:2: leaked_storage: Variable "block" going out of scope leaks the storage it points to.
Addressing:

9. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1835:2: closed_arg: "_generate_kickstart_oscap_post(struct kickstart_commands *, char const *, char const *, struct oscap_source *, int)" closes "output_fd".
11. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1840:3: pass_closed_arg: Passing closed handle "output_fd" as an argument to "_write_text_to_fd".

5. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1638:2: closed_arg: "_write_tailoring_to_fd(struct oscap_source *, int)" closes "output_fd".
6. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1642:2: pass_closed_arg: Passing closed handle "output_fd" as an argument to "_write_text_to_fd".

5. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1638:2: closed_arg: "_write_tailoring_to_fd(struct oscap_source *, int)" closes "output_fd".
6. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1641:2: pass_closed_arg: Passing closed handle "output_fd" as an argument to "_write_text_to_fd".

5. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1638:2: closed_arg: "_write_tailoring_to_fd(struct oscap_source *, int)" closes "output_fd".
6. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1640:2: pass_closed_arg: Passing closed handle "output_fd" as an argument to "_write_text_to_fd".

5. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1638:2: closed_arg: "_write_tailoring_to_fd(struct oscap_source *, int)" closes "output_fd".
6. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1639:2: pass_closed_arg: Passing closed handle "output_fd" as an argument to "_write_text_to_fd_and_free".

2. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1612:2: closed_arg: "oscap_source_to_fd(struct oscap_source *, int)" closes "output_fd".
3. openscap-1.4.0/src/XCCDF_POLICY/xccdf_policy_remediate.c:1613:2: pass_closed_arg: Passing closed handle "output_fd" as an argument to "_write_text_to_fd".
Addresssing:
18. openscap-1.4.0/src/OVAL/probes/independent/textfilecontent_probe.c:217:3: freed_arg: "free" frees "substrs".
22. openscap-1.4.0/src/OVAL/probes/independent/textfilecontent_probe.c:217:3: double_free: Calling "free" frees pointer "substrs" which has already been freed.
@jan-cerny jan-cerny added this to the 1.4.1 milestone Aug 19, 2024
@evgenyz evgenyz merged commit 8935e10 into OpenSCAP:main Aug 19, 2024
16 checks passed
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