Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libnftnl-1.2.9/src/str_array.c:60:20: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(mnl_attr_get_str(attr))'
libnftnl-1.2.9/src/str_array.c:42:5: enter_function: entry to 'nftnl_parse_devs'
libnftnl-1.2.9/src/str_array.c:53:9: call_function: calling 'nftnl_str_array_clear' from 'nftnl_parse_devs'
libnftnl-1.2.9/src/str_array.c:53:9: return_function: returning to 'nftnl_parse_devs' from 'nftnl_str_array_clear'
libnftnl-1.2.9/src/str_array.c:55:12: branch_false: following 'false' branch...
libnftnl-1.2.9/src/str_array.c:58:9: branch_false: ...to here
libnftnl-1.2.9/src/str_array.c:58:9: branch_true: following 'true' branch...
libnftnl-1.2.9/src/str_array.c:59:38: branch_true: ...to here
libnftnl-1.2.9/src/str_array.c:59:38: acquire_memory: allocated here
libnftnl-1.2.9/src/str_array.c:60:20: danger: 'strdup(mnl_attr_get_str(attr))' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#   58|   	mnl_attr_for_each_nested(attr, nest) {
#   59|   		sa->array[sa->len] = strdup(mnl_attr_get_str(attr));
#   60|-> 		if (!sa->array[sa->len]) {
#   61|   			nftnl_str_array_clear(sa);
#   62|   			return -1;

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-176.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibnftnl-1.2.8-4.fc42
diffbase-store-results-to/tmp/tmpndxl07xx/libnftnl-1.2.8-4.fc42.tar.xz
diffbase-time-created2025-04-25 14:01:46
diffbase-time-finished2025-04-25 14:03:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpndxl07xx/libnftnl-1.2.8-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpndxl07xx/libnftnl-1.2.8-4.fc42.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-176.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibnftnl-1.2.9-1.fc43
store-results-to/tmp/tmpigd0xjso/libnftnl-1.2.9-1.fc43.tar.xz
time-created2025-04-25 14:03:27
time-finished2025-04-25 14:04:37
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpigd0xjso/libnftnl-1.2.9-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpigd0xjso/libnftnl-1.2.9-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9