Task #945 - added.err

back to task #945
download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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):
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):
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):
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:
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):
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):
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):
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;