Fix/xinetd probe memory safety#2371
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
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
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
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