Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/back-asyncmeta/config.c:1916:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘uris’
# 1914|   		mt = ch_calloc( sizeof( a_metatarget_t ), 1 );
# 1915|   
# 1916|-> 		for ( j = 0; uris[ j ] != NULL; j++ ) {
# 1917|   			char *tmpuri = NULL;
# 1918|   

Error: COMPILER_WARNING (CWE-563): [#def2]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/logging.c: scope_hint: In function ‘slap_debug_print’
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/logging.c:143:57: warning[-Wunused-value]: value computed is not used
#  143 |                                                         !write( 2, buf, len );
#      |                                                         ^~~~~~~~~~~~~~~~~~~~~
#  141|   							rc, AC_STRERROR_R( rc, ebuf, sizeof(ebuf) ));
#  142|   						if ( !logfile_only )
#  143|-> 							!write( 2, buf, len );
#  144|   						!write( logfile_fd, buf, len );
#  145|   						logfile_rotfail = 1;

Error: COMPILER_WARNING (CWE-563): [#def3]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/logging.c:144:49: warning[-Wunused-value]: value computed is not used
#  144 |                                                 !write( logfile_fd, buf, len );
#      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  142|   						if ( !logfile_only )
#  143|   							!write( 2, buf, len );
#  144|-> 						!write( logfile_fd, buf, len );
#  145|   						logfile_rotfail = 1;
#  146|   					}

Error: COMPILER_WARNING (CWE-563): [#def4]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/logging.c:161:57: warning[-Wunused-value]: value computed is not used
#  161 |                                                         !write( 2, buf, len );
#      |                                                         ^~~~~~~~~~~~~~~~~~~~~
#  159|   							rc, AC_STRERROR_R( rc, ebuf, sizeof(ebuf) ));
#  160|   						if ( !logfile_only )
#  161|-> 							!write( 2, buf, len );
#  162|   						!write( logfile_fd, buf, len );
#  163|   						logfile_openfail = 1;

Error: COMPILER_WARNING (CWE-563): [#def5]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/logging.c:162:49: warning[-Wunused-value]: value computed is not used
#  162 |                                                 !write( logfile_fd, buf, len );
#      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  160|   						if ( !logfile_only )
#  161|   							!write( 2, buf, len );
#  162|-> 						!write( logfile_fd, buf, len );
#  163|   						logfile_openfail = 1;
#  164|   					}

Error: CPPCHECK_WARNING: [#def6]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/overlays/nestgroup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-665): [#def7]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/overlays/nestgroup.c:211:34: warning[-Wmissing-braces]: missing braces around initializer
#  211 | static ConfigTable ngroupcfg[] = {
#      |                                  ^
#  209|   }
#  210|   
#  211|-> static ConfigTable ngroupcfg[] = {
#  212|   	{ "nestgroup-member", "member-ad", 2, 2, 0,
#  213|   	  ARG_MAGIC|ARG_ATDESC|NG_MEMBER, ngroup_cf,

Error: COMPILER_WARNING (CWE-563): [#def8]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/overlays/nestgroup.c: scope_hint: In function ‘nestgroup_memberFilter’
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/overlays/nestgroup.c:428:29: warning[-Wunused-variable]: unused variable ‘j’
#  428 |                         int j;
#      |                             ^
#  426|   		nestgroup_get_parentDNs( &o, &mbr_f[i].nf_f->f_av_value );
#  427|   		if ( gi->gi_numDNs ) {
#  428|-> 			int j;
#  429|   			Filter *f, *nf;
#  430|   			TAvlnode *t;

Error: COMPILER_WARNING (CWE-563): [#def9]
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/overlays/nestgroup.c: scope_hint: In function ‘nestgroup_memberOfFilter’
openldap-2.6.8-build/openldap-2.6.8/openldap-2.6.8/servers/slapd/overlays/nestgroup.c:544:29: warning[-Wunused-variable]: unused variable ‘j’
#  544 |                         int j;
#      |                             ^
#  542|   
#  543|   		if ( gi.gi_numDNs ) {
#  544|-> 			int j;
#  545|   			Filter *f, *nf;
#  546|   			TAvlnode *t;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-163.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameopenldap-2.6.7-1.fc40
diffbase-store-results-to/tmp/tmpsugfybgy/openldap-2.6.7-1.fc40.tar.xz
diffbase-time-created2024-07-03 16:26:44
diffbase-time-finished2024-07-03 16:34:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpsugfybgy/openldap-2.6.7-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpsugfybgy/openldap-2.6.7-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-163.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameopenldap-2.6.8-3.fc41
store-results-to/tmp/tmpbcxj_pun/openldap-2.6.8-3.fc41.tar.xz
time-created2024-07-03 16:34:38
time-finished2024-07-03 16:41:39
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbcxj_pun/openldap-2.6.8-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpbcxj_pun/openldap-2.6.8-3.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9