Task #90667 - fixed.err

back to task #90667
download
Error: CPPCHECK_WARNING (CWE-457):
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):
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):
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):
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):
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):
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):
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);