Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
bind-9.18.39/lib/dns/dns64.c:465: error[uninitvar]: Uninitialized variable: &ina6
#  463|   			memset(ina6.s6_addr, 0, sizeof(ina6.s6_addr));
#  464|   			memmove(ina6.s6_addr, rd1.data, oplen / 8);
#  465|-> 			isc_netaddr_fromin6(&prefix[count].addr, &ina6);
#  466|   			prefix[count].prefixlen = oplen;
#  467|   			count++;

Error: CPPCHECK_WARNING (CWE-758): [#def2]
bind-9.18.39/lib/dns/hmac_link.c:386: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  384|   		return TAG_HMACSHA512_KEY;
#  385|   	} else {
#  386|-> 		UNREACHABLE();
#  387|   	}
#  388|   }

Error: CPPCHECK_WARNING (CWE-758): [#def3]
bind-9.18.39/lib/dns/hmac_link.c:405: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  403|   		return TAG_HMACSHA512_BITS;
#  404|   	} else {
#  405|-> 		UNREACHABLE();
#  406|   	}
#  407|   }

Error: CPPCHECK_WARNING (CWE-758): [#def4]
bind-9.18.39/lib/dns/hmac_link.c:457: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  455|   		return DST_ALG_HMACSHA512;
#  456|   	} else {
#  457|-> 		UNREACHABLE();
#  458|   	}
#  459|   }

Error: CPPCHECK_WARNING (CWE-476): [#def5]
bind-9.18.39/lib/isc/trampoline.c:64: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: trampoline
#   62|   	RUNTIME_CHECK(trampoline != NULL);
#   63|   
#   64|-> 	*trampoline = (isc__trampoline_t){
#   65|   		.tid = tid,
#   66|   		.start = start,

Error: CPPCHECK_WARNING (CWE-476): [#def6]
bind-9.18.39/lib/isc/trampoline.c:122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmp
#  120|   	RUNTIME_CHECK(tmp != NULL);
#  121|   	for (size_t i = 0; i < isc__trampoline_max; i++) {
#  122|-> 		tmp[i] = trampolines[i];
#  123|   	}
#  124|   	for (size_t i = isc__trampoline_max; i < 2 * isc__trampoline_max; i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def7]
bind-9.18.39/lib/isc/trampoline.c:125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tmp
#  123|   	}
#  124|   	for (size_t i = isc__trampoline_max; i < 2 * isc__trampoline_max; i++) {
#  125|-> 		tmp[i] = NULL;
#  126|   	}
#  127|   	free(trampolines);

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-230.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-namebind-9.18.41-2.fc44
diffbase-store-results-to/tmp/tmpuqj6_y6c/bind-9.18.41-2.fc44.tar.xz
diffbase-time-created2026-01-08 15:36:59
diffbase-time-finished2026-01-08 15:42:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpuqj6_y6c/bind-9.18.41-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuqj6_y6c/bind-9.18.41-2.fc44.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-230.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-namebind-9.18.39-4.fc43
store-results-to/tmp/tmpgv3t664g/bind-9.18.39-4.fc43.tar.xz
time-created2026-01-08 15:30:29
time-finished2026-01-08 15:36:35
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpgv3t664g/bind-9.18.39-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgv3t664g/bind-9.18.39-4.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9