Skip to content

Fix/xinetd probe memory safety#2371

Open
edznux-dd wants to merge 1 commit into
OpenSCAP:mainfrom
edznux-dd:fix/xinetd-probe-memory-safety
Open

Fix/xinetd probe memory safety#2371
edznux-dd wants to merge 1 commit into
OpenSCAP:mainfrom
edznux-dd:fix/xinetd-probe-memory-safety

xinetd probe: fix memory-safety bugs on malformed config

23da35c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 19, 2026 in 1m 16s

Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 1016 in src/OVAL/probes/unix/xinetd_probe.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 35 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ7gvfRyupWwgW3Ykd0m&open=AZ7gvfRyupWwgW3Ykd0m&pullRequest=2371

Check warning on line 1018 in src/OVAL/probes/unix/xinetd_probe.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this parameter a pointer-to-const. The current type of "buffer" is "char *".

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ7gvfRyupWwgW3Ykd0n&open=AZ7gvfRyupWwgW3Ykd0n&pullRequest=2371

Check failure on line 908 in src/OVAL/probes/unix/xinetd_probe.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Potential leak of memory pointed to by 'xiconf'

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ7gYrEvupWwgW3Ygq1s&open=AZ7gYrEvupWwgW3Ygq1s&pullRequest=2371