OVAL/XCCDF/DS/source: fix memory-corruption bugs on malformed input#2363
Merged
SonarQubeCloud / SonarCloud Code Analysis
succeeded
Jun 3, 2026 in 54s
Quality Gate passed
Annotations
Check failure on line 500 in src/DS/sds.c
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 28 to the 25 allowed.
See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ6M4EHAml3SeofRgYys&open=AZ6M4EHAml3SeofRgYys&pullRequest=2363
Check failure on line 233 in src/XCCDF/resolve.c
sonarqubecloud / SonarCloud Code Analysis
Refactor this code to not nest more than 3 if|for|do|while|switch statements.
See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ6M4EJ8ml3SeofRgYyt&open=AZ6M4EJ8ml3SeofRgYyt&pullRequest=2363
Check warning on line 227 in src/XCCDF/resolve.c
sonarqubecloud / SonarCloud Code Analysis
Make the type of this variable a pointer-to-const. The current type of "parent_text" is "struct oscap_text *".
See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ6M4EJ8ml3SeofRgYyu&open=AZ6M4EJ8ml3SeofRgYyu&pullRequest=2363
Loading