Skip to content

xinetd probe: bound paths and strans keys; export oscap_path_join#2349

Draft
Mab879 wants to merge 1 commit intoOpenSCAP:mainfrom
Mab879:cursor/xinetd-probe-bounded-paths-and-strans
Draft

xinetd probe: bound paths and strans keys; export oscap_path_join#2349
Mab879 wants to merge 1 commit intoOpenSCAP:mainfrom
Mab879:cursor/xinetd-probe-bounded-paths-and-strans

Conversation

@Mab879
Copy link
Copy Markdown
Member

@Mab879 Mab879 commented May 4, 2026

Use snprintf and length checks for stack buffers; build includedir paths with oscap_path_join. Mark oscap_path_join OSCAP_API for embedded tests. Add regression test for oversized name+protocol key.

Fixes various code issues in this file.

Use snprintf and length checks for stack buffers; build includedir paths
with oscap_path_join. Mark oscap_path_join OSCAP_API for embedded tests.
Add regression test for oversized name+protocol key.
@Mab879 Mab879 added this to the 1.4.5 milestone May 4, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 4, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
3 Security Hotspots

See analysis details on SonarQube Cloud

continue;
}

if (xiconf_add_cfile (xiconf, entry_path, xifile->depth + 1) != 0) {
@Mab879 Mab879 marked this pull request as draft May 4, 2026 20:02
@Mab879 Mab879 marked this pull request as draft May 4, 2026 20:02
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