Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] openscap-1.4.3/src/OVAL/probes/unix/linux/iflisteners_probe.c: scope_hint: In function ‘iflisteners_probe_main’ openscap-1.4.3/src/OVAL/probes/unix/linux/iflisteners_probe.c:470:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ll.head’ openscap-1.4.3/src/OVAL/probes/unix/linux/iflisteners_probe.c: scope_hint: In function ‘iflisteners_probe_main’ # 468| SEXP_free(interface_name_ent); # 469| # 470|-> return err; # 471| } Error: GCC_ANALYZER_WARNING (CWE-126): [#def2] openscap-1.4.3/src/XCCDF/xccdf_session.c:1006:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read openscap-1.4.3/src/XCCDF/xccdf_session.c: scope_hint: In function ‘_oval_content_resources_free.part.0’ openscap-1.4.3/src/XCCDF/xccdf_session.c: scope_hint: In function ‘_oval_content_resources_free.part.0’ openscap-1.4.3/src/XCCDF/xccdf_session.c:1006:25: note: read of 8 bytes from after the end of the region # 1004| oscap_source_free(resources[i]->source); # 1005| } # 1006|-> free(resources[i]); # 1007| } # 1008| free(resources); Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] openscap-1.4.3/src/XCCDF/xccdf_session.c: scope_hint: In function ‘_xccdf_session_get_oval_from_model’ openscap-1.4.3/src/XCCDF/xccdf_session.c:1056:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘resources’ # 1054| # 1055| resources = malloc(sizeof(struct oval_content_resource *)); # 1056|-> resources[idx] = NULL; # 1057| # 1058| files = xccdf_policy_model_get_systems_and_files(session->xccdf.policy_model); Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] openscap-1.4.3/src/XCCDF/xccdf_session.c:1097:46: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>’ openscap-1.4.3/src/XCCDF/xccdf_session.c: scope_hint: In function ‘_xccdf_session_get_oval_from_model’ # 1095| if (source != NULL) { # 1096| resources[idx] = malloc(sizeof(struct oval_content_resource)); # 1097|-> resources[idx]->href = oscap_strdup(oscap_file_entry_get_file(file_entry)); # 1098| resources[idx]->source_owned = source_owned; # 1099| resources[idx]->source = source; Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] openscap-1.4.3/src/XCCDF/xccdf_session.c:1127:70: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’ openscap-1.4.3/src/XCCDF/xccdf_session.c: scope_hint: In function ‘_xccdf_session_get_oval_from_model’ # 1125| # 1126| resources[idx] = malloc(sizeof(struct oval_content_resource)); # 1127|-> resources[idx]->href = oscap_strdup(printable_path); # 1128| resources[idx]->source = oscap_source_new_take_memory(data, data_size, printable_path); # 1129| resources[idx]->source_owned = true;
| analyzer-version-clippy | 1.88.0 |
| analyzer-version-cppcheck | 2.17.1 |
| analyzer-version-gcc | 15.1.1 |
| analyzer-version-gcc-analyzer | 15.1.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.88.0 |
| diffbase-analyzer-version-cppcheck | 2.17.1 |
| diffbase-analyzer-version-gcc | 15.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.1.1 |
| diffbase-analyzer-version-shellcheck | 0.10.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-108.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | openscap-1.4.3-0.20250707082436052054.pr2244.28.gfeecf06a9 |
| diffbase-store-results-to | /tmp/tmp9w81gcd3/openscap-1.4.3-0.20250707082436052054.pr2244.28.gfeecf06a9.tar.xz |
| diffbase-time-created | 2025-07-07 09:06:53 |
| diffbase-time-finished | 2025-07-07 09:35:05 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmp9w81gcd3/openscap-1.4.3-0.20250707082436052054.pr2244.28.gfeecf06a9.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp9w81gcd3/openscap-1.4.3-0.20250707082436052054.pr2244.28.gfeecf06a9.src.rpm' |
| diffbase-tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-108.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | openscap-1.4.3-0.20250707080542272164.main.26.g262fb26c1 |
| store-results-to | /tmp/tmp03gvg6x3/openscap-1.4.3-0.20250707080542272164.main.26.g262fb26c1.tar.xz |
| time-created | 2025-07-07 08:39:17 |
| time-finished | 2025-07-07 09:06:30 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmp03gvg6x3/openscap-1.4.3-0.20250707080542272164.main.26.g262fb26c1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp03gvg6x3/openscap-1.4.3-0.20250707080542272164.main.26.g262fb26c1.src.rpm' |
| tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |