Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1]
nftables-1.1.5/src/json.c:43:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
nftables-1.1.5/src/json.c:2076:13: enter_function: entry to 'monitor_print_json'
nftables-1.1.5/src/json.c:2081:15: call_function: calling '__nft_json_pack' from 'monitor_print_json'
#   41|   
#   42|   	va_start(ap, fmt);
#   43|-> 	value = json_vpack_ex(&error, 0, fmt, ap);
#   44|   	va_end(ap);
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def2]
nftables-1.1.5/src/mnl.c:2612:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
nftables-1.1.5/src/mnl.c:2680:5: enter_function: entry to 'mnl_nft_dump_nf_hooks'
nftables-1.1.5/src/mnl.c:2746:9: call_function: calling 'print_hooks' from 'mnl_nft_dump_nf_hooks'
# 2610|   
# 2611|   		if (hook->table && hook->chain)
# 2612|-> 			fprintf(fp, " %s %s %s %s",
# 2613|   				hook->objtype, family2str(hook->chain_family),
# 2614|   				hook->table, hook->chain);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def3]
nftables-1.1.5/src/mnl.c:2613:59: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
nftables-1.1.5/src/mnl.c:2680:5: enter_function: entry to 'mnl_nft_dump_nf_hooks'
nftables-1.1.5/src/mnl.c:2746:9: call_function: calling 'print_hooks' from 'mnl_nft_dump_nf_hooks'
# 2611|   		if (hook->table && hook->chain)
# 2612|   			fprintf(fp, " %s %s %s %s",
# 2613|-> 				hook->objtype, family2str(hook->chain_family),
# 2614|   				hook->table, hook->chain);
# 2615|   		else if (hook->hookfn && hook->chain)

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-148.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namenftables-1.1.3-5.fc43
diffbase-store-results-to/tmp/tmpsf4phvx6/nftables-1.1.3-5.fc43.tar.xz
diffbase-time-created2026-01-08 19:32:36
diffbase-time-finished2026-01-08 19:35:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpsf4phvx6/nftables-1.1.3-5.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsf4phvx6/nftables-1.1.3-5.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-148.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namenftables-1.1.5-2.fc44
store-results-to/tmp/tmpguiz29rr/nftables-1.1.5-2.fc44.tar.xz
time-created2026-01-08 19:35:40
time-finished2026-01-08 19:37:52
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpguiz29rr/nftables-1.1.5-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpguiz29rr/nftables-1.1.5-2.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9