bind-dyndb-ldap-11.10-31.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.c: scope_hint: In function 'get_types'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.c:226:30: warning[-Wanalyzer-null-dereference]: dereference of NULL 'types'
/usr/include/bind9/isc/list.h:16: included_from: Included from here.
/usr/include/bind9/isc/util.h:203: included_from: Included from here.
/usr/include/bind9/isc/atomic.h:22: included_from: Included from here.
/usr/include/bind9/isc/types.h:16: included_from: Included from here.
/usr/include/bind9/dns/types.h:29: included_from: Included from here.
/usr/include/bind9/isccfg/aclconf.h:21: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.c:7: included_from: Included from here.
/usr/include/bind9/isc/util.h:301:22: note: in expansion of macro 'ISC_INSIST'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.c:216:17: note: in expansion of macro 'INSIST'
/usr/include/bind9/isc/util.h:301:22: note: in expansion of macro 'ISC_INSIST'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.c:216:17: note: in expansion of macro 'INSIST'
/usr/include/bind9/isc/util.h:301:22: note: in expansion of macro 'ISC_INSIST'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.c:216:17: note: in expansion of macro 'INSIST'
#  224|   		result = dns_rdatatype_fromtext(&types[i++], &r);
#  225|   #else
#  226|-> 		types[i].max = 0;
#  227|   		result = dns_rdatatype_fromtext(&types[i++].type, &r);
#  228|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c: scope_hint: In function 'get_type_from_tuplefield'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:35:15: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cfg_type'
/usr/include/bind9/isc/list.h:16: included_from: Included from here.
/usr/include/bind9/isc/util.h:203: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:9: included_from: Included from here.
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:70:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:70:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:71:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:32:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:32:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:33:9: note: in expansion of macro 'REQUIRE'
#   33|   	REQUIRE(name != NULL);
#   34|   
#   35|-> 	field = (cfg_tuplefielddef_t *)cfg_type->of;
#   36|   	for (int i = 0; field[i].name != NULL; i++) {
#   37|   		if (!strcmp(field[i].name, name)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c: scope_hint: In function 'get_type_from_clause_array'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:73:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cfg_type'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:70:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:70:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:71:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:52:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:33:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:70:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:70:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.c:71:9: note: in expansion of macro 'REQUIRE'
#   71|   	REQUIRE(name != NULL);
#   72|   
#   73|-> 	clauses = (const cfg_clausedef_t **)cfg_type->of;
#   74|   	for (int i = 0; clauses[i] != NULL; i++) {
#   75|   		ret = get_type_from_clause(clauses[i], name);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def4]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c: scope_hint: In function 'fs_dir_create'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c:37:17: warning[-Wanalyzer-out-of-bounds]: buffer over-read
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c:37:17: note: read of 1 byte from after the end of 'msg_getcwd_failed'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c:37:17: note: valid subscripts for 'msg_getcwd_failed' are '[0]' to '[4095]'
#   35|   
#   36|   	if (getcwd(dir_curr, sizeof(dir_curr) - 1) == NULL)
#   37|-> 		strncpy(dir_curr, msg_getcwd_failed, sizeof(dir_curr));
#   38|   	ret = mkdir(dir_name, dir_mode);
#   39|   	if (ret == 0)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def5]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c: scope_hint: In function 'fs_file_remove'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c:115:25: warning[-Wanalyzer-out-of-bounds]: buffer over-read
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c:115:25: note: read of 1 byte from after the end of 'msg_getcwd_failed'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fs.c:115:25: note: valid subscripts for 'msg_getcwd_failed' are '[0]' to '[4095]'
#  113|   	else if (result != ISC_R_SUCCESS) {
#  114|   		if (getcwd(dir_curr, sizeof(dir_curr) - 1) == NULL)
#  115|-> 			strncpy(dir_curr, msg_getcwd_failed, sizeof(dir_curr));
#  116|   		log_error_r("unable to delete file '%s', working directory "
#  117|   			    "is '%s'", file_name, dir_curr);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def6]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_driver.c: scope_hint: In function 'ldapdb_create'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_driver.c:1109:12: warning[-Wanalyzer-deref-before-check]: check of 'isc__mem_get(mctx, 208, 0)' for NULL after already dereferencing it
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/bindcfg.h:10: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_driver.c:39: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_driver.c:1081:9: note: in expansion of macro 'ZERO_PTR'
# 1107|   
# 1108|   cleanup:
# 1109|-> 	if (ldapdb != NULL) {
# 1110|   		if (lock_ready == true) {
# 1111|   			/* isc_mutex_destroy errors are now fatal */

Error: CPPCHECK_WARNING (CWE-190): [#def7]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:628: error[integerOverflow]: Signed integer overflow for expression '(0xDDDD<<16)+5'.
#  626|   		gfwdevent = (ldap_globalfwd_handleez_t *)isc_event_allocate(
#  627|   					ldap_inst->mctx, ldap_inst,
#  628|-> 					LDAPDB_EVENT_GLOBALFWD_HANDLEEZ,
#  629|   					empty_zone_handle_globalfwd_ev,
#  630|   					ldap_inst->view->zonetable,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c: scope_hint: In function 'ldap_modify_do'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3083:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ldap_conn'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/fwd_register.h:11: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_entry.h:11: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/acl.h:10: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:65: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3916:9: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/list.h:16: included_from: Included from here.
/usr/include/bind9/isc/util.h:203: included_from: Included from here.
/usr/include/bind9/isc/atomic.h:22: included_from: Included from here.
/usr/include/bind9/isc/types.h:16: included_from: Included from here.
/usr/include/bind9/dns/dyndb.h:18: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:10: included_from: Included from here.
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:2354:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3991:25: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:1748:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:1750:15: note: in expansion of macro 'str_new'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:1750:9: note: in expansion of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:1751:9: note: in expansion of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3066:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3067:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3067:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3670:9: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3673:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
/usr/include/bind9/isc/util.h:344:29: note: in expansion of macro 'FATAL_ERROR'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3082:9: note: in expansion of macro 'CHECK'
# 3081|   
# 3082|   	CHECK(ldap_pool_getconnection(ldap_inst->pool, &ldap_conn));
# 3083|-> 	if (ldap_conn->handle == NULL) {
# 3084|   		/*
# 3085|   		 * handle can be NULL when the first connection to LDAP wasn't

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c: scope_hint: In function 'syncrepl_update'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4163:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'entry'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4163:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4348:9: note: in expansion of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4351:9: note: in expansion of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:18: included_from: Included from here.
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4352:9: note: in expansion of macro 'log_debug'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4160:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4161:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4161:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4163:9: note: in expansion of macro 'REQUIRE'
# 4161|   	REQUIRE(entryp != NULL);
# 4162|   	entry = *entryp;
# 4163|-> 	REQUIRE(entry->class != LDAP_ENTRYCLASS_NONE);
# 4164|   
# 4165|   	log_debug(20, "syncrepl_update change type: add%d, del%d, mod%d",

Error: CPPCHECK_WARNING (CWE-190): [#def10]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4215: error[integerOverflow]: Signed integer overflow for expression '(0xDDDD<<16)+1'.
# 4213|   
# 4214|   	pevent = (ldap_syncreplevent_t *)isc_event_allocate(inst->mctx,
# 4215|-> 				inst, LDAPDB_EVENT_SYNCREPL_UPDATE,
# 4216|   				action, NULL,
# 4217|   				sizeof(ldap_syncreplevent_t));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c: scope_hint: In function 'ldap_sync_prepare'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4586:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'conn'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3670:9: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3673:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
/usr/include/bind9/isc/util.h:344:29: note: in expansion of macro 'FATAL_ERROR'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4752:9: note: in expansion of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4663:9: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4580:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4581:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4581:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4584:9: note: in expansion of macro 'CHECK'
# 4584|   	CHECK(cleanup_files(inst));
# 4585|   
# 4586|-> 	if(conn->handle == NULL)
# 4587|   		CLEANUP_WITH(ISC_R_NOTCONNECTED);
# 4588|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c: scope_hint: In function 'ldap_syncrepl_watcher'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4796:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'conn'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3667:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3670:9: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3673:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
/usr/include/bind9/isc/util.h:344:29: note: in expansion of macro 'FATAL_ERROR'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:3680:9: note: in expansion of macro 'RUNTIME_CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/util.h:47:27: note: in definition of macro 'CHECK'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4752:9: note: in expansion of macro 'CHECK'
/usr/include/bind9/isc/util.h:297:22: note: in expansion of macro 'ISC_REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4554:9: note: in expansion of macro 'REQUIRE'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/log.h:36:9: note: in expansion of macro 'log_error'
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/ldap_helper.c:4764:25: note: in expansion of macro 'log_error_r'
# 4794|   retry:
# 4795|   		/* Try to connect. */
# 4796|-> 		while (conn->handle == NULL) {
# 4797|   			CHECK_EXIT;
# 4798|   			CHECK(setting_get_uint("reconnect_interval",

Error: CPPCHECK_WARNING (CWE-190): [#def13]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/syncptr.c:394: error[integerOverflow]: Signed integer overflow for expression '(0xDDDD<<16)+4'.
#  392|   
#  393|   	ev = (sync_ptrev_t *)isc_event_allocate(mctx, NULL,
#  394|-> 						LDAPDB_EVENT_SYNCPTR,
#  395|   						sync_ptr_handler, NULL,
#  396|   						sizeof(sync_ptrev_t));

Error: CPPCHECK_WARNING (CWE-190): [#def14]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/syncrepl.c:176: error[integerOverflow]: Signed integer overflow for expression '(0xDDDD<<16)+2'.
#  174|   
#  175|   	ev = (sync_barrierev_t *)isc_event_allocate(sctx->mctx,
#  176|-> 				sctx, LDAPDB_EVENT_SYNCREPL_BARRIER,
#  177|   				finish, NULL,
#  178|   				sizeof(sync_barrierev_t));

Error: CPPCHECK_WARNING (CWE-190): [#def15]
bind-dyndb-ldap-11.10-build/bind-dyndb-ldap-11.10/src/syncrepl.c:243: error[integerOverflow]: Signed integer overflow for expression '(0xDDDD<<16)+2'.
#  241|   
#  242|   	ev = (sync_barrierev_t *)isc_event_allocate(sctx->mctx,
#  243|-> 				sctx, LDAPDB_EVENT_SYNCREPL_BARRIER,
#  244|   				barrier_decrement, NULL,
#  245|   				sizeof(sync_barrierev_t));

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-122.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namebind-dyndb-ldap-11.10-31.fc42
store-results-to/tmp/tmpf2l_8y45/bind-dyndb-ldap-11.10-31.fc42.tar.xz
time-created2024-11-12 23:12:56
time-finished2024-11-12 23:14:49
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpf2l_8y45/bind-dyndb-ldap-11.10-31.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpf2l_8y45/bind-dyndb-ldap-11.10-31.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9