samba-4.22.1-1.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/smbprint:50:21: warning[SC2154]: acct_file is referenced but not assigned.
#   48|   #
#   49|   eval acct_file="\${$#}"
#   50|-> spool_dir=$(dirname $acct_file)
#   51|   config_file=$spool_dir/.config
#   52|   

Error: SHELLCHECK_WARNING (CWE-156): [#def2]
/usr/bin/smbprint:59:6: warning[SC2046]: Quote this to prevent word splitting.
#   57|   #   password
#   58|   
#   59|-> eval $(cat $config_file)
#   60|   
#   61|   share=$(echo $share | sed "s/[\]/\//g")

Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/bin/smbprint:63:7: warning[SC2154]: user is referenced but not assigned.
#   61|   share=$(echo $share | sed "s/[\]/\//g")
#   62|   
#   63|-> if [ "$user" != "" ]; then
#   64|   	usercmd="-U"
#   65|   else

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/smbprint:69:7: warning[SC2154]: workgroup is referenced but not assigned.
#   67|   fi
#   68|   
#   69|-> if [ "$workgroup" != "" ]; then
#   70|   	workgroupcmd="-W"
#   71|   else

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/smbprint:75:7: warning[SC2154]: translate is referenced but not assigned.
#   73|   fi
#   74|   
#   75|-> if [ "$translate" = "yes" ]; then
#   76|   	command="translate ; print -"
#   77|   else

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/smbprint:82:36: warning[SC2154]: password is referenced but not assigned.
#   80|   #echo $share $password $translate $x_command > /tmp/smbprint.log
#   81|   
#   82|-> cat | /usr/bin/smbclient "$share" "$password" -E ${hostip:+-I} \
#   83|   	$hostip -N -P $usercmd "$user" $workgroupcmd "$workgroup" \
#   84|   	-c "$command" 2>/dev/null

Error: SHELLCHECK_WARNING (CWE-156): [#def7]
/usr/bin/smbtar:160:7: warning[SC2046]: Quote this to prevent word splitting.
#  158|   done
#  159|   
#  160|-> shift $(expr $OPTIND - 1)
#  161|   
#  162|   if [ "$server" = "" ] || [ "$service" = "" ]; then

Error: SHELLCHECK_WARNING (CWE-398): [#def8]
/usr/share/doc/samba/LDAP/get_next_oid:3:41: warning[SC2062]: Quote the grep pattern so the shell won't interpret it.
#    1|   #!/bin/bash
#    2|   
#    3|-> nextattrib=$(cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' |
#    4|   	awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1)
#    5|   

Error: SHELLCHECK_WARNING (CWE-398): [#def9]
/usr/share/doc/samba/LDAP/get_next_oid:10:37: warning[SC2062]: Quote the grep pattern so the shell won't interpret it.
#    8|   echo "attributetype ( 1.3.6.1.4.1.7165.2.1.$nextattrib NAME ...."
#    9|   
#   10|-> nextoc=$(cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' |
#   11|   	awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1)
#   12|   

Error: COMPILER_WARNING (CWE-477): [#def10]
samba-4.22.1/auth/gensec/gensec.c: scope_hint: In function ‘gensec_update’
samba-4.22.1/auth/gensec/gensec.c:382:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  382 |         tevent_loop_allow_nesting(ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/auth/gensec/gensec.c:26: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  380|   	 * are fixed.
#  381|   	 */
#  382|-> 	tevent_loop_allow_nesting(ev);
#  383|   
#  384|   	subreq = gensec_update_send(frame, ev, gensec_security, in);

Error: CPPCHECK_WARNING (CWE-758): [#def11]
samba-4.22.1/bin/.conf_check_d2109d945d1f2aa9fff91249d6a316cc/libdir/liblc1.c:2: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement

Error: CPPCHECK_WARNING (CWE-404): [#def12]
samba-4.22.1/bin/.conf_check_d2109d945d1f2aa9fff91249d6a316cc/libdir/liblc1.c:2: error[resourceLeak]: Resource leak: f

Error: COMPILER_WARNING (CWE-563): [#def13]
samba-4.22.1/bin/.conf_check_d2109d945d1f2aa9fff91249d6a316cc/libdir/liblc1.c: scope_hint: In function ‘lib_func’
samba-4.22.1/bin/.conf_check_d2109d945d1f2aa9fff91249d6a316cc/libdir/liblc1.c:2:28: warning[-Wunused-variable]: unused variable ‘f’
#    2 | int lib_func(void) { FILE *f = fopen("foo", "r");}
#      |                            ^

Error: COMPILER_WARNING (CWE-393): [#def14]
samba-4.22.1/bin/.conf_check_d2109d945d1f2aa9fff91249d6a316cc/libdir/liblc1.c:2:50: warning[-Wreturn-type]: control reaches end of non-void function
#    2 | int lib_func(void) { FILE *f = fopen("foo", "r");}
#      |                                                  ^

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:201:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gensec_security’
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:216:13: enter_function: entry to ‘log_successful_gensec_authz_event’
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:220:19: call_function: calling ‘gensec_get_remote_address’ from ‘log_successful_gensec_authz_event’
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:220:19: return_function: returning to ‘log_successful_gensec_authz_event’ from ‘gensec_get_remote_address’
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:222:19: call_function: calling ‘gensec_get_local_address’ from ‘log_successful_gensec_authz_event’
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:222:19: return_function: returning to ‘log_successful_gensec_authz_event’ from ‘gensec_get_local_address’
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:226:19: call_function: calling ‘gensec_final_auth_type’ from ‘log_successful_gensec_authz_event’
#  199|   const char *gensec_final_auth_type(struct gensec_security *gensec_security)
#  200|   {
#  201|-> 	if (!gensec_security->ops->final_auth_type) {
#  202|   		return gensec_security->ops->name;
#  203|   	}

Error: COMPILER_WARNING (CWE-477): [#def16]
samba-4.22.1/bin/default/../../auth/gensec/gensec.c:382:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  380|   	 * are fixed.
#  381|   	 */
#  382|-> 	tevent_loop_allow_nesting(ev);
#  383|   
#  384|   	subreq = gensec_update_send(frame, ev, gensec_security, in);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:849:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gensec_security’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:967:19: enter_function: entry to ‘gensec_start_mech_by_sasl_list’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:974:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:977:15: branch_false: ...to here
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:977:15: call_function: calling ‘gensec_security_by_sasl_list’ from ‘gensec_start_mech_by_sasl_list’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:977:15: return_function: returning to ‘gensec_start_mech_by_sasl_list’ from ‘gensec_security_by_sasl_list’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:978:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:985:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:986:29: branch_true: ...to here
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:986:29: call_function: calling ‘gensec_start_mech_by_ops’ from ‘gensec_start_mech_by_sasl_list’
#  847|   				  const struct gensec_security_ops *ops)
#  848|   {
#  849|-> 	gensec_security->ops = ops;
#  850|   	return gensec_start_mech(gensec_security);
#  851|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:954:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gensec_security’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:951:19: enter_function: entry to ‘gensec_start_mech_by_sasl_name’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:954:32: call_function: calling ‘gensec_security_by_sasl_name’ from ‘gensec_start_mech_by_sasl_name’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:954:32: return_function: returning to ‘gensec_start_mech_by_sasl_name’ from ‘gensec_security_by_sasl_name’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:954:9: danger: dereference of NULL ‘gensec_security’
#  952|   					const char *sasl_name)
#  953|   {
#  954|-> 	gensec_security->ops = gensec_security_by_sasl_name(gensec_security, sasl_name);
#  955|   	if (!gensec_security->ops) {
#  956|   		DEBUG(3, ("Could not find GENSEC backend for sasl_name=%s\n", sasl_name));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:1003:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gensec_security’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:1000:19: enter_function: entry to ‘gensec_start_mech_by_name’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:1003:32: call_function: calling ‘gensec_security_by_name’ from ‘gensec_start_mech_by_name’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:1003:32: return_function: returning to ‘gensec_start_mech_by_name’ from ‘gensec_security_by_name’
samba-4.22.1/bin/default/../../auth/gensec/gensec_start.c:1003:9: danger: dereference of NULL ‘gensec_security’
# 1001|   					const char *name)
# 1002|   {
# 1003|-> 	gensec_security->ops = gensec_security_by_name(gensec_security, name);
# 1004|   	if (!gensec_security->ops) {
# 1005|   		DEBUG(3, ("Could not find GENSEC backend for name=%s\n", name));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:133:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ips_ctx’
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:196:6: enter_function: entry to ‘ctdb_sys_have_ip’
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:198:44: release_memory: ‘ips_ctx’ is NULL
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:202:15: call_function: calling ‘ctdb_sys_local_ips_init’ from ‘ctdb_sys_have_ip’
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:202:15: return_function: returning to ‘ctdb_sys_have_ip’ from ‘ctdb_sys_local_ips_init’
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:203:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:209:19: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:209:19: release_memory: ‘ips_ctx’ is NULL
samba-4.22.1/bin/default/../../ctdb/common/system_socket.c:209:19: call_function: calling ‘ctdb_sys_local_ip_check’ from ‘ctdb_sys_have_ip’
#  131|   	int ret;
#  132|   
#  133|-> 	for (ifa = ips_ctx->ifa; ifa != NULL; ifa = ifa->ifa_next) {
#  134|   		ctdb_sock_addr sock_addr;
#  135|   		bool match;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:147:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i_val’
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:85:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:90:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:94:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:100:15: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:101:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:106:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:136:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:141:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:147:17: danger: use of uninitialized value ‘i_val’ here
#  145|   
#  146|   	case CONF_INTEGER:
#  147|-> 		printf("%d\n", i_val);
#  148|   		break;
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:151:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_val’
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:85:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:90:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:94:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:100:15: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:101:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:106:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:136:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:141:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/conf/conf_tool.c:151:38: danger: use of uninitialized value ‘b_val’ here
#  149|   
#  150|   	case CONF_BOOLEAN:
#  151|-> 		printf("%s\n", b_val ? "true" : "false");
#  152|   		break;
#  153|   	}

Error: GCC_ANALYZER_WARNING: [#def23]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:333:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:270:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:275:25: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:281:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:286:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:289:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:296:9: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:304:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:315:12: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:315:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:316:34: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:332:17: release_resource: closed here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_cluster_mutex.c:333:17: danger: ‘1’ could be invalid
#  331|   		/* Make stdout point to the pipe */
#  332|   		close(STDOUT_FILENO);
#  333|-> 		dup2(h->fd[1], STDOUT_FILENO);
#  334|   		close(h->fd[1]);
#  335|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1228:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*ctdb.daemon.sd’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1185:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1189:32: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1191:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1195:9: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1198:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1204:15: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1205:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1210:12: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1220:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1227:15: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1228:12: danger: ‘*ctdb.daemon.sd’ leaks here
# 1226|   
# 1227|   	ret = listen(ctdb->daemon.sd, 100);
# 1228|-> 	if (ret != 0) {
# 1229|   		D_ERR("Unable to listen on ctdb socket '%s'\n",
# 1230|   		      ctdb->daemon.name);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1234:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*ctdb.daemon.sd’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1185:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1189:32: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1191:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1195:9: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1198:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1204:15: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1205:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1210:12: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1220:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1227:15: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1228:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1234:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1234:9: danger: ‘*ctdb.daemon.sd’ leaks here
# 1232|   	}
# 1233|   
# 1234|-> 	D_NOTICE("Listening to ctdb socket %s\n", ctdb->daemon.name);
# 1235|   	return 0;
# 1236|   

Error: COMPILER_WARNING (CWE-477): [#def26]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:1564:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1562|   		exit(1);
# 1563|   	}
# 1564|-> 	tevent_loop_allow_nesting(ctdb->ev);
# 1565|   	ctdb_tevent_trace_init();
# 1566|   	tevent_set_trace_callback(ctdb->ev, ctdb_tevent_trace, ctdb);

Error: COMPILER_WARNING (CWE-477): [#def27]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_daemon.c:2265:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2263|   		exit(1);
# 2264|   	}
# 2265|-> 	tevent_loop_allow_nesting(ctdb->ev);
# 2266|   
# 2267|   	/* Connect to main CTDB daemon */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_lock.c:728:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor
samba-4.22.1/bin/default/../../ctdb/server/ctdb_lock.c:712:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_lock.c:721:20: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_lock.c:722:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_lock.c:726:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_lock.c:728:12: danger: leaks here
#  726|   	lock_ctx->child = -1;
#  727|   	ret = pipe(lock_ctx->fd);
#  728|-> 	if (ret != 0) {
#  729|   		DEBUG(DEBUG_ERR, ("Failed to create pipe in ctdb_lock_schedule\n"));
#  730|   		return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:132:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:130:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:136:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:132:24: danger: ‘p[0]’ leaks here
#  130|   	if (pipe(p) != 0) {
#  131|   		DEBUG(DEBUG_ERR,(__location__ " Failed to setup for child logging pipe\n"));
#  132|-> 		return -1;
#  133|   	}
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:132:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:130:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:136:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:132:24: danger: ‘p[1]’ leaks here
#  130|   	if (pipe(p) != 0) {
#  131|   		DEBUG(DEBUG_ERR,(__location__ " Failed to setup for child logging pipe\n"));
#  132|-> 		return -1;
#  133|   	}
#  134|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 1)’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:130:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:136:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:137:12: branch_false: following ‘false’ branch (when ‘old_stdout >= 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:141:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:142:12: branch_false: following ‘false’ branch (when ‘old_stderr >= 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:13: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:13: acquire_resource: opened here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:12: danger: ‘dup2(p[1], 1)’ leaks here; was opened at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
#  145|   		return -1;
#  146|   	}
#  147|-> 	if (dup2(p[1], STDOUT_FILENO) < 0 || dup2(p[1], STDERR_FILENO) < 0) {
#  148|   		int saved_errno = errno;
#  149|   		dup2(old_stdout, STDOUT_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 2)’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:130:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:136:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:137:12: branch_false: following ‘false’ branch (when ‘old_stdout >= 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:141:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:142:12: branch_false: following ‘false’ branch (when ‘old_stderr >= 0’)...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:13: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:46: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:46: acquire_resource: opened here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_logging.c:147:13: danger: ‘dup2(p[1], 2)’ leaks here; was opened at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  145|   		return -1;
#  146|   	}
#  147|-> 	if (dup2(p[1], STDOUT_FILENO) < 0 || dup2(p[1], STDERR_FILENO) < 0) {
#  148|   		int saved_errno = errno;
#  149|   		dup2(old_stdout, STDOUT_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:120:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nlist’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2540:13: enter_function: entry to ‘recovery_nodemap_verify’
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2560:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2578:39: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2579:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2583:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2584:39: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2593:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2609:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2613:22: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ctdb_recovery_helper.c:2613:22: call_function: calling ‘node_list_add’ from ‘recovery_nodemap_verify’
#  118|   	unsigned int i;
#  119|   
#  120|-> 	if (nlist->count == nlist->size) {
#  121|   		return false;
#  122|   	}

Error: COMPILER_WARNING (CWE-477): [#def34]
samba-4.22.1/bin/default/../../ctdb/server/ctdbd.c:188:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  186|   		exit(1);
#  187|   	}
#  188|-> 	tevent_loop_allow_nesting(ev);
#  189|   
#  190|   	ctdb = ctdb_init(ev);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:160:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hn’
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:134:6: enter_function: entry to ‘ipalloc_deterministic’
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:136:40: call_function: calling ‘ipalloc_get_home_nodes’ from ‘ipalloc_deterministic’
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:136:40: return_function: returning to ‘ipalloc_deterministic’ from ‘ipalloc_get_home_nodes’
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:150:49: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:153:26: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:155:29: branch_true: following ‘true’ branch (when ‘j < num_home_nodes’)...
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:156:59: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:156:43: release_memory: ‘hn’ is NULL
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:158:28: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:160:37: branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/server/ipalloc_deterministic.c:160:37: danger: dereference of NULL ‘hn’
#  158|   			if (ctdb_sock_addr_same_ip(&t->addr, &hn->addr)) {
#  159|   
#  160|-> 				if (hn->pnn >= numnodes) {
#  161|   					DBG_WARNING("pnn %" PRIu32
#  162|   						    " too large\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
samba-4.22.1/bin/default/../../ctdb/tcp/tcp_connect.c:460:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.listen_fd’
samba-4.22.1/bin/default/../../ctdb/tcp/tcp_connect.c:427:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/tcp/tcp_connect.c:432:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tcp/tcp_connect.c:446:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../ctdb/tcp/tcp_connect.c:459:15: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tcp/tcp_connect.c:460:12: danger: ‘*<unknown>.listen_fd’ leaks here
#  458|   
#  459|   	ret = listen(ctcp->listen_fd, 10);
#  460|-> 	if (ret == -1) {
#  461|   		DBG_ERR("Failed to listen() on socket - %s (%d)\n",
#  462|   			strerror(errno),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:207:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:175:30: enter_function: entry to ‘get_nodemap’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:192:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:196:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:200:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:206:16: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:206:16: call_function: inlined call to ‘get_node_by_pnn’ from ‘get_nodemap’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:207:13: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:207:13: danger: dereference of NULL ‘<unknown>’
#  205|   
#  206|   	node = get_node_by_pnn(nodemap, current_node);
#  207|-> 	if (node->flags & NODE_FLAGS_BANNED) {
#  208|   		/* Pick next node */
#  209|   		do {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:212:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:175:30: enter_function: entry to ‘get_nodemap’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:192:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:196:9: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:200:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:206:16: branch_false: ...to here
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:206:16: call_function: inlined call to ‘get_node_by_pnn’ from ‘get_nodemap’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:207:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:211:32: call_function: inlined call to ‘get_node_by_pnn’ from ‘get_nodemap’
samba-4.22.1/bin/default/../../ctdb/tools/ctdb.c:212:32: danger: dereference of NULL ‘<unknown>’
#  210|   			current_node = (current_node + 1) % nodemap->num;
#  211|   			node = get_node_by_pnn(nodemap, current_node);
#  212|-> 			if (! (node->flags &
#  213|   			      (NODE_FLAGS_DELETED|NODE_FLAGS_DISCONNECTED))) {
#  214|   				break;

Error: COMPILER_WARNING (CWE-477): [#def39]
samba-4.22.1/bin/default/../../ctdb/utils/tdb/tdb_mutex_check.c:90:17: warning[-Wdeprecated-declarations]: ‘pthread_mutex_consistent_np’ is deprecated: pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent
#   88|   	}
#   89|   	if (ret == EOWNERDEAD) {
#   90|-> 		ret = pthread_mutex_consistent_np(m);
#   91|   		if (ret != 0) {
#   92|   			printf("[%6d] consistent failed (%d)\n", chain, ret);

Error: COMPILER_WARNING (CWE-477): [#def40]
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl.c:193:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#  191|   	path[sizeof(path)-1] = '\0';
#  192|   
#  193|-> 	if (smbc_init(get_auth_data_fn, debug) != 0)
#  194|   	{
#  195|   		printf("Could not initialize smbc_ library\n");

Error: COMPILER_WARNING (CWE-477): [#def41]
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl2.c:30:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   28|   	SMBCCTX *context;
#   29|   
#   30|-> 	if (smbc_init(get_auth_data_fn, debug) != 0)
#   31|   	{
#   32|   		printf("Could not initialize smbc_ library\n");

Error: COMPILER_WARNING (CWE-477): [#def42]
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   19|   	SMBCCTX *       context;
#   20|   
#   21|-> 	smbc_init(get_auth_data_fn, debug);
#   22|   
#   23|   	context = smbc_set_context(NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:46:27: warning[-Wanalyzer-malloc-leak]: leak of ‘the_acl’
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:31:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:35:21: branch_false: ...to here
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:35:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:40:28: branch_false: ...to here
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:46:27: acquire_memory: allocated here
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:48:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:55:17: branch_false: ...to here
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:31:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:35:21: branch_false: ...to here
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:35:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:40:28: branch_false: ...to here
samba-4.22.1/bin/default/../../examples/libsmbclient/testacl3.c:46:27: danger: ‘the_acl’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   44|   		}
#   45|   
#   46|-> 		the_acl = strdup("system.nt_sec_desc.*+");
#   47|   		ret = smbc_getxattr(path, the_acl, value, sizeof(value));
#   48|   		if (ret < 0)

Error: COMPILER_WARNING (CWE-477): [#def44]
samba-4.22.1/bin/default/../../examples/libsmbclient/testchmod.c:37:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   35|   	}
#   36|   
#   37|-> 	smbc_init(get_auth_data_fn, debug);
#   38|   
#   39|   	if (smbc_stat(pSmbPath, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def45]
samba-4.22.1/bin/default/../../examples/libsmbclient/testfstatvfs.c:22:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   20|   	struct statvfs  statvfsbuf;
#   21|   
#   22|-> 	smbc_init(get_auth_data_fn, debug);
#   23|   
#   24|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def46]
samba-4.22.1/bin/default/../../examples/libsmbclient/testnotify.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   40|   	int count = 1000;
#   41|   
#   42|-> 	smbc_init(get_auth_data_fn, debug);
#   43|   
#   44|   	fprintf(stdout, "Path: ");

Error: COMPILER_WARNING (CWE-477): [#def47]
samba-4.22.1/bin/default/../../examples/libsmbclient/testread.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   19|   	char *          p;
#   20|   
#   21|-> 	smbc_init(get_auth_data_fn, debug);
#   22|   
#   23|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def48]
samba-4.22.1/bin/default/../../examples/libsmbclient/testsmbc.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   40|   	struct stat st1, st2;
#   41|   
#   42|-> 	err = smbc_init(get_auth_data_fn,  10); /* Initialize things */
#   43|   
#   44|   	if (err < 0) {

Error: COMPILER_WARNING (CWE-477): [#def49]
samba-4.22.1/bin/default/../../examples/libsmbclient/teststat2.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   40|           char a_time[32];
#   41|   
#   42|->         smbc_init(get_auth_data_fn, 0);
#   43|   
#   44|           if (smbc_stat(pUrl, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def50]
samba-4.22.1/bin/default/../../examples/libsmbclient/teststat3.c:29:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   27|   
#   28|   
#   29|->         smbc_init(get_auth_data_fn, 0);
#   30|   
#   31|           if (smbc_stat(pUrl, &st1) < 0)

Error: COMPILER_WARNING (CWE-477): [#def51]
samba-4.22.1/bin/default/../../examples/libsmbclient/teststatvfs.c:20:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   18|   	struct statvfs  statvfsbuf;
#   19|   
#   20|-> 	smbc_init(get_auth_data_fn, debug);
#   21|   
#   22|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def52]
samba-4.22.1/bin/default/../../examples/libsmbclient/testtruncate.c:27:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   25|   	}
#   26|   
#   27|-> 	smbc_init(get_auth_data_fn, debug);
#   28|   
#   29|   	if ((fd = smbc_open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0)) < 0)

Error: COMPILER_WARNING (CWE-477): [#def53]
samba-4.22.1/bin/default/../../examples/libsmbclient/testutime.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   40|   	}
#   41|   
#   42|-> 	smbc_init(get_auth_data_fn, debug);
#   43|   
#   44|   	if (smbc_stat(pSmbPath, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def54]
samba-4.22.1/bin/default/../../examples/libsmbclient/testwrite.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   19|   	char *          p;
#   20|   
#   21|-> 	smbc_init(get_auth_data_fn, debug);
#   22|   
#   23|   	printf("CAUTION: This program will overwrite a file.  "

Error: COMPILER_WARNING (CWE-477): [#def55]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb.c:121:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  119|   		tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb);
#  120|   		tevent_set_max_debug_level(ev_ctx, TEVENT_DEBUG_TRACE);
#  121|-> 		tevent_loop_allow_nesting(ev_ctx);
#  122|   	}
#  123|   

Error: COMPILER_WARNING (CWE-477): [#def56]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb.c:761:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  759|   		tevent_set_debug(h->event_context, ldb_tevent_debug, ldb);
#  760|   		tevent_set_max_debug_level(h->event_context, TEVENT_DEBUG_TRACE);
#  761|-> 		tevent_loop_allow_nesting(h->event_context);
#  762|   	}
#  763|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:555:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:562:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:612:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:617:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:617:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:621:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:621:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:626:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:628:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:642:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:642:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:643:40: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:645:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:651:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:651:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:660:20: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:660:20: branch_false: following ‘false’ branch (when ‘remaining > 9’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:669:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:670:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:674:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:674:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:680:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:684:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:688:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:691:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:695:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:704:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:705:20: branch_false: following ‘false’ branch (when ‘remaining > 3’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:709:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:710:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:715:28: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:715:28: branch_false: following ‘false’ branch (when ‘remaining > 4’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:719:25: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:722:28: branch_false: following ‘false’ branch (when ‘remaining >= len’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:40: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  729|   			}
#  730|   
#  731|-> 			element->values[j].length = len;
#  732|   			element->values[j].data = p + U32_LEN;
#  733|   			remaining -= len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:555:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:562:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:612:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:617:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:617:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:621:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:621:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:626:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:628:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:642:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:642:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:651:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:651:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:660:20: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:660:20: branch_false: following ‘false’ branch (when ‘remaining > 9’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:669:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:670:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:674:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:674:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:680:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:684:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:688:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:691:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:692:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:695:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:695:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:704:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:705:20: branch_false: following ‘false’ branch (when ‘remaining > 3’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:709:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:710:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:715:28: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:715:28: branch_false: following ‘false’ branch (when ‘remaining > 4’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:719:25: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:722:28: branch_false: following ‘false’ branch (when ‘remaining >= len’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:40: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:731:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  729|   			}
#  730|   
#  731|-> 			element->values[j].length = len;
#  732|   			element->values[j].data = p + U32_LEN;
#  733|   			remaining -= len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_true: following ‘true’ branch (when ‘val_len_width == 1’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:972:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:61: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:33: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:48: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  971|   		if (val_len_width == U8_LEN) {
#  972|   			for (j = 0; j < element->num_values; j++) {
#  973|-> 				element->values[j].length = PULL_LE_U8(p, 0);
#  974|   				p += U8_LEN;
#  975|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_true: following ‘true’ branch (when ‘val_len_width == 1’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:972:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:61: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:33: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:48: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:973:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  971|   		if (val_len_width == U8_LEN) {
#  972|   			for (j = 0; j < element->num_values; j++) {
#  973|-> 				element->values[j].length = PULL_LE_U8(p, 0);
#  974|   				p += U8_LEN;
#  975|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_true: following ‘true’ branch (when ‘val_len_width == 2’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:977:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:61: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:33: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:48: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  976|   		} else if (val_len_width == U16_LEN) {
#  977|   			for (j = 0; j < element->num_values; j++) {
#  978|-> 				element->values[j].length = PULL_LE_U16(p, 0);
#  979|   				p += U16_LEN;
#  980|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_true: following ‘true’ branch (when ‘val_len_width == 2’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:977:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:61: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:33: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:48: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:978:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  976|   		} else if (val_len_width == U16_LEN) {
#  977|   			for (j = 0; j < element->num_values; j++) {
#  978|-> 				element->values[j].length = PULL_LE_U16(p, 0);
#  979|   				p += U16_LEN;
#  980|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_false: following ‘false’ branch (when ‘val_len_width != 2’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:981:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:981:27: branch_true: following ‘true’ branch (when ‘val_len_width == 4’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:982:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:61: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:33: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:48: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  981|   		} else if (val_len_width == U32_LEN) {
#  982|   			for (j = 0; j < element->num_values; j++) {
#  983|-> 				element->values[j].length = PULL_LE_U32(p, 0);
#  984|   				p += U32_LEN;
#  985|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:976:27: branch_false: following ‘false’ branch (when ‘val_len_width != 2’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:981:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:981:27: branch_true: following ‘true’ branch (when ‘val_len_width == 4’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:982:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:61: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:33: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:48: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:983:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  981|   		} else if (val_len_width == U32_LEN) {
#  982|   			for (j = 0; j < element->num_values; j++) {
#  983|-> 				element->values[j].length = PULL_LE_U32(p, 0);
#  984|   				p += U32_LEN;
#  985|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*element.values’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:972:37: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:991:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:991:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:31: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:31: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:46: release_memory: ‘*element.values’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  990|   
#  991|   		for (j = 0; j < element->num_values; j++) {
#  992|-> 			len = element->values[j].length;
#  993|   			if (len + NULL_PAD_BYTE_LEN < len) {
#  994|   				errno = EIO;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:912:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:972:37: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:991:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:991:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:31: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:31: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:46: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.22.1/bin/default/../../lib/ldb/common/ldb_pack.c:992:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
#  990|   
#  991|   		for (j = 0; j < element->num_values; j++) {
#  992|-> 			len = element->values[j].length;
#  993|   			if (len + NULL_PAD_BYTE_LEN < len) {
#  994|   				errno = EIO;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:96:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attrs’
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1133:5: enter_function: entry to ‘ldb_map_search’
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1148:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1152:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1152:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1157:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1166:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1172:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/ldb_map/ldb_map_outbound.c:1178:15: call_function: calling ‘map_attrs_collect_and_partition’ from ‘ldb_map_search’
#   94|   	result[0] = NULL;
#   95|   
#   96|-> 	for (i = 0; attrs[i]; i++) {
#   97|   		/* Wildcards are kept remotely, too */
#   98|   		if (ldb_attr_cmp(attrs[i], "*") == 0) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1122:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1119:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1122:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1122:17: danger: use of uninitialized value ‘to_child[1]’ here
# 1120|   
# 1121|   		struct ldb_context *ldb = NULL;
# 1122|-> 		close(to_child[1]);
# 1123|   		close(to_parent[0]);
# 1124|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def69]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1123:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1119:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1122:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1123:17: danger: use of uninitialized value ‘to_parent[0]’ here
# 1121|   		struct ldb_context *ldb = NULL;
# 1122|   		close(to_child[1]);
# 1123|-> 		close(to_parent[0]);
# 1124|   
# 1125|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1320:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1119:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1320:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1320:9: danger: use of uninitialized value ‘to_child[0]’ here
# 1318|   		exit(0);
# 1319|   	}
# 1320|-> 	close(to_child[0]);
# 1321|   	close(to_parent[1]);
# 1322|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def71]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1321:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1119:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1320:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1321:9: danger: use of uninitialized value ‘to_parent[1]’ here
# 1319|   	}
# 1320|   	close(to_child[0]);
# 1321|-> 	close(to_parent[1]);
# 1322|   
# 1323|   	/*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1373:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1119:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1320:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1373:1: danger: ‘to_child[1]’ leaks here
# 1371|   
# 1372|   	TALLOC_FREE(tmp_ctx);
# 1373|-> }
# 1374|   
# 1375|   /*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1373:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1119:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1320:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1373:1: danger: ‘to_parent[0]’ leaks here
# 1371|   
# 1372|   	TALLOC_FREE(tmp_ctx);
# 1373|-> }
# 1374|   
# 1375|   /*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def74]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1448:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1445:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1448:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1448:17: danger: use of uninitialized value ‘to_child[1]’ here
# 1446|   
# 1447|   		struct ldb_context *ldb = NULL;
# 1448|-> 		close(to_child[1]);
# 1449|   		close(to_parent[0]);
# 1450|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def75]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1449:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1445:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1448:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1449:17: danger: use of uninitialized value ‘to_parent[0]’ here
# 1447|   		struct ldb_context *ldb = NULL;
# 1448|   		close(to_child[1]);
# 1449|-> 		close(to_parent[0]);
# 1450|   
# 1451|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def76]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1632:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1445:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1632:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1632:9: danger: use of uninitialized value ‘to_child[0]’ here
# 1630|   		exit(0);
# 1631|   	}
# 1632|-> 	close(to_child[0]);
# 1633|   	close(to_parent[1]);
# 1634|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1633:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1445:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1632:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1633:9: danger: use of uninitialized value ‘to_parent[1]’ here
# 1631|   	}
# 1632|   	close(to_child[0]);
# 1633|-> 	close(to_parent[1]);
# 1634|   
# 1635|   	/*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1681:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1445:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1632:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1681:1: danger: ‘to_child[1]’ leaks here
# 1679|   
# 1680|   	TALLOC_FREE(tmp_ctx);
# 1681|-> }
# 1682|   
# 1683|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1681:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1445:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1632:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_kv_ops_test.c:1681:1: danger: ‘to_parent[0]’ leaks here
# 1679|   
# 1680|   	TALLOC_FREE(tmp_ctx);
# 1681|-> }
# 1682|   
# 1683|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def80]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:254:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:248:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:254:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:254:17: danger: use of uninitialized value ‘to_child[1]’ here
#  252|   
#  253|   		struct ldb_context *ldb = NULL;
#  254|-> 		close(to_child[1]);
#  255|   		close(to_parent[0]);
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def81]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:255:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:248:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:254:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:255:17: danger: use of uninitialized value ‘to_parent[0]’ here
#  253|   		struct ldb_context *ldb = NULL;
#  254|   		close(to_child[1]);
#  255|-> 		close(to_parent[0]);
#  256|   
#  257|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def82]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:303:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:248:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:303:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:303:9: danger: use of uninitialized value ‘to_child[0]’ here
#  301|   	}
#  302|   
#  303|-> 	close(to_child[0]);
#  304|   	close(to_parent[1]);
#  305|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def83]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:304:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:248:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:303:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:304:9: danger: use of uninitialized value ‘to_parent[1]’ here
#  302|   
#  303|   	close(to_child[0]);
#  304|-> 	close(to_parent[1]);
#  305|   
#  306|   	/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def84]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:397:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:391:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:397:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:397:17: danger: use of uninitialized value ‘to_child[1]’ here
#  395|   
#  396|   		struct ldb_context *ldb = NULL;
#  397|-> 		close(to_child[1]);
#  398|   		close(to_parent[0]);
#  399|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def85]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:398:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:391:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:397:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:398:17: danger: use of uninitialized value ‘to_parent[0]’ here
#  396|   		struct ldb_context *ldb = NULL;
#  397|   		close(to_child[1]);
#  398|-> 		close(to_parent[0]);
#  399|   
#  400|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def86]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:465:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:391:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:465:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:465:9: danger: use of uninitialized value ‘to_child[0]’ here
#  463|   	}
#  464|   
#  465|-> 	close(to_child[0]);
#  466|   	close(to_parent[1]);
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def87]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:466:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:391:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:465:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:466:9: danger: use of uninitialized value ‘to_parent[1]’ here
#  464|   
#  465|   	close(to_child[0]);
#  466|-> 	close(to_parent[1]);
#  467|   
#  468|   	/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def88]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:546:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:540:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:546:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:546:17: danger: use of uninitialized value ‘to_child[1]’ here
#  544|   
#  545|   		struct ldb_context *ldb = NULL;
#  546|-> 		close(to_child[1]);
#  547|   		close(to_parent[0]);
#  548|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def89]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:547:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:540:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:546:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:547:17: danger: use of uninitialized value ‘to_parent[0]’ here
#  545|   		struct ldb_context *ldb = NULL;
#  546|   		close(to_child[1]);
#  547|-> 		close(to_parent[0]);
#  548|   
#  549|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def90]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:579:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:540:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:579:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:579:9: danger: use of uninitialized value ‘to_child[0]’ here
#  577|   	}
#  578|   
#  579|-> 	close(to_child[0]);
#  580|   	close(to_parent[1]);
#  581|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def91]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:580:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:540:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:579:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_free_list_test.c:580:9: danger: use of uninitialized value ‘to_parent[1]’ here
#  578|   
#  579|   	close(to_child[0]);
#  580|-> 	close(to_parent[1]);
#  581|   
#  582|   	/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def92]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:514:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:510:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:514:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:514:17: danger: use of uninitialized value ‘pipes[0]’ here
#  512|   		struct MDB_env *env3 = NULL;
#  513|   
#  514|-> 		close(pipes[0]);
#  515|   		ldb3 = ldb_init(test_ctx, test_ctx->ev);
#  516|   		ret = ldb_connect(ldb3, test_ctx->dbpath, 0, NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def93]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:540:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:510:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:540:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:540:9: danger: use of uninitialized value ‘pipes[1]’ here
#  538|   		exit(LDB_SUCCESS);
#  539|   	}
#  540|-> 	close(pipes[1]);
#  541|   	ret = read(pipes[0], buf, 2);
#  542|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:550:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:510:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:540:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_lmdb_test.c:550:1: danger: ‘pipes[0]’ leaks here
#  548|   
#  549|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
#  550|-> }
#  551|   
#  552|   int main(int argc, const char **argv)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1520:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1530:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1598:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1520:24: danger: ‘pipes[0]’ leaks here
# 1518|   
# 1519|   	case LDB_REPLY_REFERRAL:
# 1520|-> 		return LDB_SUCCESS;
# 1521|   
# 1522|   	case LDB_REPLY_DONE:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def96]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1598:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1530:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1598:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1598:9: danger: use of uninitialized value ‘pipes[1]’ here
# 1596|   		exit(ret);
# 1597|   	}
# 1598|-> 	close(pipes[1]);
# 1599|   	ret = read(pipes[0], buf, 2);
# 1600|   	assert_int_equal(ret, 2);

Error: COMPILER_WARNING (CWE-477): [#def97]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1646:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1644|   	struct ldb_dn *base_search_dn;
# 1645|   
# 1646|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 1647|   
# 1648|   	base_search_dn

Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1752:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1751:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1763:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1833:19: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1915:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1752:32: danger: ‘pipes[0]’ leaks here
# 1750|   		}
# 1751|   		if (ctx->res_count == 2) {
# 1752|-> 			return LDB_SUCCESS;
# 1753|   		}
# 1754|   		break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def99]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1915:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1751:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1763:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1833:19: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1915:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1915:9: danger: use of uninitialized value ‘pipes[1]’ here
# 1913|   	 */
# 1914|   
# 1915|-> 	close(pipes[1]);
# 1916|   	ret = read(pipes[0], buf, 2);
# 1917|   	assert_int_equal(ret, 2);

Error: COMPILER_WARNING (CWE-477): [#def100]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:1965:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1963|   	}
# 1964|   
# 1965|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 1966|   
# 1967|   	ctx.basedn

Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2074:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2071:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2080:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2084:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2153:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2074:24: danger: ‘pipes[0]’ leaks here
# 2072|   	case LDB_REPLY_ENTRY:
# 2073|   	case LDB_REPLY_REFERRAL:
# 2074|-> 		return LDB_SUCCESS;
# 2075|   
# 2076|   	case LDB_REPLY_DONE:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def102]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2153:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2071:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2080:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2084:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2153:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2153:9: danger: use of uninitialized value ‘pipes[1]’ here
# 2151|   	}
# 2152|   
# 2153|-> 	close(pipes[1]);
# 2154|   	ret = read(pipes[0], buf, 2);
# 2155|   	assert_int_equal(ret, 2);

Error: COMPILER_WARNING (CWE-477): [#def103]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2205:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2203|   	struct ldb_result *res2;
# 2204|   
# 2205|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 2206|   
# 2207|   	ctx.basedn

Error: GCC_ANALYZER_WARNING (CWE-457): [#def104]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2366:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2360:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2364:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2365:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2366:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2366:17: danger: use of uninitialized value ‘pipes[0]’ here
# 2364|   		TALLOC_FREE(search_test_ctx->ldb_test_ctx->ldb);
# 2365|   		TALLOC_FREE(search_test_ctx->ldb_test_ctx->ev);
# 2366|-> 		close(pipes[0]);
# 2367|   		search_test_ctx->ldb_test_ctx->ev = tevent_context_init(search_test_ctx->ldb_test_ctx);
# 2368|   		if (search_test_ctx->ldb_test_ctx->ev == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def105]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2435:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2360:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2435:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2435:9: danger: use of uninitialized value ‘pipes[1]’ here
# 2433|   		exit(ret);
# 2434|   	}
# 2435|-> 	close(pipes[1]);
# 2436|   
# 2437|   	ret = read(pipes[0], buf, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2490:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2360:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2435:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2490:1: danger: ‘pipes[0]’ leaks here
# 2488|   	/* We got the result */
# 2489|   	assert_int_equal(res2->count, 1);
# 2490|-> }
# 2491|   
# 2492|   /*

Error: COMPILER_WARNING (CWE-477): [#def107]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:2689:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2687|   	}
# 2688|   
# 2689|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 2690|   
# 2691|   	ctx.basedn

Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4109:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4135:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4138:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4146:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4198:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4109:24: danger: ‘pipes[0]’ leaks here
# 4107|   
# 4108|   	case LDB_REPLY_REFERRAL:
# 4109|-> 		return LDB_SUCCESS;
# 4110|   
# 4111|   	case LDB_REPLY_DONE:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def109]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4149:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4135:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4138:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4146:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4147:33: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4149:17: danger: use of uninitialized value ‘pipes[0]’ here
# 4147|   		struct MDB_env *env = NULL;
# 4148|   		struct MDB_envinfo stat;
# 4149|-> 		close(pipes[0]);
# 4150|   
# 4151|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def110]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4198:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4135:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4138:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4146:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4198:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4198:9: danger: use of uninitialized value ‘pipes[1]’ here
# 4196|   		exit(LDB_SUCCESS);
# 4197|   	}
# 4198|-> 	close(pipes[1]);
# 4199|   	ret = read(pipes[0], buf, 2);
# 4200|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def111]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4279:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4278:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4279:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4279:17: danger: use of uninitialized value ‘pipes[0]’ here
# 4277|   	child_pid = fork();
# 4278|   	if (child_pid == 0) {
# 4279|-> 		close(pipes[0]);
# 4280|   		ret = ldb_transaction_start(ldb1);
# 4281|   		if (ret != LDB_ERR_PROTOCOL_ERROR) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def112]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4298:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4278:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4298:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4298:9: danger: use of uninitialized value ‘pipes[1]’ here
# 4296|   		exit(LDB_SUCCESS);
# 4297|   	}
# 4298|-> 	close(pipes[1]);
# 4299|   	ret = read(pipes[0], buf, 2);
# 4300|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4308:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4278:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4298:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4308:1: danger: ‘pipes[0]’ leaks here
# 4306|   
# 4307|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
# 4308|-> }
# 4309|   
# 4310|   static void test_transaction_commit_across_fork(void **state)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def114]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4337:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4336:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4337:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4337:17: danger: use of uninitialized value ‘pipes[0]’ here
# 4335|   	child_pid = fork();
# 4336|   	if (child_pid == 0) {
# 4337|-> 		close(pipes[0]);
# 4338|   		ret = ldb_transaction_commit(ldb1);
# 4339|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def115]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4357:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4336:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4357:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4357:9: danger: use of uninitialized value ‘pipes[1]’ here
# 4355|   		exit(LDB_SUCCESS);
# 4356|   	}
# 4357|-> 	close(pipes[1]);
# 4358|   	ret = read(pipes[0], buf, 2);
# 4359|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4367:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4336:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4357:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4367:1: danger: ‘pipes[0]’ leaks here
# 4365|   
# 4366|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
# 4367|-> }
# 4368|   
# 4369|   static void test_lock_read_across_fork(void **state)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def117]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4396:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4392:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4394:36: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4396:17: danger: use of uninitialized value ‘pipes[0]’ here
# 4394|   		struct ldb_result *result = NULL;
# 4395|   
# 4396|-> 		close(pipes[0]);
# 4397|   
# 4398|   		basedn = ldb_dn_new_fmt(test_ctx, test_ctx->ldb, "dc=test");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def118]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4425:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4392:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4425:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4425:9: danger: use of uninitialized value ‘pipes[1]’ here
# 4423|   		exit(LDB_SUCCESS);
# 4424|   	}
# 4425|-> 	close(pipes[1]);
# 4426|   	ret = read(pipes[0], buf, 2);
# 4427|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def119]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4491:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4488:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4491:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4491:17: danger: use of uninitialized value ‘pipes[0]’ here
# 4489|   		struct ldb_context *ldb3 = NULL;
# 4490|   
# 4491|-> 		close(pipes[0]);
# 4492|   		ldb3 = ldb_init(test_ctx, test_ctx->ev);
# 4493|   		ret = ldb_connect(ldb3, test_ctx->dbpath, 0, NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def120]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4508:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4488:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4508:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4508:9: danger: use of uninitialized value ‘pipes[1]’ here
# 4506|   		exit(LDB_SUCCESS);
# 4507|   	}
# 4508|-> 	close(pipes[1]);
# 4509|   	ret = read(pipes[0], buf, 2);
# 4510|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4518:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4488:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4508:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_mod_op_test.c:4518:1: danger: ‘pipes[0]’ leaks here
# 4516|   
# 4517|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
# 4518|-> }
# 4519|   
# 4520|   int main(int argc, const char **argv)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def122]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:246:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:242:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:246:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:246:17: danger: use of uninitialized value ‘pipes[0]’ here
#  244|   		TDB_CONTEXT *tdb3 = NULL;
#  245|   
#  246|-> 		close(pipes[0]);
#  247|   		ldb3 = ldb_init(test_ctx, test_ctx->ev);
#  248|   		ret = ldb_connect(ldb3, test_ctx->dbpath, 0, NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def123]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:272:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:242:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:272:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:272:9: danger: use of uninitialized value ‘pipes[1]’ here
#  270|   		exit(LDB_SUCCESS);
#  271|   	}
#  272|-> 	close(pipes[1]);
#  273|   	ret = read(pipes[0], buf, 2);
#  274|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:282:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:242:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:272:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:282:1: danger: ‘pipes[0]’ leaks here
#  280|   
#  281|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
#  282|-> }
#  283|   
#  284|   static void test_multiple_opens_across_fork_triggers_reopen(void **state)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def125]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:331:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:328:12: branch_true: following ‘true’ branch (when ‘child_pid == 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:331:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:331:17: danger: use of uninitialized value ‘pipes[0]’ here
#  329|   		struct ldb_context *ldb3 = NULL;
#  330|   
#  331|-> 		close(pipes[0]);
#  332|   		ldb3 = ldb_init(test_ctx, test_ctx->ev);
#  333|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def126]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:359:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:328:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:359:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:359:9: danger: use of uninitialized value ‘pipes[1]’ here
#  357|   		exit(LDB_SUCCESS);
#  358|   	}
#  359|-> 	close(pipes[1]);
#  360|   	ret = read(pipes[0], buf, 2);
#  361|   	assert_int_equal(ret, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:369:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:328:12: branch_false: following ‘false’ branch (when ‘child_pid != 0’)...
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:359:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tests/ldb_tdb_test.c:369:1: danger: ‘pipes[0]’ leaks here
#  367|   
#  368|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
#  369|-> }
#  370|   
#  371|   int main(int argc, const char **argv)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:335:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("uid")’
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:335:13: danger: ‘strdup("uid")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  333|   	ldb_msg_add_string(msg, "@IDXATTR", strdup("uid"));
#  334|   
#  335|-> 	if (ldb_add(*ldb, msg) != 0) {
#  336|   		printf("Add of %s failed - %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(*ldb));
#  337|   		exit(LDB_ERR_OPERATIONS_ERROR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:346:39: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:346:39: danger: ‘strdup("test")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  344|   	ldb_dn_add_child_fmt(msg->dn, "cn=test");
#  345|   	ldb_msg_add_string(msg, "cn", strdup("test"));
#  346|-> 	ldb_msg_add_string(msg, "sn", strdup("test"));
#  347|   	ldb_msg_add_string(msg, "uid", strdup("test"));
#  348|   	ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson"));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:347:40: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:346:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:347:40: danger: ‘strdup("test")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  345|   	ldb_msg_add_string(msg, "cn", strdup("test"));
#  346|   	ldb_msg_add_string(msg, "sn", strdup("test"));
#  347|-> 	ldb_msg_add_string(msg, "uid", strdup("test"));
#  348|   	ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson"));
#  349|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:348:48: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:346:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:347:40: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:348:48: danger: ‘strdup("test")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#  346|   	ldb_msg_add_string(msg, "sn", strdup("test"));
#  347|   	ldb_msg_add_string(msg, "uid", strdup("test"));
#  348|-> 	ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson"));
#  349|   
#  350|   	if (ldb_add(*ldb, msg) != LDB_SUCCESS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:350:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("OpenLDAPperson")’
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:346:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:347:40: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:348:48: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/ldb/tools/ldbtest.c:350:13: danger: ‘strdup("OpenLDAPperson")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  348|   	ldb_msg_add_string(msg, "objectClass", strdup("OpenLDAPperson"));
#  349|   
#  350|-> 	if (ldb_add(*ldb, msg) != LDB_SUCCESS) {
#  351|   		printf("Add of %s failed - %s\n", ldb_dn_get_linearized(msg->dn), ldb_errstring(*ldb));
#  352|   		exit(LDB_ERR_OPERATIONS_ERROR);

Error: GCC_ANALYZER_WARNING: [#def133]
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:134:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘signal_fd’
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:117:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:121:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:123:9: release_resource: closed here
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:130:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:134:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:134:15: danger: ‘signal_fd’ could be invalid
#  132|   	}
#  133|   
#  134|-> 	ret = dup2(pool->pipe_fds[0], signal_fd);
#  135|   	if (ret != 0) {
#  136|   		return errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:139:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*pool.pipe_fds[0]’
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:117:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:121:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:130:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:134:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:135:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:139:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/pthreadpool/pthreadpool_pipe.c:139:9: danger: ‘*pool.pipe_fds[0]’ leaks here
#  137|   	}
#  138|   
#  139|-> 	pool->pipe_fds[0] = signal_fd;
#  140|   	pool->num_jobs = 0;
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def135]
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:114:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir("test.dir")’ where non-null expected
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:95:5: enter_function: entry to ‘test_readdir_os2_delete’
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:104:9: call_function: calling ‘create_files’ from ‘test_readdir_os2_delete’
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:104:9: return_function: returning to ‘test_readdir_os2_delete’ from ‘create_files’
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:109:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:111:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:111:13: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../lib/replace/tests/os2_delete.c:114:14: danger: argument 1 (‘opendir("test.dir")’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#  112|   
#  113|   	/* skip past . and .. */
#  114|-> 	de = readdir(d);
#  115|   	strcmp(de->d_name, ".") == 0 || FAILED("match .");
#  116|   	de = readdir(d);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:172:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:170:13: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:172:15: danger: argument 2 (‘x’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  170|   	x = strdup("bla");
#  171|   
#  172|-> 	cmp = strcmp("bla", x);
#  173|   	if (cmp != 0) {
#  174|   		printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:271:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘x’
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:270:13: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:271:15: danger: ‘x’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  269|   	printf("test: strndup\n");
#  270|   	x = strndup("bla", 0);
#  271|-> 	cmp = strcmp(x, "");
#  272|   	free(x);
#  273|   	if (cmp != 0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def138]
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:279:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:270:13: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:273:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:278:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:278:13: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:279:15: danger: argument 1 (‘x’) from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#  277|   
#  278|   	x = strndup("bla", 2);
#  279|-> 	cmp = strcmp(x, "bl");
#  280|   	free(x);
#  281|   	if (cmp != 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1108:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1096:19: branch_true: following ‘true’ branch (when ‘i != 100’)...
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1097:22: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1097:22: acquire_resource: opened here
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1098:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1106:20: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/replace/tests/testsuite.c:1108:25: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 1106|   		if (fd >= 1000) {
# 1107|   			printf("fd=%d\n", fd);
# 1108|-> 			closefrom(3);
# 1109|   			return false;
# 1110|   		}

Error: COMPILER_WARNING (CWE-477): [#def140]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1680:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1678|   
# 1679|   	printf("==== talloc_set_memlimit(l1, 2048)\n");
# 1680|-> 	torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
# 1681|   		"failed: setting memlimit should never fail\n");
# 1682|   

Error: COMPILER_WARNING (CWE-477): [#def141]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1740:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1738|   
# 1739|   	printf("==== talloc_set_memlimit(l3, 1024)\n");
# 1740|-> 	torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
# 1741|   		"failed: setting memlimit should never fail\n");
# 1742|   

Error: COMPILER_WARNING (CWE-477): [#def142]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1753:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1751|   
# 1752|   	printf("==== talloc_set_memlimit(l4, 512)\n");
# 1753|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
# 1754|   		"failed: setting memlimit should never fail\n");
# 1755|   

Error: COMPILER_WARNING (CWE-477): [#def143]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1787:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1785|   
# 1786|   	printf("==== talloc_set_memlimit(l4, 512)\n");
# 1787|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
# 1788|   		"failed: setting memlimit should never fail\n");
# 1789|   

Error: COMPILER_WARNING (CWE-477): [#def144]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1820:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1818|   
# 1819|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
# 1820|-> 	talloc_set_memlimit(pool, 10*1024);
# 1821|   	for (i = 0; i < 9; i++) {
# 1822|   		printf("==== talloc_size(pool, 1024) %i/10\n", i + 1);

Error: COMPILER_WARNING (CWE-477): [#def145]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1873:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1871|   	/* Increase the memlimit */
# 1872|   	printf("==== talloc_set_memlimit(pool, 11*1024)\n");
# 1873|-> 	talloc_set_memlimit(pool, 11*1024);
# 1874|   
# 1875|   	/* The final realloc should still fail

Error: COMPILER_WARNING (CWE-477): [#def146]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1885:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1883|   
# 1884|   	printf("==== talloc_set_memlimit(pool, 21*1024)\n");
# 1885|-> 	talloc_set_memlimit(pool, 21*1024);
# 1886|   
# 1887|   	/* There's now sufficient space to move the chunk out of the pool */

Error: COMPILER_WARNING (CWE-477): [#def147]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1923:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1921|   
# 1922|   	printf("==== talloc_set_memlimit(pool, 1024)\n");
# 1923|-> 	talloc_set_memlimit(pool, 1024);
# 1924|   
# 1925|   	/* We should still be able to allocate up to the pool limit

Error: COMPILER_WARNING (CWE-477): [#def148]
samba-4.22.1/bin/default/../../lib/talloc/testsuite.c:1944:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1942|   
# 1943|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
# 1944|-> 	talloc_set_memlimit(pool, 10*1024);
# 1945|   
# 1946|   	printf("==== talloc_size(pool, 1024)\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def149]
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[0]’
/usr/include/tdb.h:1005:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:844:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:848:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:851:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:855:9: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:863:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:864:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:867:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:868:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:869:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:993:9: call_function: inlined call to ‘tdb_robust_mutex_wait_for_child’ from ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_false: following ‘false’ branch (when ‘m’ is NULL)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:998:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:998:12: branch_false: following ‘false’ branch (when ‘cleanup_ma == 0’)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1001:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1001:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1004:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1004:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1013:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: danger: ‘pipe_down[0]’ leaks here
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def150]
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[1]’
/usr/include/tdb.h:1005:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:844:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:848:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:851:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:855:9: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:863:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:864:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:867:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:868:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:869:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:993:9: call_function: inlined call to ‘tdb_robust_mutex_wait_for_child’ from ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_false: following ‘false’ branch (when ‘m’ is NULL)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:998:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:998:12: branch_false: following ‘false’ branch (when ‘cleanup_ma == 0’)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1001:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1001:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1004:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1004:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1013:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: danger: ‘pipe_down[1]’ leaks here
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[0]’
/usr/include/tdb.h:1005:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:844:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:848:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:851:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:855:9: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:863:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:864:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:867:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:868:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:872:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:993:9: call_function: inlined call to ‘tdb_robust_mutex_wait_for_child’ from ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_false: following ‘false’ branch (when ‘m’ is NULL)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:998:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1004:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1013:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: danger: ‘pipe_up[0]’ leaks here
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def152]
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[1]’
/usr/include/tdb.h:1005:15: enter_function: entry to ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:844:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:848:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:851:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:855:9: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:859:12: branch_false: following ‘false’ branch (when ‘ptr != 18446744073709551615’)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:863:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:864:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:867:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:868:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:872:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:993:9: call_function: inlined call to ‘tdb_robust_mutex_wait_for_child’ from ‘tdb_runtime_check_for_robust_mutexes’
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:995:12: branch_false: following ‘false’ branch (when ‘m’ is NULL)...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:998:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1004:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1007:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1010:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:1013:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/tdb/common/mutex.c:845:24: danger: ‘pipe_up[1]’ leaks here
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: COMPILER_WARNING (CWE-477): [#def153]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1716:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
# 1714|   	torture_comment(tctx, "tevent backend '%s'\n", backend);
# 1715|   
# 1716|-> 	wrap_ev = tevent_context_wrapper_create(
# 1717|   		ev, ev,	&test_wrapper_ops, &state, struct test_wrapper_state);
# 1718|   	torture_assert_not_null_goto(tctx, wrap_ev, ok, done,

Error: COMPILER_WARNING (CWE-477): [#def154]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1760:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
# 1758|   				  state);
# 1759|   
# 1760|-> 	ret2 = tevent_context_push_use(wrap_ev);
# 1761|   	torture_assert_goto(tctx, ret2, ok, done, "tevent_context_push_use(wrap_ev) failed\n");
# 1762|   	ret2 = tevent_context_push_use(ev);

Error: COMPILER_WARNING (CWE-477): [#def155]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1762:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
# 1760|   	ret2 = tevent_context_push_use(wrap_ev);
# 1761|   	torture_assert_goto(tctx, ret2, ok, done, "tevent_context_push_use(wrap_ev) failed\n");
# 1762|-> 	ret2 = tevent_context_push_use(ev);
# 1763|   	torture_assert_goto(tctx, ret2, ok, pop_use, "tevent_context_push_use(ev) failed\n");
# 1764|   	tevent_context_pop_use(ev);

Error: COMPILER_WARNING (CWE-477): [#def156]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1764:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1762|   	ret2 = tevent_context_push_use(ev);
# 1763|   	torture_assert_goto(tctx, ret2, ok, pop_use, "tevent_context_push_use(ev) failed\n");
# 1764|-> 	tevent_context_pop_use(ev);
# 1765|   	tevent_context_pop_use(wrap_ev);
# 1766|   

Error: COMPILER_WARNING (CWE-477): [#def157]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1765:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1763|   	torture_assert_goto(tctx, ret2, ok, pop_use, "tevent_context_push_use(ev) failed\n");
# 1764|   	tevent_context_pop_use(ev);
# 1765|-> 	tevent_context_pop_use(wrap_ev);
# 1766|   
# 1767|   	ret = tevent_loop_wait(ev);

Error: COMPILER_WARNING (CWE-477): [#def158]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1794:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1792|   	return ok;
# 1793|   pop_use:
# 1794|-> 	tevent_context_pop_use(wrap_ev);
# 1795|   	goto done;
# 1796|   }

Error: COMPILER_WARNING (CWE-477): [#def159]
samba-4.22.1/bin/default/../../lib/tevent/testsuite.c:1889:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
# 1887|   	torture_comment(tctx, "tevent backend '%s'\n", backend);
# 1888|   
# 1889|-> 	wrap_ev = tevent_context_wrapper_create(
# 1890|   		ev, ev,	&test_wrapper_ops, &state, struct test_wrapper_state);
# 1891|   	torture_assert_not_null_goto(tctx, wrap_ev, ok, done,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16548:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16830:22: enter_function: entry to ‘next_codepoint_ext’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: call_function: calling ‘get_iconv_handle’ from ‘next_codepoint_ext’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: return_function: returning to ‘next_codepoint_ext’ from ‘get_iconv_handle’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: call_function: calling ‘next_codepoint_handle_ext’ from ‘next_codepoint_ext’
#16546|   	switch (ch) {
#16547|   	case CH_UTF16: return "UTF-16LE";
#16548|-> 	case CH_UNIX: return ic->unix_charset;
#16549|   	case CH_DOS: return ic->dos_charset;
#16550|   	case CH_UTF8: return "UTF8";

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16549:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16830:22: enter_function: entry to ‘next_codepoint_ext’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: call_function: calling ‘get_iconv_handle’ from ‘next_codepoint_ext’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: return_function: returning to ‘next_codepoint_ext’ from ‘get_iconv_handle’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: call_function: calling ‘next_codepoint_handle_ext’ from ‘next_codepoint_ext’
#16547|   	case CH_UTF16: return "UTF-16LE";
#16548|   	case CH_UNIX: return ic->unix_charset;
#16549|-> 	case CH_DOS: return ic->dos_charset;
#16550|   	case CH_UTF8: return "UTF8";
#16551|   	case CH_UTF16BE: return "UTF-16BE";

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16643:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16830:22: enter_function: entry to ‘next_codepoint_ext’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: call_function: calling ‘get_iconv_handle’ from ‘next_codepoint_ext’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: return_function: returning to ‘next_codepoint_ext’ from ‘get_iconv_handle’
samba-4.22.1/bin/default/../../lib/util/charset/codepoints.c:16833:16: call_function: calling ‘next_codepoint_handle_ext’ from ‘next_codepoint_ext’
#16641|   
#16642|   	ic->conv_handles[from][to] = smb_iconv_open_ex(ic, n2, n1,
#16643|-> 						       ic->use_builtin_handlers);
#16644|   
#16645|   	if (ic->conv_handles[from][to] == (smb_iconv_t)-1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:40:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-16LE", "UCS-4LE")’
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:370:13: enter_function: entry to ‘test_random_5m’
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:375:13: call_function: calling ‘iconv_untestable’ from ‘test_random_5m’
#   38|   
#   39|   	cd = iconv_open("UTF-16LE", "UCS-4LE");
#   40|-> 	if (cd == (iconv_t)-1)
#   41|   		torture_skip(tctx, "unable to test - system iconv library does not support UTF-16LE -> UCS-4LE");
#   42|   	iconv_close(cd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:45:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-16LE", "CP850")’
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:370:13: enter_function: entry to ‘test_random_5m’
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:375:13: call_function: calling ‘iconv_untestable’ from ‘test_random_5m’
#   43|   
#   44|   	cd = iconv_open("UTF-16LE", "CP850");
#   45|-> 	if (cd == (iconv_t)-1)
#   46|   		torture_skip(tctx, "unable to test - system iconv library does not support UTF-16LE -> CP850\n");
#   47|   	iconv_close(cd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:65:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:343:13: enter_function: entry to ‘test_first_1m’
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:349:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:352:26: branch_true: following ‘true’ branch (when ‘codepoint != 1048576’)...
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:353:21: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/charset/tests/iconv.c:353:21: call_function: calling ‘gen_codepoint_utf16’ from ‘test_first_1m’
#   63|   		cd = iconv_open("UTF-16LE", "UCS-4LE");
#   64|   		if (cd == (iconv_t)-1) {
#   65|-> 			cd = NULL;
#   66|   			return -1;
#   67|   		}

Error: GCC_ANALYZER_WARNING: [#def166]
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:68:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:42:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:46:23: release_resource: closed here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:47:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:51:28: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:61:12: branch_false: following ‘false’ branch (when ‘fd != dev_null’)...
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:68:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:68:15: danger: ‘fd’ could be invalid
#   66|   	}
#   67|   
#   68|-> 	ret = dup2(dev_null, fd);
#   69|   	if (ret == -1) {
#   70|   		int err = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def167]
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:74:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:57:12: branch_false: following ‘false’ branch (when ‘dev_null != -1’)...
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:61:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:61:12: branch_false: following ‘false’ branch (when ‘fd != dev_null’)...
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:68:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:68:15: acquire_resource: opened here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:69:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:74:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/close_low_fd.c:74:9: danger: ‘ret’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   72|   		return err;
#   73|   	}
#   74|-> 	close(dev_null);
#   75|   	return 0;
#   76|   }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def168]
samba-4.22.1/bin/default/../../lib/util/idtree.c:261:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.22.1/bin/default/../../lib/util/idtree.c:366:14: enter_function: entry to ‘idr_get_new_above’
samba-4.22.1/bin/default/../../lib/util/idtree.c:369:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/idtree.c:370:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/idtree.c:370:17: call_function: calling ‘idr_remove’ from ‘idr_get_new_above’
#  259|   		n = (id >> shift) & IDR_MASK;
#  260|   		clear_bit(n, p->bitmap);
#  261|-> 		*++paa = &p->ary[n];
#  262|   		p = p->ary[n];
#  263|   		shift -= IDR_BITS;

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def169]
samba-4.22.1/bin/default/../../lib/util/pidfile.c:146:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
samba-4.22.1/bin/default/../../lib/util/pidfile.c:146:23: release_resource: first ‘close’ here
samba-4.22.1/bin/default/../../lib/util/pidfile.c:147:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/pidfile.c:146:23: danger: second ‘close’ here; first ‘close’ was at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  144|   
#  145|   	do {
#  146|-> 		ret = close(fd);
#  147|   	} while ((ret == -1) && (errno == EINTR));
#  148|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def170]
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:129:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:111:21: branch_true: following ‘true’ branch (when ‘j != 5’)...
 branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:117:24: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:121:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:122:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:122:17: branch_false: following ‘false’ branch (when ‘__got == __expected’)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:127:29: branch_true: following ‘true’ branch (when ‘i < num’)...
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:128:29: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:129:25: branch_false: following ‘false’ branch (when the strings are equal)...
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:127:38: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:127:29: branch_true: following ‘true’ branch (when ‘i < num’)...
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:128:29: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:129:25: release_memory: ‘0’ is NULL
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:129:25: release_memory: ‘0’ is NULL
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:129:25: release_memory: ‘0’ is NULL
samba-4.22.1/bin/default/../../lib/util/tests/strv_util.c:129:25: danger: argument 2 (‘data[j].out[i]’) NULL where non-null expected
#  127|   		for (i = 0; i < num; i++) {
#  128|   			t = strv_next(strv, t);
#  129|-> 			torture_assert(tctx,
#  130|   				       strcmp(t, d->out[i]) == 0,
#  131|   				       "strv_split() failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘down[0]’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:307:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:308:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:310:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:311:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:312:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: danger: ‘down[0]’ leaks here
#  303|   
#  304|   	ret = pipe(&up[0]);
#  305|-> 	torture_assert(tctx, ret == 0, "pipe failed\n");
#  306|   
#  307|   	ret = pipe(&down[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘down[1]’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:307:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:308:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:310:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:311:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:312:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: danger: ‘down[1]’ leaks here
#  303|   
#  304|   	ret = pipe(&up[0]);
#  305|-> 	torture_assert(tctx, ret == 0, "pipe failed\n");
#  306|   
#  307|   	ret = pipe(&down[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up[0]’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:307:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:308:9: branch_true: following ‘true’ branch (when ‘ret != 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:308:9: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: danger: ‘up[0]’ leaks here
#  303|   
#  304|   	ret = pipe(&up[0]);
#  305|-> 	torture_assert(tctx, ret == 0, "pipe failed\n");
#  306|   
#  307|   	ret = pipe(&down[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up[1]’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:307:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:308:9: branch_true: following ‘true’ branch (when ‘ret != 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:308:9: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:305:9: danger: ‘up[1]’ leaks here
#  303|   
#  304|   	ret = pipe(&up[0]);
#  305|-> 	torture_assert(tctx, ret == 0, "pipe failed\n");
#  306|   
#  307|   	ret = pipe(&down[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:367:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up[0]’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:367:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:369:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:370:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:371:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:367:9: danger: ‘up[0]’ leaks here
#  365|   
#  366|   	ret = pipe(&up[0]);
#  367|-> 	torture_assert(tctx, ret == 0, "pipe failed\n");
#  368|   
#  369|   	t = tfork_create();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:367:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up[1]’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:367:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:369:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:370:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:371:17: branch_true: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:367:9: danger: ‘up[1]’ leaks here
#  365|   
#  366|   	ret = pipe(&up[0]);
#  367|-> 	torture_assert(tctx, ret == 0, "pipe failed\n");
#  368|   
#  369|   	t = tfork_create();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:695:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:694:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:699:18: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:700:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:708:18: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:711:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:715:18: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:716:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:724:18: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:734:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:738:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:738:14: acquire_resource: opened here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:740:9: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:743:18: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tests/tfork.c:695:17: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  693|   	t1 = tfork_create();
#  694|   	if (t1 == NULL) {
#  695|-> 		torture_fail(tctx, "tfork failed\n");
#  696|   		return false;
#  697|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:197:13: enter_function: entry to ‘value_parser’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:208:12: branch_false: following ‘false’ branch (when ‘section’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:211:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:211:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:214:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:214:12: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:218:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:221:17: call_function: calling ‘find_entry’ from ‘value_parser’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:221:17: return_function: returning to ‘value_parser’ from ‘find_entry’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:222:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:235:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:236:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:239:22: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:239:22: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:240:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:244:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:247:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:252:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:255:9: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#  253|   
#  254|   	entry->next_entry = section->entry_list;
#  255|-> 	section->entry_list = entry;
#  256|   	return true;
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:197:13: enter_function: entry to ‘value_parser’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:208:12: branch_false: following ‘false’ branch (when ‘section’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:211:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:211:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:214:12: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:214:12: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:218:19: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:221:17: call_function: calling ‘find_entry’ from ‘value_parser’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:221:17: return_function: returning to ‘value_parser’ from ‘find_entry’
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:222:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:235:17: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:235:17: acquire_memory: allocated here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:236:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:239:22: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:240:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:244:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:247:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:252:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/tiniparser.c:255:9: danger: ‘entry’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  253|   
#  254|   	entry->next_entry = section->entry_list;
#  255|-> 	section->entry_list = entry;
#  256|   	return true;
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
samba-4.22.1/bin/default/../../lib/util/util.c:677:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf1’ where non-null expected
samba-4.22.1/bin/default/../../lib/util/util.c:704:15: enter_function: entry to ‘dump_data_file_diff’
samba-4.22.1/bin/default/../../lib/util/util.c:709:9: call_function: calling ‘dump_data_diff_cb’ from ‘dump_data_file_diff’
#  675|   
#  676|   		if ((this_len1 == this_len2) &&
#  677|-> 		    (memcmp(this_buf1, this_buf2, this_len1) == 0))
#  678|   		{
#  679|   			dump_data_block16(" ", i, this_buf1, this_len1,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def181]
samba-4.22.1/bin/default/../../lib/util/util.c:677:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf2’ where non-null expected
samba-4.22.1/bin/default/../../lib/util/util.c:704:15: enter_function: entry to ‘dump_data_file_diff’
samba-4.22.1/bin/default/../../lib/util/util.c:709:9: call_function: calling ‘dump_data_diff_cb’ from ‘dump_data_file_diff’
#  675|   
#  676|   		if ((this_len1 == this_len2) &&
#  677|-> 		    (memcmp(this_buf1, this_buf2, this_len1) == 0))
#  678|   		{
#  679|   			dump_data_block16(" ", i, this_buf1, this_len1,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
samba-4.22.1/bin/default/../../lib/util/util_file.c:218:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
samba-4.22.1/bin/default/../../lib/util/util_file.c:172:16: enter_function: entry to ‘fd_load’
samba-4.22.1/bin/default/../../lib/util/util_file.c:184:16: call_function: calling ‘fdopen_keepfd’ from ‘fd_load’
samba-4.22.1/bin/default/../../lib/util/util_file.c:184:16: return_function: returning to ‘fd_load’ from ‘fdopen_keepfd’
samba-4.22.1/bin/default/../../lib/util/util_file.c:185:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_file.c:189:16: branch_false: following ‘false’ branch (when ‘maxsize <= size’)...
samba-4.22.1/bin/default/../../lib/util/util_file.c:213:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_file.c:214:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
samba-4.22.1/bin/default/../../lib/util/util_file.c:218:10: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_file.c:218:10: release_memory: ‘p’ is NULL
samba-4.22.1/bin/default/../../lib/util/util_file.c:218:9: danger: dereference of NULL ‘p + size’
#  216|   	}
#  217|   
#  218|-> 	p[size] = '\0';
#  219|   
#  220|   	if (psize != NULL) {

Error: GCC_ANALYZER_WARNING: [#def183]
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:235:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:226:9: release_resource: closed here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:235:9: danger: ‘0’ could be invalid
#  233|   
#  234|   	/* setup for logging to go to the parents debug log */
#  235|-> 	dup2(p3[0], 0);
#  236|   	dup2(p1[1], 1);
#  237|   	dup2(p2[1], 2);

Error: GCC_ANALYZER_WARNING: [#def184]
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:236:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:227:9: release_resource: closed here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:236:9: danger: ‘1’ could be invalid
#  234|   	/* setup for logging to go to the parents debug log */
#  235|   	dup2(p3[0], 0);
#  236|-> 	dup2(p1[1], 1);
#  237|   	dup2(p2[1], 2);
#  238|   

Error: GCC_ANALYZER_WARNING: [#def185]
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:237:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:228:9: release_resource: closed here
samba-4.22.1/bin/default/../../lib/util/util_runcmd.c:237:9: danger: ‘2’ could be invalid
#  235|   	dup2(p3[0], 0);
#  236|   	dup2(p1[1], 1);
#  237|-> 	dup2(p2[1], 2);
#  238|   
#  239|   	close(p1[1]);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def186]
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:211:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘plain_data’
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:165:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:169:17: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:188:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:192:12: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:192:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:196:14: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:196:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:202:18: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:208:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:210:9: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/drsuapi/repl_decrypt.c:211:9: danger: use of uninitialized value ‘plain_data’ here
#  209|   
#  210|   	talloc_free(attr->value_ctr.values[0].blob->data);
#  211|-> 	*attr->value_ctr.values[0].blob = plain_data;
#  212|   
#  213|   	return WERR_OK;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
samba-4.22.1/bin/default/../../libcli/nbt/namequery.c:83:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../libcli/nbt/namequery.c:129:19: enter_function: entry to ‘nbt_name_query’
samba-4.22.1/bin/default/../../libcli/nbt/namequery.c:133:16: call_function: calling ‘nbt_name_query_recv’ from ‘nbt_name_query’
#   81|   	status = nbt_name_request_recv(req);
#   82|   	if (!NT_STATUS_IS_OK(status) ||
#   83|-> 	    req->num_replies == 0) {
#   84|   		talloc_free(req);
#   85|   		return status;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
samba-4.22.1/bin/default/../../libcli/nbt/namequery.c:187:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../libcli/nbt/namequery.c:227:19: enter_function: entry to ‘nbt_name_status’
samba-4.22.1/bin/default/../../libcli/nbt/namequery.c:231:16: call_function: calling ‘nbt_name_status_recv’ from ‘nbt_name_status’
#  185|   	status = nbt_name_request_recv(req);
#  186|   	if (!NT_STATUS_IS_OK(status) ||
#  187|-> 	    req->num_replies == 0) {
#  188|   		talloc_free(req);
#  189|   		return status;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
samba-4.22.1/bin/default/../../libcli/nbt/namerefresh.c:98:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../libcli/nbt/namerefresh.c:132:19: enter_function: entry to ‘nbt_name_refresh’
samba-4.22.1/bin/default/../../libcli/nbt/namerefresh.c:136:16: call_function: calling ‘nbt_name_refresh_recv’ from ‘nbt_name_refresh’
#   96|   	status = nbt_name_request_recv(req);
#   97|   	if (!NT_STATUS_IS_OK(status) ||
#   98|-> 	    req->num_replies == 0) {
#   99|   		talloc_free(req);
#  100|   		return status;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
samba-4.22.1/bin/default/../../libcli/nbt/nameregister.c:106:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../libcli/nbt/nameregister.c:140:19: enter_function: entry to ‘nbt_name_register’
samba-4.22.1/bin/default/../../libcli/nbt/nameregister.c:144:16: call_function: calling ‘nbt_name_register_recv’ from ‘nbt_name_register’
#  104|   	status = nbt_name_request_recv(req);
#  105|   	if (!NT_STATUS_IS_OK(status) ||
#  106|-> 	    req->num_replies == 0) {
#  107|   		talloc_free(req);
#  108|   		return status;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
samba-4.22.1/bin/default/../../libcli/nbt/namerelease.c:95:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../libcli/nbt/namerelease.c:129:19: enter_function: entry to ‘nbt_name_release’
samba-4.22.1/bin/default/../../libcli/nbt/namerelease.c:133:16: call_function: calling ‘nbt_name_release_recv’ from ‘nbt_name_release’
#   93|   	status = nbt_name_request_recv(req);
#   94|   	if (!NT_STATUS_IS_OK(status) ||
#   95|-> 	    req->num_replies == 0) {
#   96|   		talloc_free(req);
#   97|   		return status;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:100:32: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:83:24: acquire_memory: allocated here
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:84:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:88:16: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:91:17: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:97:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:100:32: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/smbreadline/smbreadline.c:100:32: danger: ‘line’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   98|   				SAFE_FREE(line);
#   99|   			}
#  100|-> 			return ret;
#  101|   		}
#  102|   		if (callback) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:394:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘query’
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:488:10: enter_function: entry to ‘create_query_node’
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:491:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:494:9: branch_false: ...to here
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:497:12: branch_true: following ‘true’ branch (when ‘op == 3’)...
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:498:32: branch_true: ...to here
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:500:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:504:37: branch_true: ...to here
samba-4.22.1/bin/default/../../libcli/wsp/wsp_aqs.c:501:25: call_function: calling ‘build_query’ from ‘create_query_node’
#  392|   	}
#  393|   
#  394|-> 	restr = query->basic_restriction;
#  395|   	src = restr->values;
#  396|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
samba-4.22.1/bin/default/../../librpc/ndr/ndr.c:554:17: warning[-Wanalyzer-jump-through-null]: jump through null pointer
samba-4.22.1/bin/default/../../librpc/ndr/ndr.c:664:16: enter_function: entry to ‘ndr_print_function_secret_string’
samba-4.22.1/bin/default/../../librpc/ndr/ndr.c:670:16: call_function: calling ‘ndr_print_generic_string’ from ‘ndr_print_function_secret_string’
#  552|   		inout_fn(ndr, name, inout_flags, ptr);
#  553|   	} else {
#  554|-> 		single_fn(ndr, name, ptr);
#  555|   	}
#  556|   	ret = talloc_steal(mem_ctx, (char *)ndr->private_data);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def195]
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:951:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tt’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:950:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:951:9: branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:951:9: danger: use of uninitialized value ‘tt’ here
#  949|   	uint32_t tt;
#  950|   	NDR_CHECK(ndr_pull_uint32(ndr, ndr_flags, &tt));
#  951|-> 	*t = tt;
#  952|   	return NDR_ERR_SUCCESS;
#  953|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def196]
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1060:69: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr[i]’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1052:28: enter_function: entry to ‘ndr_pull_ipv6address’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1057:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1058:9: branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1058:9: call_function: calling ‘ndr_pull_array_uint8’ from ‘ndr_pull_ipv6address’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1058:9: return_function: returning to ‘ndr_pull_ipv6address’ from ‘ndr_pull_array_uint8’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1058:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1059:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1060:69: branch_true: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_basic.c:1060:69: danger: use of uninitialized value ‘addr[i]’ here
# 1058|   	NDR_CHECK(ndr_pull_array_uint8(ndr, ndr_flags, addr, IPV6_BYTES));
# 1059|   	for (i = 0; i < IPV6_BYTES; ++i) {
# 1060|-> 		addr_str = talloc_asprintf_append(addr_str, "%02x", addr[i]);
# 1061|   		NDR_ERR_HAVE_NO_MEMORY(addr_str);
# 1062|   		/* We need a ':' every second byte but the last one */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:715:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:674:28: enter_function: entry to ‘ndr_pull_string_array’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:682:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:686:9: branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:688:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:690:17: branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:699:37: release_memory: ‘s’ is NULL
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:699:37: release_memory: ‘s’ is NULL
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:700:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:706:25: branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:708:25: call_function: calling ‘ndr_pull_string’ from ‘ndr_pull_string_array’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:708:25: return_function: returning to ‘ndr_pull_string_array’ from ‘ndr_pull_string’
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:708:25: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:709:25: branch_false: ...to here
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:715:29: release_memory: ‘s’ is NULL
samba-4.22.1/bin/default/../../librpc/ndr/ndr_string.c:715:29: danger: dereference of NULL ‘s’
#  713|   				break;
#  714|   			}
#  715|-> 			if (strcmp("", s)==0) {
#  716|   				a[count] = NULL;
#  717|   				break;

Error: COMPILER_WARNING (CWE-477): [#def198]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
#  733|   
#  734|   	if (resp) {
#  735|-> 		_pam_drop_reply(resp, 1);
#  736|   	}
#  737|   	return retval;

Error: COMPILER_WARNING (CWE-477): [#def199]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
#  733|   
#  734|   	if (resp) {
#  735|-> 		_pam_drop_reply(resp, 1);
#  736|   	}
#  737|   	return retval;

Error: COMPILER_WARNING (CWE-477): [#def200]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
#  904|   	}
#  905|   
#  906|-> 	_pam_drop_reply(resp, 1);
#  907|   	return retval;
#  908|   }

Error: COMPILER_WARNING (CWE-477): [#def201]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
#  904|   	}
#  905|   
#  906|-> 	_pam_drop_reply(resp, 1);
#  907|   	return retval;
#  908|   }

Error: COMPILER_WARNING (CWE-477): [#def202]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:2159:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2157|   static char *_pam_delete(register char *xx)
# 2158|   {
# 2159|-> 	_pam_overwrite(xx);
# 2160|   	_pam_drop(xx);
# 2161|   	return NULL;

Error: COMPILER_WARNING (CWE-477): [#def203]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
# 2267|   		}
# 2268|   		if (retval != PAM_SUCCESS) {
# 2269|-> 			_pam_drop_reply(resp, i);
# 2270|   			goto done;
# 2271|   		}

Error: COMPILER_WARNING (CWE-477): [#def204]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2267|   		}
# 2268|   		if (retval != PAM_SUCCESS) {
# 2269|-> 			_pam_drop_reply(resp, i);
# 2270|   			goto done;
# 2271|   		}

Error: COMPILER_WARNING (CWE-477): [#def205]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
# 2297|   		 * -- what is it for anyway? AGM
# 2298|   		 */
# 2299|-> 		_pam_drop_reply(resp, i);
# 2300|   	}
# 2301|   

Error: COMPILER_WARNING (CWE-477): [#def206]
samba-4.22.1/bin/default/../../nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2297|   		 * -- what is it for anyway? AGM
# 2298|   		 */
# 2299|-> 		_pam_drop_reply(resp, i);
# 2300|   	}
# 2301|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:335:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘session_info’
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:287:35: release_memory: ‘session_info’ is NULL
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:293:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:297:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:328:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:335:43: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:335:43: release_memory: ‘session_info’ is NULL
samba-4.22.1/bin/default/../../source3/auth/auth_generic.c:335:31: danger: dereference of NULL ‘session_info’
#  333|   	set_current_user_info(session_info->unix_info->sanitized_username,
#  334|   			      session_info->unix_info->unix_name,
#  335|-> 			      session_info->info->domain_name);
#  336|   
#  337|   	/* reload services so that the new %U is taken into account */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
samba-4.22.1/bin/default/../../source3/auth/auth_util.c:1700:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
samba-4.22.1/bin/default/../../source3/auth/auth_util.c:1772:6: enter_function: entry to ‘init_guest_session_info’
samba-4.22.1/bin/default/../../source3/auth/auth_util.c:1776:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/auth/auth_util.c:1779:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/auth/auth_util.c:1779:18: call_function: calling ‘make_new_session_info_guest’ from ‘init_guest_session_info’
# 1698|   
# 1699|   	/* This element must be provided to convert back to an auth_serversupplied_info */
# 1700|-> 	SMB_ASSERT(src->unix_info);
# 1701|   
# 1702|   	dst->guest = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
samba-4.22.1/bin/default/../../source3/auth/pampass.c:447:13: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv,  user,  password, 0)’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:821:10: enter_function: entry to ‘smb_pam_passcheck’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:834:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_passcheck’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:834:22: return_function: returning to ‘smb_pam_passcheck’ from ‘smb_setup_pam_conv’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:834:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/auth/pampass.c:837:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/auth/pampass.c:837:14: call_function: calling ‘smb_pam_start’ from ‘smb_pam_passcheck’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:837:14: return_function: returning to ‘smb_pam_passcheck’ from ‘smb_pam_start’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:447:13: danger: ‘smb_setup_pam_conv(&smb_pam_conv,  user,  password, 0)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#  445|   	struct smb_pam_userdata *udp = SMB_MALLOC_P(struct smb_pam_userdata);
#  446|   
#  447|-> 	if (pconv == NULL || udp == NULL) {
#  448|   		SAFE_FREE(pconv);
#  449|   		SAFE_FREE(udp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
samba-4.22.1/bin/default/../../source3/auth/pampass.c:447:13: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv,  user, 0, 0)’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:793:10: enter_function: entry to ‘smb_pam_accountcheck’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:801:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/auth/pampass.c:804:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/auth/pampass.c:804:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_accountcheck’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:804:22: return_function: returning to ‘smb_pam_accountcheck’ from ‘smb_setup_pam_conv’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:804:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/auth/pampass.c:807:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/auth/pampass.c:807:14: call_function: calling ‘smb_pam_start’ from ‘smb_pam_accountcheck’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:807:14: return_function: returning to ‘smb_pam_accountcheck’ from ‘smb_pam_start’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:447:13: danger: ‘smb_setup_pam_conv(&smb_pam_conv,  user, 0, 0)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#  445|   	struct smb_pam_userdata *udp = SMB_MALLOC_P(struct smb_pam_userdata);
#  446|   
#  447|-> 	if (pconv == NULL || udp == NULL) {
#  448|   		SAFE_FREE(pconv);
#  449|   		SAFE_FREE(udp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
samba-4.22.1/bin/default/../../source3/auth/pampass.c:447:13: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_passchange_conv,  user,  oldpassword,  newpassword)’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:866:6: enter_function: entry to ‘smb_pam_passchange’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:873:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_passchange’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:873:22: return_function: returning to ‘smb_pam_passchange’ from ‘smb_setup_pam_conv’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:873:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/auth/pampass.c:876:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/auth/pampass.c:876:13: call_function: calling ‘smb_pam_start’ from ‘smb_pam_passchange’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:876:13: return_function: returning to ‘smb_pam_passchange’ from ‘smb_pam_start’
samba-4.22.1/bin/default/../../source3/auth/pampass.c:447:13: danger: ‘smb_setup_pam_conv(&smb_pam_passchange_conv,  user,  oldpassword,  newpassword)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  445|   	struct smb_pam_userdata *udp = SMB_MALLOC_P(struct smb_pam_userdata);
#  446|   
#  447|-> 	if (pconv == NULL || udp == NULL) {
#  448|   		SAFE_FREE(pconv);
#  449|   		SAFE_FREE(udp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
samba-4.22.1/bin/default/../../source3/client/client.c:5868:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.22.1/bin/default/../../source3/client/client.c:5857:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5860:42: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5860:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5863:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5867:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5868:46: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/client/client.c:5868:17: danger: ‘strdup(*f.name)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 5866|   
# 5867|   	if ((info->dirmask[0] == 0) && !(f->attr & FILE_ATTRIBUTE_DIRECTORY))
# 5868|-> 		info->matches[info->count] = SMB_STRDUP(f->name);
# 5869|   	else {
# 5870|   		TALLOC_CTX *ctx = talloc_stackframe();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
samba-4.22.1/bin/default/../../source3/client/client.c:6022:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(info.matches[1], (long unsigned int)info.samelen)’
samba-4.22.1/bin/default/../../source3/client/client.c:5913:15: enter_function: entry to ‘remote_completion’
samba-4.22.1/bin/default/../../source3/client/client.c:5931:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5941:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5967:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5970:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5974:12: branch_false: following ‘false’ branch (when ‘dirmask’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/client/client.c:5977:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5977:19: call_function: calling ‘client_clean_name’ from ‘remote_completion’
samba-4.22.1/bin/default/../../source3/client/client.c:5977:19: return_function: returning to ‘remote_completion’ from ‘client_clean_name’
samba-4.22.1/bin/default/../../source3/client/client.c:5978:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5982:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5985:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5988:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5990:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:5994:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:5994:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6004:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6004:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6021:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6021:27: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/client/client.c:6022:22: danger: ‘strndup(info.matches[1], (long unsigned int)info.samelen)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/26)
# 6020|   
# 6021|   	info.matches[0] = SMB_STRNDUP(info.matches[1], info.samelen);
# 6022|-> 	info.matches[info.count] = NULL;
# 6023|   	TALLOC_FREE(ctx);
# 6024|   	return info.matches;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
samba-4.22.1/bin/default/../../source3/client/client.c:6107:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.22.1/bin/default/../../source3/client/client.c:6040:12: branch_false: following ‘false’ branch (when ‘start == 0’)...
samba-4.22.1/bin/default/../../source3/client/client.c:6078:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6079:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6082:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6085:26: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6088:36: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6090:36: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6090:36: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/client/client.c:6091:51: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6085:26: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6087:50: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/client/client.c:6088:36: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/client.c:6090:36: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6090:36: branch_false: following ‘false’ branch (when ‘count != 1’)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/client.c:6107:25: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
# 6105|   			break;
# 6106|   		default:
# 6107|-> 			matches[0] = (char *)SMB_MALLOC(samelen+1);
# 6108|   			if (!matches[0])
# 6109|   				goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def215]
samba-4.22.1/bin/default/../../source3/client/smbspool.c:238:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(print_file, "rb")’
samba-4.22.1/bin/default/../../source3/client/smbspool.c:118:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:137:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:137:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:154:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:226:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:229:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:229:22: acquire_resource: opened here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:230:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:237:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:238:20: danger: ‘fopen(print_file, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  236|   
#  237|   		copies = strtol(print_copies, &endp, 10);
#  238|-> 		if (print_copies == endp) {
#  239|   			perror("ERROR: Unable to determine number of copies");
#  240|   			goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
samba-4.22.1/bin/default/../../source3/client/smbspool.c:238:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(print_file, "rb")’
samba-4.22.1/bin/default/../../source3/client/smbspool.c:118:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:137:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:137:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:154:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:226:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:229:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:229:22: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:230:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/client/smbspool.c:237:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/client/smbspool.c:238:20: danger: ‘fopen(print_file, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  236|   
#  237|   		copies = strtol(print_copies, &endp, 10);
#  238|-> 		if (print_copies == endp) {
#  239|   			perror("ERROR: Unable to determine number of copies");
#  240|   			goto done;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2129:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2657:17: enter_function: entry to ‘ad_fget’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2660:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
# 2127|   	ssize_t  ealen;
# 2128|   	bool     ok;
# 2129|-> 	struct files_struct *fsp = smb_fname->fsp;
# 2130|   
# 2131|   	DEBUG(10, ("reading meta xattr for %s\n", smb_fname->base_name));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2311:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2657:17: enter_function: entry to ‘ad_fget’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2660:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
# 2309|   	NTSTATUS status;
# 2310|   
# 2311|-> 	DBG_DEBUG("Path [%s] type [%s]\n", smb_fname->base_name,
# 2312|   		  ad->ad_type == ADOUBLE_META ? "meta" : "rsrc");
# 2313|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2604:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2657:17: enter_function: entry to ‘ad_fget’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2660:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
# 2602|   	}
# 2603|   	if (rc == -1) {
# 2604|-> 		DBG_DEBUG("ad_open [%s] error [%s]\n",
# 2605|   			  smb_fname->base_name, strerror(errno));
# 2606|   		goto exit;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2619:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2657:17: enter_function: entry to ‘ad_fget’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2660:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
# 2617|   
# 2618|   exit:
# 2619|-> 	DEBUG(10, ("ad_get(%s) for %s returning %d\n",
# 2620|   		  type == ADOUBLE_META ? "meta" : "rsrc",
# 2621|   		  smb_fname->base_name, rc));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2759:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname_in’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2657:17: enter_function: entry to ‘ad_fget’
samba-4.22.1/bin/default/../../source3/lib/adouble.c:2660:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
# 2757|   	SET_STAT_INVALID(smb_fname->st);
# 2758|   
# 2759|-> 	if (!parent_dirname(smb_fname, smb_fname_in->base_name,
# 2760|   				&parent, &base)) {
# 2761|   		TALLOC_FREE(smb_fname);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2107:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘state’
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2080:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2081:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2085:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2089:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2093:19: branch_false: following ‘false’ branch (when ‘i >= num_pending’)...
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2101:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2101:12: branch_false: following ‘false’ branch (when ‘i != num_pending’)...
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2107:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ctdbd_conn.c:2107:9: danger: dereference of NULL ‘state’
# 2105|   	}
# 2106|   
# 2107|-> 	state->reply = talloc_move(state, &hdr);
# 2108|   	tevent_req_defer_callback(req, state->ev);
# 2109|   	tevent_req_done(req);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def223]
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:129:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1337:13: enter_function: entry to ‘g_lock_unlock_fn’
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1348:14: call_function: calling ‘g_lock_parse’ from ‘g_lock_unlock_fn’
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1348:14: return_function: returning to ‘g_lock_unlock_fn’ from ‘g_lock_parse’
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1349:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1355:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1359:17: call_function: calling ‘g_lock_get_shared’ from ‘g_lock_unlock_fn’
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1359:17: return_function: returning to ‘g_lock_unlock_fn’ from ‘g_lock_get_shared’
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1360:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1365:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1366:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1366:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1373:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/g_lock.c:1373:17: call_function: calling ‘g_lock_del_shared’ from ‘g_lock_unlock_fn’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  127|   	lck->num_shared -= 1;
#  128|   	if (i < lck->num_shared) {
#  129|-> 		memcpy(lck->shared + i*SERVER_ID_BUF_LENGTH,
#  130|   		       lck->shared + lck->num_shared*SERVER_ID_BUF_LENGTH,
#  131|   		       SERVER_ID_BUF_LENGTH);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:67:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘max_n’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   65|   			/* a '*' matches zero or more characters of any type */
#   66|   		case UCS2_CHAR('*'):
#   67|-> 			if (max_n->predot && max_n->predot <= n) {
#   68|   				return null_match(p);
#   69|   			}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def225]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:67:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   65|   			/* a '*' matches zero or more characters of any type */
#   66|   		case UCS2_CHAR('*'):
#   67|-> 			if (max_n->predot && max_n->predot <= n) {
#   68|   				return null_match(p);
#   69|   			}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def226]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:75:30: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   73|   				}
#   74|   			}
#   75|-> 			if (!max_n->predot || max_n->predot > n) max_n->predot = n;
#   76|   			return null_match(p);
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-121): [#def227]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:75:66: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   73|   				}
#   74|   			}
#   75|-> 			if (!max_n->predot || max_n->predot > n) max_n->predot = n;
#   76|   			return null_match(p);
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:82:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘max_n’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   80|   			   '.' in the string. */
#   81|   		case UCS2_CHAR('<'):
#   82|-> 			if (max_n->predot && max_n->predot <= n) {
#   83|   				return null_match(p);
#   84|   			}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def229]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:82:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   80|   			   '.' in the string. */
#   81|   		case UCS2_CHAR('<'):
#   82|-> 			if (max_n->predot && max_n->predot <= n) {
#   83|   				return null_match(p);
#   84|   			}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def230]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:85:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   83|   				return null_match(p);
#   84|   			}
#   85|-> 			if (max_n->postdot && max_n->postdot <= n && n <= ldot) {
#   86|   				return -1;
#   87|   			}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def231]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:96:30: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   94|   				}
#   95|   			}
#   96|-> 			if (!max_n->predot || max_n->predot > n) max_n->predot = n;
#   97|   			return null_match(p);
#   98|   

Error: GCC_ANALYZER_WARNING (CWE-121): [#def232]
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:96:66: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:207:12: branch_true: following ‘true’ branch (when ‘count != 0’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:208:20: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:212:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
#   94|   				}
#   95|   			}
#   96|-> 			if (!max_n->predot || max_n->predot > n) max_n->predot = n;
#   97|   			return null_match(p);
#   98|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def233]
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:44:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘puser’ where non-null expected
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:36:12: branch_false: following ‘false’ branch (when ‘opt’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:39:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:41:39: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:44:34: danger: argument 1 (‘puser’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#   42|   			char *p = NULL;
#   43|   
#   44|-> 			if ((p = strchr(puser,'%'))) {
#   45|   				size_t len;
#   46|   				*p = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:227:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-16LE", "ASCII")’
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:212:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:217:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:226:14: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/lib/netapi/examples/common.c:227:12: danger: ‘iconv_open("UTF-16LE", "ASCII")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  225|   
#  226|   	cd = iconv_open("UTF-16LE", "ASCII");
#  227|-> 	if (cd == (iconv_t)-1) {
#  228|   		free(p);
#  229|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:101:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info0’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:101:25: danger: dereference of NULL ‘info0’
#   99|   	switch (r->in.level) {
#  100|   		case 0:
#  101|-> 			init_lsa_String(&lsa_group_name, info0->grpi0_name);
#  102|   			break;
#  103|   		case 1:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:104:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info1’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:104:25: danger: dereference of NULL ‘info1’
#  102|   			break;
#  103|   		case 1:
#  104|-> 			init_lsa_String(&lsa_group_name, info1->grpi1_name);
#  105|   			break;
#  106|   		case 2:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:107:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info2’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:107:25: danger: dereference of NULL ‘info2’
#  105|   			break;
#  106|   		case 2:
#  107|-> 			init_lsa_String(&lsa_group_name, info2->grpi2_name);
#  108|   			break;
#  109|   		case 3:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:110:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:110:25: danger: dereference of NULL ‘info3’
#  108|   			break;
#  109|   		case 3:
#  110|-> 			init_lsa_String(&lsa_group_name, info3->grpi3_name);
#  111|   			break;
#  112|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:130:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info1’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:123:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:128:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:130:29: danger: dereference of NULL ‘info1’
#  128|   	switch (r->in.level) {
#  129|   		case 1:
#  130|-> 			if (info1->grpi1_comment) {
#  131|   				init_lsa_String(&info.description,
#  132|   						info1->grpi1_comment);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:142:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info2’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:123:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:128:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:142:29: danger: dereference of NULL ‘info2’
#  140|   			break;
#  141|   		case 2:
#  142|-> 			if (info2->grpi2_comment) {
#  143|   				init_lsa_String(&info.description,
#  144|   						info2->grpi2_comment);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:169:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:123:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:128:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:169:29: danger: dereference of NULL ‘info3’
#  167|   			break;
#  168|   		case 3:
#  169|-> 			if (info3->grpi3_comment) {
#  170|   				init_lsa_String(&info.description,
#  171|   						info3->grpi3_comment);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1717:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1620:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1624:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1624:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1632:16: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1635:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1639:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1648:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1652:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1661:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1665:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1665:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1669:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1669:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1680:40: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1683:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1688:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1693:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1698:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1708:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1713:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1715:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1717:33: danger: dereference of NULL ‘i0’
# 1715|   		switch (r->in.level) {
# 1716|   			case 0:
# 1717|-> 				init_lsa_String(&lsa_names[i], i0->grui0_name);
# 1718|   				i0++;
# 1719|   				break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1721:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i1’
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1620:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1624:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1624:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1632:16: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1635:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1639:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1648:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1652:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1661:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1665:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1665:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1669:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1669:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1680:40: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1683:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1688:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1693:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1698:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1708:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1713:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1715:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/group.c:1721:33: danger: dereference of NULL ‘i1’
# 1719|   				break;
# 1720|   			case 1:
# 1721|-> 				init_lsa_String(&lsa_names[i], i1->grui1_name);
# 1722|   				i1++;
# 1723|   				break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
samba-4.22.1/bin/default/../../source3/lib/netapi/localgroup.c:1117:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.22.1/bin/default/../../source3/lib/netapi/localgroup.c:1377:8: enter_function: entry to ‘NetLocalGroupSetMembers_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/localgroup.c:1380:16: call_function: calling ‘NetLocalGroupModifyMembers_r’ from ‘NetLocalGroupSetMembers_r’
# 1115|   
# 1116|   		for (i=0; i < r->in.total_entries; i++) {
# 1117|-> 			status = libnetapi_lsa_lookup_names3(ctx, lsa_pipe,
# 1118|   							     info3[i].lgrmi3_domainandname,
# 1119|   							     &member_sids[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:97:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s501’
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:319:8: enter_function: entry to ‘NetShareEnum_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:352:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:356:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:379:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:384:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:384:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:388:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:389:43: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:389:43: release_memory: ‘_i.info0’ is NULL
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:402:26: call_function: calling ‘map_srvsvc_share_info_to_SHARE_INFO_buffer’ from ‘NetShareEnum_r’
#   95|   			s501 = info->info501;
#   96|   
#   97|-> 			i501.shi501_netname		= talloc_strdup(mem_ctx, s501->name);
#   98|   			i501.shi501_type		= s501->type;
#   99|   			i501.shi501_remark		= talloc_strdup(mem_ctx, s501->comment);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:110:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s1005’
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:319:8: enter_function: entry to ‘NetShareEnum_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:352:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:356:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:379:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:384:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:384:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:388:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:389:43: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:389:43: release_memory: ‘_i.info0’ is NULL
samba-4.22.1/bin/default/../../source3/lib/netapi/share.c:402:26: call_function: calling ‘map_srvsvc_share_info_to_SHARE_INFO_buffer’ from ‘NetShareEnum_r’
#  108|   			s1005 = info->info1005;
#  109|   
#  110|-> 			i1005.shi1005_flags		= s1005->dfs_flags;
#  111|   
#  112|   			ADD_TO_ARRAY(mem_ctx, struct SHARE_INFO_1005, i1005,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def247]
samba-4.22.1/bin/default/../../source3/lib/netapi/tests/common.c:53:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘puser’ where non-null expected
samba-4.22.1/bin/default/../../source3/lib/netapi/tests/common.c:45:12: branch_false: following ‘false’ branch (when ‘opt’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/lib/netapi/tests/common.c:48:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/tests/common.c:50:39: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source3/lib/netapi/tests/common.c:53:34: danger: argument 1 (‘puser’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#   51|   			char *p = NULL;
#   52|   
#   53|-> 			if ((p = strchr(puser,'%'))) {
#   54|   				size_t len;
#   55|   				*p = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def248]
samba-4.22.1/bin/default/../../source3/lib/netapi/tests/netgroup.c:182:49: warning[-Wanalyzer-null-argument]: use of NULL ‘current_name’ where non-null expected
#  180|   				}
#  181|   
#  182|-> 				if (username && strcasecmp(current_name, username) == 0) {
#  183|   					found_user = 1;
#  184|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:849:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
#  847|   	NT_STATUS_HAVE_NO_MEMORY(i->usri1_name);
#  848|   	i->usri1_password	= NULL;
#  849|-> 	i->usri1_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  850|   	i->usri1_priv		= samr_rid_to_priv_level(i21->rid);
#  851|   	i->usri1_home_dir	= talloc_strdup(mem_ctx, i21->home_directory.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:872:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
#  870|   	NT_STATUS_HAVE_NO_MEMORY(i->usri2_name);
#  871|   	i->usri2_password	= NULL;
#  872|-> 	i->usri2_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  873|   	i->usri2_priv		= samr_rid_to_priv_level(i21->rid);
#  874|   	i->usri2_home_dir	= talloc_strdup(mem_ctx, i21->home_directory.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:910:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
#  908|   	i->usri3_name		= talloc_strdup(mem_ctx, i21->account_name.string);
#  909|   	NT_STATUS_HAVE_NO_MEMORY(i->usri3_name);
#  910|-> 	i->usri3_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  911|   	i->usri3_priv		= samr_rid_to_priv_level(i21->rid);
#  912|   	i->usri3_home_dir	= talloc_strdup(mem_ctx, i21->home_directory.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:956:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
#  954|   	i->usri4_name		= talloc_strdup(mem_ctx, i21->account_name.string);
#  955|   	NT_STATUS_HAVE_NO_MEMORY(i->usri4_name);
#  956|-> 	i->usri4_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  957|   	i->usri4_password	= NULL;
#  958|   	i->usri4_priv		= samr_rid_to_priv_level(i21->rid);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1024:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
# 1022|   	i->usri11_usr_comment	= talloc_strdup(mem_ctx, i21->comment.string);
# 1023|   	i->usri11_full_name	= talloc_strdup(mem_ctx, i21->full_name.string);
# 1024|-> 	i->usri11_priv		= samr_rid_to_priv_level(i21->rid);
# 1025|   	i->usri11_auth_flags	= auth_flag;
# 1026|   	i->usri11_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1057:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
# 1055|   	i->usri20_comment	= talloc_strdup(mem_ctx, i21->description.string);
# 1056|   	i->usri20_full_name	= talloc_strdup(mem_ctx, i21->full_name.string);
# 1057|-> 	i->usri20_flags		= samr_acb_flags_to_netapi_flags(i21->acct_flags);
# 1058|   	i->usri20_user_id	= i21->rid;
# 1059|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1079:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1679:8: enter_function: entry to ‘NetUserGetInfo_r’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1698:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1702:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1721:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1725:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1734:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1738:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1745:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1749:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1758:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1762:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1766:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:1771:18: call_function: calling ‘libnetapi_samr_lookup_user_map_USER_INFO’ from ‘NetUserGetInfo_r’
# 1077|   	i->usri23_comment	= talloc_strdup(mem_ctx, i21->description.string);
# 1078|   	i->usri23_full_name	= talloc_strdup(mem_ctx, i21->full_name.string);
# 1079|-> 	i->usri23_flags		= samr_acb_flags_to_netapi_flags(i21->acct_flags);
# 1080|   	if (!sid_compose(&sid, domain_sid, i21->rid)) {
# 1081|   		return NT_STATUS_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def256]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3209:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3125:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3129:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3129:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3137:16: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3140:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3144:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3153:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3157:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3166:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3170:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3170:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3174:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3174:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3182:39: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3185:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3190:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3200:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3205:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3207:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3209:33: danger: dereference of NULL ‘i0’
# 3207|   		switch (r->in.level) {
# 3208|   			case 0:
# 3209|-> 				init_lsa_String(&lsa_names[i], i0->grui0_name);
# 3210|   				i0++;
# 3211|   				break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3213:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i1’
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3125:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3129:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3129:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3137:16: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3140:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3144:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3153:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3157:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3166:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3170:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3170:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3174:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3174:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3182:39: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3185:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3190:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3200:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3205:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3207:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/netapi/user.c:3213:33: danger: dereference of NULL ‘i1’
# 3211|   				break;
# 3212|   			case 1:
# 3213|-> 				init_lsa_String(&lsa_names[i], i1->grui1_name);
# 3214|   				i1++;
# 3215|   				break;

Error: GCC_ANALYZER_WARNING: [#def258]
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:162:21: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:87:13: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:99:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:101:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:111:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:111:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:153:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:160:12: branch_true: following ‘true’ branch (when ‘outfd’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:161:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:161:17: release_resource: closed here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:162:21: danger: ‘1’ could be invalid
#  160|   	if (outfd) {
#  161|   		close(1);
#  162|-> 		if (dup2(*outfd,1) != 1) {
#  163|   			DEBUG(2,("Failed to create stdout file descriptor\n"));
#  164|   			close(*outfd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:253:24: danger: ‘ifd[0]’ leaks here
#  251|   	/* build up an input pipe */
#  252|   	if(pipe(ifd)) {
#  253|-> 		return -1;
#  254|   	}
#  255|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def260]
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:253:24: danger: ‘ifd[1]’ leaks here
#  251|   	/* build up an input pipe */
#  252|   	if(pipe(ifd)) {
#  253|-> 		return -1;
#  254|   	}
#  255|   

Error: GCC_ANALYZER_WARNING: [#def261]
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:324:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:323:9: release_resource: closed here
samba-4.22.1/bin/default/../../source3/lib/smbrun.c:324:13: danger: ‘0’ could be invalid
#  322|   	close(ifd[1]);
#  323|   	close(0);
#  324|-> 	if (dup2(ifd[0], 0) != 0) {
#  325|   		DEBUG(2,("Failed to create stdin file descriptor\n"));
#  326|   		close(ifd[0]);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def262]
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:208:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘len’
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:194:10: enter_function: entry to ‘receive_smb_raw’
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:200:18: call_function: calling ‘read_smb_length_return_keepalive’ from ‘receive_smb_raw’
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:200:18: return_function: returning to ‘receive_smb_raw’ from ‘read_smb_length_return_keepalive’
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:202:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:208:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_sock.c:208:13: danger: use of uninitialized value ‘len’ here
#  206|   	}
#  207|   
#  208|-> 	if (len > buflen) {
#  209|   		DEBUG(0,("Invalid packet length! (%lu bytes).\n",
#  210|   					(unsigned long)len));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:154:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:155:29: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:154:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:155:29: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:193:28: branch_false: following ‘false’ branch (when ‘bufsize >= len’)...
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:195:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:195:28: branch_true: following ‘true’ branch (when ‘ps’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:196:39: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:196:39: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:197:36: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:154:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:155:29: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/lib/util_tdb.c:191:25: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  189|   		case 'P': /* null-terminated string */
#  190|   			/* Return malloc'ed string. */
#  191|-> 			ps = va_arg(ap,char **);
#  192|   			len = strnlen((const char *)buf, bufsize) + 1;
#  193|   			if (bufsize < len)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def264]
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:289:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_names’
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:247:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:251:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:251:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:256:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:257:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:262:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:283:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libads/ldap_schema.c:289:19: danger: use of uninitialized value ‘num_names’ here
#  287|   	}
#  288|   
#  289|-> 	for (i=0; i<num_names; i++) {
#  290|   
#  291|   		DEBUGADD(10,("\tOID %s has name: %s\n", oids_out[i], names_out[i]));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:555:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:629:17: enter_function: entry to ‘libnet_dssync_process’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:636:40: release_memory: ‘old_utdv’ is NULL
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:637:40: release_memory: ‘old_utdv’ is NULL
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:642:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:643:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:644:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:652:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:662:23: branch_true: following ‘true’ branch (when ‘dn_count > count’)...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:663:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:663:26: call_function: calling ‘libnet_dssync_build_request’ from ‘libnet_dssync_process’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:663:26: return_function: returning to ‘libnet_dssync_process’ from ‘libnet_dssync_build_request’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:667:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:671:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:671:26: call_function: calling ‘libnet_dssync_getncchanges’ from ‘libnet_dssync_process’
#  553|   				    !ctx->single_object_replication)
#  554|   				{
#  555|-> 					new_utdv->version = 1;
#  556|   					new_utdv->ctr.ctr1.count =
#  557|   						ctr1->uptodateness_vector->count;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:580:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:629:17: enter_function: entry to ‘libnet_dssync_process’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:636:40: release_memory: ‘old_utdv’ is NULL
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:637:40: release_memory: ‘old_utdv’ is NULL
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:642:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:643:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:644:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:652:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:662:23: branch_true: following ‘true’ branch (when ‘dn_count > count’)...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:663:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:663:26: call_function: calling ‘libnet_dssync_build_request’ from ‘libnet_dssync_process’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:663:26: return_function: returning to ‘libnet_dssync_process’ from ‘libnet_dssync_build_request’
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:667:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:671:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libnet/libnet_dssync.c:671:26: call_function: calling ‘libnet_dssync_getncchanges’ from ‘libnet_dssync_process’
#  578|   				    !ctx->single_object_replication)
#  579|   				{
#  580|-> 					new_utdv->version = 2;
#  581|   					new_utdv->ctr.ctr2.count =
#  582|   						ctr6->uptodateness_vector->count;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def267]
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1000:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ccache’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:916:17: enter_function: entry to ‘gensec_gse_client_prepare_ccache’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:931:55: release_memory: ‘ccache’ is NULL
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:972:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:977:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:978:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:989:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:989:18: call_function: calling ‘gensec_gse_client_prepare_krb5_ccache_create’ from ‘gensec_gse_client_prepare_ccache’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:989:18: return_function: returning to ‘gensec_gse_client_prepare_ccache’ from ‘gensec_gse_client_prepare_krb5_ccache_create’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:991:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:998:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:998:9: release_memory: ‘ccache’ is NULL
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1000:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1000:9: release_memory: ‘ccache’ is NULL
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1000:9: danger: dereference of NULL ‘ccache’
#  998|   	talloc_reparent(creds, frame, ccache);
#  999|   
# 1000|-> 	DBG_INFO("Doing kinit for %s to access %s into %s\n",
# 1001|   		 user_principal, debug_target, ccache->name);
# 1002|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1008:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ccache’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:916:17: enter_function: entry to ‘gensec_gse_client_prepare_ccache’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:931:55: release_memory: ‘ccache’ is NULL
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:972:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:977:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:978:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:989:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:989:18: call_function: calling ‘gensec_gse_client_prepare_krb5_ccache_create’ from ‘gensec_gse_client_prepare_ccache’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:989:18: return_function: returning to ‘gensec_gse_client_prepare_ccache’ from ‘gensec_gse_client_prepare_krb5_ccache_create’
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:991:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:998:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:998:9: release_memory: ‘ccache’ is NULL
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1008:49: release_memory: ‘ccache’ is NULL
samba-4.22.1/bin/default/../../source3/librpc/crypto/gse.c:1008:43: danger: dereference of NULL ‘ccache’
# 1006|   					  0,
# 1007|   					  0,
# 1008|-> 					  ccache->name,
# 1009|   					  false,
# 1010|   					  false,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:700:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:674:20: enter_function: entry to ‘cli_smb2_set_info_fnum_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:686:26: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:691:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:695:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:695:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_set_info_fnum_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:695:18: return_function: returning to ‘cli_smb2_set_info_fnum_send’ from ‘map_fnum_to_smb2_handle’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:696:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:712:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:712:19: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:700:18: danger: dereference of NULL ‘ph’
#  698|   	}
#  699|   
#  700|-> 	subreq = smb2cli_set_info_send(
#  701|   		state,
#  702|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1921:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1893:20: enter_function: entry to ‘cli_smb2_query_info_fnum_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1907:26: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1912:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1916:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1916:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_query_info_fnum_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1916:18: return_function: returning to ‘cli_smb2_query_info_fnum_send’ from ‘map_fnum_to_smb2_handle’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1917:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1935:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1935:19: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:1921:18: danger: dereference of NULL ‘ph’
# 1919|   	}
# 1920|   
# 1921|-> 	subreq = smb2cli_query_info_send(
# 1922|   		state,
# 1923|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4797:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4772:20: enter_function: entry to ‘cli_smb2_notify_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4783:26: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4788:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4792:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4792:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_notify_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4792:18: return_function: returning to ‘cli_smb2_notify_send’ from ‘map_fnum_to_smb2_handle’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4793:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4797:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4806:19: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4797:25: danger: dereference of NULL ‘ph’
# 4795|   	}
# 4796|   
# 4797|-> 	state->subreq = smb2cli_notify_send(
# 4798|   		state,
# 4799|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4992:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4968:20: enter_function: entry to ‘cli_smb2_fsctl_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4979:26: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4983:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4987:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4987:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_fsctl_send’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4987:18: return_function: returning to ‘cli_smb2_fsctl_send’ from ‘map_fnum_to_smb2_handle’
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4988:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:5000:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:5000:19: release_memory: ‘ph’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/cli_smb2_fnum.c:4992:18: danger: dereference of NULL ‘ph’
# 4990|   	}
# 4991|   
# 4992|-> 	subreq = smb2cli_ioctl_send(
# 4993|   		state,
# 4994|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1338:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘refs’
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1248:6: enter_function: entry to ‘cli_check_msdfs_proxy’
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1255:37: release_memory: ‘refs’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1268:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1272:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1276:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1282:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1283:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1288:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1294:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1299:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1322:18: call_function: calling ‘cli_dfs_get_referral’ from ‘cli_check_msdfs_proxy’
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1322:18: return_function: returning to ‘cli_check_msdfs_proxy’ from ‘cli_dfs_get_referral’
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1330:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1334:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1334:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1338:14: release_memory: ‘refs’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/clidfs.c:1338:14: danger: dereference of NULL ‘refs’
# 1336|   	}
# 1337|   
# 1338|-> 	if (!refs[0].dfspath) {
# 1339|   		return false;
# 1340|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:856:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘finfo’
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:755:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:763:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:776:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:779:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:842:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:845:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:849:12: branch_false: following ‘false’ branch (when ‘ff_eos == 0’)...
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:855:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:855:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:856:44: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clilist.c:856:44: danger: dereference of NULL ‘finfo’
#  854|   
#  855|   	TALLOC_FREE(state->mask);
#  856|-> 	state->mask = talloc_strdup(state, finfo->name);
#  857|   	if (tevent_req_nomem(state->mask, req)) {
#  858|   		return;

Error: GCC_ANALYZER_WARNING (CWE-121): [#def275]
samba-4.22.1/bin/default/../../source3/libsmb/cliprint.c:73:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
#   71|   	SSVAL(p,0,76);         /* API function number 76 (DosPrintJobEnum) */
#   72|   	p += 2;
#   73|-> 	strlcpy_base(p,"zWrLeh", param, sizeof(param));   /* parameter description? */
#   74|   	p = skip_string(param,sizeof(param),p);
#   75|   	strlcpy_base(p,"WWzWWDDzz", param, sizeof(param));  /* returned data format */

Error: GCC_ANALYZER_WARNING (CWE-121): [#def276]
samba-4.22.1/bin/default/../../source3/libsmb/cliprint.c:169:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
#  167|   	SSVAL(p,0,81);		/* DosPrintJobDel() */
#  168|   	p += 2;
#  169|-> 	strlcpy_base(p,"W", param,sizeof(param));
#  170|   	p = skip_string(param,sizeof(param),p);
#  171|   	strlcpy_base(p,"", param,sizeof(param));

Error: GCC_ANALYZER_WARNING (CWE-121): [#def277]
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:62:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
#   60|   	SSVAL(p,0,0); /* api number */
#   61|   	p += 2;
#   62|-> 	strlcpy(p,"WrLeh",sizeof(param)-PTR_DIFF(p,param));
#   63|   	p = skip_string(param,sizeof(param),p);
#   64|   	strlcpy(p,"B13BWz",sizeof(param)-PTR_DIFF(p,param));

Error: GCC_ANALYZER_WARNING (CWE-121): [#def278]
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:214:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:213:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:216:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:237:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:241:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:243:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:270:36: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:285:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:291:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:308:28: branch_true: following ‘true’ branch (when ‘total_cnt == 0’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:309:45: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:328:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:335:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:384:28: branch_false: following ‘false’ branch (when ‘last_entry’ is NULL)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:389:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:389:28: branch_true: following ‘true’ branch (when ‘sname’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:390:46: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:394:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:400:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:400:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:401:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:401:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:402:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:402:18: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:213:20: branch_true: following ‘true’ branch (when ‘func == 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:214:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:214:25: danger: out-of-bounds write from byte 1024 till byte 1025 but ‘param’ ends at byte 1024
#  212|   
#  213|   		if (func == RAP_NetServerEnum3) {
#  214|-> 			strlcpy(p,"WrLehDzz", sizeof(param)-PTR_DIFF(p,param));
#  215|   		} else {
#  216|   			strlcpy(p,"WrLehDz", sizeof(param)-PTR_DIFF(p,param));

Error: GCC_ANALYZER_WARNING (CWE-121): [#def279]
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:216:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:213:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:216:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:216:25: danger: out-of-bounds write from byte 1024 till byte 1025 but ‘param’ ends at byte 1024
#  214|   			strlcpy(p,"WrLehDzz", sizeof(param)-PTR_DIFF(p,param));
#  215|   		} else {
#  216|-> 			strlcpy(p,"WrLehDz", sizeof(param)-PTR_DIFF(p,param));
#  217|   		}
#  218|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def280]
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:349:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:187:18: release_memory: ‘rparam’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:188:18: release_memory: ‘rparam’ is NULL
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:213:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:216:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:237:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:241:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:243:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:270:36: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:285:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:291:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:308:28: branch_true: following ‘true’ branch (when ‘total_cnt == 0’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:309:45: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:328:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:335:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:384:28: branch_false: following ‘false’ branch (when ‘last_entry’ is NULL)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:389:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:389:28: branch_true: following ‘true’ branch (when ‘sname’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:390:46: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:394:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:400:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:401:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:402:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:402:18: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:213:20: branch_true: following ‘true’ branch (when ‘func == 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:214:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:237:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:241:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:243:20: branch_true: following ‘true’ branch (when ‘func == 215’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:246:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:249:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:253:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:285:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:291:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:295:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:298:39: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:328:28: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:328:29: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:328:29: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:335:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:335:37: branch_true: following ‘true’ branch (when ‘i < count’)...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:340:53: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:343:36: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:349:51: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:349:51: danger: dereference of NULL ‘p’
#  347|   
#  348|   				sname = p;
#  349|-> 				comment_offset = (IVAL(p,22) & 0xFFFF)-converter;
#  350|   				cmnt = comment_offset ? ((char *)rdata +
#  351|   							 comment_offset)

Error: GCC_ANALYZER_WARNING (CWE-121): [#def281]
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:446:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:439:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:444:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clirap.c:446:9: danger: out-of-bounds write from byte 1024 till byte 1025 but ‘param’ ends at byte 1024
#  444|   	SSVAL(p,0,214); /* SamOEMChangePassword command. */
#  445|   	p += 2;
#  446|-> 	strlcpy(p, "zsT", sizeof(param)-PTR_DIFF(p,param));
#  447|   	p = skip_string(param,sizeof(param),p);
#  448|   	strlcpy(p, "B516B16", sizeof(param)-PTR_DIFF(p,param));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def282]
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1817:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nread’
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1791:17: enter_function: entry to ‘cli_splice_fallback’
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1807:16: branch_true: following ‘true’ branch (when ‘remaining != 0’)...
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1808:34: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1810:26: call_function: calling ‘cli_read’ from ‘cli_splice_fallback’
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1810:26: return_function: returning to ‘cli_splice_fallback’ from ‘cli_read’
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1813:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1817:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/clireadwrite.c:1817:26: danger: use of uninitialized value ‘nread’ here
# 1815|   		}
# 1816|   
# 1817|-> 		status = cli_writeall(dstcli, dst_fnum, 0,
# 1818|   				      buf, dst_offset, nread, NULL);
# 1819|   		if (!NT_STATUS_IS_OK(status)) {

Error: GCC_ANALYZER_WARNING (CWE-465): [#def283]
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:55:17: warning[-Wanalyzer-deref-before-check]: check of ‘*d.smb_finfo’ for NULL after already dereferencing it
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:49:16: branch_true: following ‘true’ branch (when ‘d’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:51:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:54:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:55:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:55:17: danger: pointer ‘*d.smb_finfo’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   53|   		SAFE_FREE(f->smb_finfo->short_name);
#   54|   		SAFE_FREE(f->smb_finfo->name);
#   55|-> 		SAFE_FREE(f->smb_finfo);
#   56|   		SAFE_FREE(f);
#   57|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def284]
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:258:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir_list’
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:230:1: enter_function: entry to ‘list_unique_wg_fn’
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:243:13: call_function: calling ‘add_dirent’ from ‘list_unique_wg_fn’
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:243:13: return_function: return of NULL to ‘list_unique_wg_fn’ from ‘add_dirent’
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:255:14: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:257:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:257:20: branch_true: following ‘true’ branch (when ‘do_remove == 0’)...
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:258:52: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/libsmb_dir.c:258:28: danger: dereference of NULL ‘dir_list’
#  256|                dir_list = dir_list->next) {
#  257|                   if (! do_remove &&
#  258|->                     strcmp(dir_list->dirent->name, dirent->name) == 0) {
#  259|                           /* Duplicate.  End end of list need to be removed. */
#  260|                           do_remove = 1;

Error: COMPILER_WARNING (CWE-477): [#def285]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:274:9: warning[-Wdeprecated-declarations]: ‘PyEval_InitThreads’ is deprecated
#  272|   	}
#  273|   
#  274|-> 	PyEval_InitThreads();
#  275|   
#  276|   	ret = pthread_create(&t->id, NULL, py_cli_state_poll_thread, self);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def286]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:645:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘share’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:537:12: enter_function: entry to ‘py_cli_state_init’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:568:45: call_function: calling ‘get_pytype’ from ‘py_cli_state_init’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:568:45: return_function: returning to ‘py_cli_state_init’ from ‘get_pytype’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:570:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:574:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:584:9: call_function: inlined call to ‘Py_DECREF’ from ‘py_cli_state_init’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:586:12: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:586:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:590:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:613:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:621:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:621:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:633:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:633:23: call_function: calling ‘py_cli_state_setup_ev’ from ‘py_cli_state_init’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:633:23: return_function: returning to ‘py_cli_state_init’ from ‘py_cli_state_setup_ev’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:634:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:639:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:639:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:640:29: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:645:15: danger: use of uninitialized value ‘share’ here
#  643|   	}
#  644|   
#  645|-> 	req = cli_full_connection_creds_send(
#  646|   		NULL, self->ev, "myname", host, NULL, 0, share, "?????",
#  647|   		cli_creds, flags,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def287]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1664:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1658:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1664:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1664:15: danger: use of uninitialized value ‘buflen’ here
# 1662|   	}
# 1663|   
# 1664|-> 	req = cli_write_send(NULL, self->ev, self->cli, fnum, mode,
# 1665|   			     (uint8_t *)buf, offset, buflen);
# 1666|   	if (!py_tevent_req_wait_exc(self, req)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def288]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1807:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1801:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1807:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1807:18: danger: use of uninitialized value ‘size’ here
# 1805|   	}
# 1806|   
# 1807|-> 	result = PyBytes_FromStringAndSize(NULL, size);
# 1808|   	if (result == NULL) {
# 1809|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def289]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1861:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1856:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1861:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1861:15: danger: use of uninitialized value ‘size’ here
# 1859|   	}
# 1860|   
# 1861|-> 	req = cli_ftruncate_send(NULL, self->ev, self->cli, fnum, size);
# 1862|   	if (!py_tevent_req_wait_exc(self, req)) {
# 1863|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def290]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1891:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1886:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1891:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:1891:15: danger: use of uninitialized value ‘flag’ here
# 1889|   	}
# 1890|   
# 1891|-> 	req = cli_nt_delete_on_close_send(NULL, self->ev, self->cli, fnum,
# 1892|   					  flag);
# 1893|   	if (!py_tevent_req_wait_exc(self, req)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def291]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2918:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2914:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2918:36: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2918:9: danger: use of uninitialized value ‘buflen’ here
# 2916|   	}
# 2917|   
# 2918|-> 	in = (DATA_BLOB) { .data = (uint8_t *)buf, .length = buflen, };
# 2919|   
# 2920|   	req = cli_fsctl_send(

Error: GCC_ANALYZER_WARNING (CWE-457): [#def292]
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2987:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dst_offset’
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2967:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2973:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2983:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2987:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/pylibsmb.c:2987:15: danger: use of uninitialized value ‘dst_offset’ here
# 2985|   	}
# 2986|   
# 2987|-> 	req = cli_smb2_splice_send(frame,
# 2988|   				   self->ev,
# 2989|   				   self->cli,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
samba-4.22.1/bin/default/../../source3/libsmb/unexpected.c:94:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘create_pipe_sock(nmbd_socket_dir, "unexpected", 493)’
samba-4.22.1/bin/default/../../source3/libsmb/unexpected.c:80:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/unexpected.c:84:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/unexpected.c:89:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/libsmb/unexpected.c:93:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/libsmb/unexpected.c:94:12: danger: ‘create_pipe_sock(nmbd_socket_dir, "unexpected", 493)’ leaks here
#   92|   	}
#   93|   	rc = listen(result->listen_sock, 5);
#   94|-> 	if (rc < 0) {
#   95|   		status = map_nt_error_from_unix(errno);
#   96|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def294]
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:165:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘openat(fsp_get_pathref_fd(srcfsp), *source.base_name, 0, 0)’
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:64:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:68:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:68:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:73:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:73:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:84:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:97:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:103:22: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:106:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:111:39: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:112:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:117:49: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:144:15: release_resource: first ‘close’ here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:145:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:146:49: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:164:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:165:23: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:165:23: danger: second ‘close’ here; first ‘close’ was at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  163|   out:
#  164|   	if (ifd != -1) {
#  165|-> 		ret = close(ifd);
#  166|   		if (ret == -1) {
#  167|   			DBG_DEBUG("Failed to close %s (%d): %s.\n",

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def295]
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:174:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘ofd’
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:64:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:68:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:68:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:73:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:73:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:84:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:97:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:103:22: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:106:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:111:39: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:112:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:117:49: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:145:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:151:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:151:15: release_resource: first ‘close’ here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:152:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:153:49: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:173:12: branch_true: following ‘true’ branch (when ‘ofd != -1’)...
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:174:23: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_crossrename.c:174:23: danger: second ‘close’ here; first ‘close’ was at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  172|   	}
#  173|   	if (ofd != -1) {
#  174|-> 		ret = close(ofd);
#  175|   		if (ret == -1) {
#  176|   			DBG_DEBUG("Failed to close %s (%d): %s.\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
samba-4.22.1/bin/default/../../source3/modules/vfs_dirsort.c:150:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘handle’
samba-4.22.1/bin/default/../../source3/modules/vfs_dirsort.c:143:12: branch_false: following ‘false’ branch (when ‘handle’ is NULL)...
samba-4.22.1/bin/default/../../source3/modules/vfs_dirsort.c:150:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_dirsort.c:150:16: danger: dereference of NULL ‘handle’
#  148|   
#  149|   	/* set up our private data about this directory */
#  150|-> 	data = talloc_zero(handle->conn, struct dirsort_privates);
#  151|   	if (!data) {
#  152|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:180:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*data.mount_entries’
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:370:17: enter_function: entry to ‘fileid_device_mapping_fsid’
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:375:13: call_function: calling ‘fileid_find_mount_entry’ from ‘fileid_device_mapping_fsid’
#  178|   	}
#  179|   	for (i=0;i<data->num_mount_entries;i++) {
#  180|-> 		if (data->mount_entries[i].device == dev) {
#  181|   			return &data->mount_entries[i];
#  182|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def298]
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:187:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*data.mount_entries’
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:171:35: enter_function: entry to ‘fileid_find_mount_entry’
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:185:9: call_function: calling ‘fileid_load_mount_entries’ from ‘fileid_find_mount_entry’
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:185:9: return_function: returning to ‘fileid_find_mount_entry’ from ‘fileid_load_mount_entries’
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:186:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:187:21: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:187:21: release_memory: ‘*data.mount_entries’ is NULL
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:187:40: release_memory: ‘*data.mount_entries’ is NULL
samba-4.22.1/bin/default/../../source3/modules/vfs_fileid.c:187:21: danger: dereference of NULL ‘*data.mount_entries + (long unsigned int)i * 32’
#  185|   	fileid_load_mount_entries(data);
#  186|   	for (i=0;i<data->num_mount_entries;i++) {
#  187|-> 		if (data->mount_entries[i].device == dev) {
#  188|   			return &data->mount_entries[i];
#  189|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def299]
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:148:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd1[0]’
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:146:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:146:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:146:13: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:147:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:148:17: danger: ‘fd1[0]’ leaks here
#  146|   	if (pipe(fd1) || pipe(fd2)) {
#  147|   		DBG_ERR("can't create asyncdns pipes\n");
#  148|-> 		return;
#  149|   	}
#  150|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:148:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd1[1]’
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:146:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:146:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:146:13: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:147:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/nmbd/asyncdns.c:148:17: danger: ‘fd1[1]’ leaks here
#  146|   	if (pipe(fd1) || pipe(fd2)) {
#  147|   		DBG_ERR("can't create asyncdns pipes\n");
#  148|-> 		return;
#  149|   	}
#  150|   

Error: COMPILER_WARNING: [#def301]
samba-4.22.1/bin/default/../../source3/nmbd/nmbd_become_lmb.c:549:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
#  547|   	userdata->free_fn = NULL;
#  548|   	userdata->userdata_len = strlen(work->work_group)+1;
#  549|-> 	strlcpy(userdata->data, work->work_group, size - sizeof(*userdata));
#  550|   
#  551|   	/* Register the special browser group name. */

Error: COMPILER_WARNING: [#def302]
samba-4.22.1/bin/default/../../source3/nmbd/nmbd_browsesync.c:337:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
#  335|   	userdata->free_fn = NULL;
#  336|   	userdata->userdata_len = strlen(work->work_group)+1;
#  337|-> 	strlcpy(userdata->data, work->work_group, size - sizeof(*userdata));
#  338|   
#  339|   	node_status( subrec, &nmbname, answer_ip, 

Error: GCC_ANALYZER_WARNING (CWE-476): [#def303]
samba-4.22.1/bin/default/../../source3/passdb/pdb_samba_dsdb.c:891:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/passdb/pdb_samba_dsdb.c:882:17: enter_function: entry to ‘pdb_samba_dsdb_update_sam_account’
samba-4.22.1/bin/default/../../source3/passdb/pdb_samba_dsdb.c:887:35: call_function: calling ‘pdb_samba_dsdb_get_samu_private’ from ‘pdb_samba_dsdb_update_sam_account’
samba-4.22.1/bin/default/../../source3/passdb/pdb_samba_dsdb.c:887:35: return_function: returning to ‘pdb_samba_dsdb_update_sam_account’ from ‘pdb_samba_dsdb_get_samu_private’
samba-4.22.1/bin/default/../../source3/passdb/pdb_samba_dsdb.c:891:15: danger: dereference of NULL ‘pdb_samba_dsdb_get_samu_private(m,  sam)’
#  889|   	int ret;
#  890|   
#  891|-> 	ret = pdb_samba_dsdb_replace_by_sam(state, pdb_element_is_changed, msg->dn,
#  892|   					sam);
#  893|   	return dsdb_ldb_err_to_ntstatus(ret);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def304]
samba-4.22.1/bin/default/../../source3/printing/queue_process.c:368:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.22.1/bin/default/../../source3/printing/queue_process.c:367:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.22.1/bin/default/../../source3/printing/queue_process.c:371:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/printing/queue_process.c:368:24: danger: ‘ready_fds[0]’ leaks here
#  366|   	ret = pipe(ready_fds);
#  367|   	if (ret == -1) {
#  368|-> 		return -1;
#  369|   	}
#  370|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
samba-4.22.1/bin/default/../../source3/registry/reg_parse_internal.c:237:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(smbreg_get_charset(to), smbreg_get_charset(from))’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_internal.c:233:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/registry/reg_parse_internal.c:234:24: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/registry/reg_parse_internal.c:236:24: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/registry/reg_parse_internal.c:237:20: danger: ‘iconv_open(smbreg_get_charset(to), smbreg_get_charset(from))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  235|   		from = smbreg_get_charset(from);
#  236|   		cd   = smb_iconv_open(to, from);
#  237|-> 		if (cd == ((smb_iconv_t)-1)) {
#  238|   			return false;
#  239|   		}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def306]
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:386:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data32’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:401:6: enter_function: entry to ‘prs_uint64’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:403:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:22: call_function: calling ‘prs_uint32’ from ‘prs_uint64’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:22: return_function: returning to ‘prs_uint64’ from ‘prs_uint32’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:409:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:409:22: call_function: calling ‘prs_uint32’ from ‘prs_uint64’
#  384|   	} else {
#  385|   		if (ps->bigendian_data)
#  386|-> 			RSIVAL(q,0,*data32);
#  387|   		else
#  388|   			SIVAL(q,0,*data32);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def307]
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:388:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data32’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:401:6: enter_function: entry to ‘prs_uint64’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:403:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:22: call_function: calling ‘prs_uint32’ from ‘prs_uint64’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:22: return_function: returning to ‘prs_uint64’ from ‘prs_uint32’
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:406:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:409:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/registry/reg_parse_prs.c:409:22: call_function: calling ‘prs_uint32’ from ‘prs_uint64’
#  386|   			RSIVAL(q,0,*data32);
#  387|   		else
#  388|-> 			SIVAL(q,0,*data32);
#  389|   	}
#  390|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1705:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1501:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1506:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1514:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1520:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1532:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1538:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1541:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1545:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1546:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1549:30: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1550:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1553:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1554:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1557:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1558:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1561:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1562:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1565:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1566:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1569:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1570:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1573:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1574:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1577:33: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1578:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1581:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1582:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1585:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1586:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1590:21: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1704:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1704:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1705:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1705:17: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_client/cli_winreg_spoolss.c:1705:17: danger: dereference of NULL ‘v’
# 1703|   
# 1704|   	if (!W_ERROR_IS_OK(result)) {
# 1705|-> 		DEBUG(0, ("winreg_get_printer: winreg_enumval_to_TYPE() failed "
# 1706|   					"for %s: %s\n",
# 1707|   					v->value_name,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1420:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestr’
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1460:13: enter_function: entry to ‘process_query_node’
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1464:34: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1464:48: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1465:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1468:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1483:14: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1483:14: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1483:14: call_function: calling ‘process_query_node’ from ‘process_query_node’
# 1418|   		&crestr->restriction.cnoderestriction;
# 1419|   
# 1420|-> 	crestr->weight = 1000;
# 1421|   
# 1422|   	if (node->type == eAND || node->type == eOR) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1457:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestriction’
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1460:13: enter_function: entry to ‘process_query_node’
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1464:34: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1464:48: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1465:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1468:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1483:14: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1483:14: release_memory: ‘left’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_client/wsp_cli.c:1483:14: call_function: calling ‘process_query_node’ from ‘process_query_node’
# 1455|   			t_query *node)
# 1456|   {
# 1457|-> 	*crestriction = *node->restriction;
# 1458|   }
# 1459|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:239:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:319:8: enter_function: entry to ‘_dfs_Enum’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:376:21: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:377:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:379:25: release_memory: ‘jn’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:379:25: call_function: calling ‘init_reply_dfs_info_1’ from ‘_dfs_Enum’
#  237|   static bool init_reply_dfs_info_1(TALLOC_CTX *mem_ctx, struct junction_map* j,struct dfs_Info1* dfs1)
#  238|   {
#  239|-> 	dfs1->path = talloc_asprintf(mem_ctx,
#  240|   				"\\\\%s\\%s\\%s", lp_netbios_name(),
#  241|   				j->service_name, j->volume_name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:251:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:319:8: enter_function: entry to ‘_dfs_Enum’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:376:21: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:377:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:382:25: release_memory: ‘jn’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:382:25: call_function: calling ‘init_reply_dfs_info_2’ from ‘_dfs_Enum’
#  249|   static bool init_reply_dfs_info_2(TALLOC_CTX *mem_ctx, struct junction_map* j, struct dfs_Info2* dfs2)
#  250|   {
#  251|-> 	dfs2->path = talloc_asprintf(mem_ctx,
#  252|   			"\\\\%s\\%s\\%s", lp_netbios_name(), j->service_name, j->volume_name);
#  253|   	if (dfs2->path == NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:264:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:319:8: enter_function: entry to ‘_dfs_Enum’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:376:21: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:377:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:385:25: release_memory: ‘jn’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:385:25: call_function: calling ‘init_reply_dfs_info_3’ from ‘_dfs_Enum’
#  262|   {
#  263|   	size_t ii;
#  264|-> 	if (j->volume_name[0] == '\0')
#  265|   		dfs3->path = talloc_asprintf(mem_ctx, "\\\\%s\\%s",
#  266|   			lp_netbios_name(), j->service_name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def314]
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:306:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stor’
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:271:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:274:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:279:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:285:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:285:17: release_memory: ‘*dfs3.stores’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:288:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:291:50: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:291:50: release_memory: ‘*dfs3.stores’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:291:41: release_memory: ‘stor’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:295:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:298:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:300:19: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:304:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/dfs/srv_dfs_nt.c:306:17: danger: dereference of NULL ‘stor’
#  304|   		*p = '\0';
#  305|   		DBG_INFO("storage %zu: %s.%s\n",ii,path,p+1);
#  306|-> 		stor->state = 2; /* set all stores as ONLINE */
#  307|   		stor->server = talloc_strdup(mem_ctx, path);
#  308|   		stor->share = talloc_strdup(mem_ctx, p+1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
samba-4.22.1/bin/default/../../source3/rpc_server/lsa/srv_lsa_nt.c:998:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_lsa_scompat.c:1570:10: enter_function: entry to ‘lsarpc__op_dispatch’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_lsa_scompat.c:1572:16: call_function: calling ‘lsarpc__op_dispatch_internal’ from ‘lsarpc__op_dispatch’
#  996|   
#  997|   	for (i=0; i<num_sids; i++) {
#  998|-> 		names_out[i].sid_type = names[i].sid_type;
#  999|   		names_out[i].name = names[i].name;
# 1000|   		names_out[i].sid_index = names[i].sid_index;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
samba-4.22.1/bin/default/../../source3/rpc_server/lsa/srv_lsa_nt.c:1657:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_lsa_scompat.c:58:17: enter_function: entry to ‘lsarpc__op_dispatch_internal’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_lsa_scompat.c:411:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_lsa_scompat.c:417:34: branch_false: ...to here
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_lsa_scompat.c:417:34: call_function: calling ‘_lsa_OpenTrustedDomain’ from ‘lsarpc__op_dispatch_internal’
# 1655|   					  acc_granted,
# 1656|   					  &info->sid,
# 1657|-> 					  info->name,
# 1658|   					  psd,
# 1659|   					  handle);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1554:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1501:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1505:19: branch_true: following ‘true’ branch (when ‘i < num_ifaces’)...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1506:54: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1511:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1519:27: branch_false: following ‘false’ branch (when ‘j >= num_maps’)...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1526:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1526:20: branch_false: following ‘false’ branch (when ‘j != num_maps’)...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1554:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1554:21: danger: dereference of NULL ‘map’
# 1552|   		}
# 1553|   
# 1554|-> 		p = strv_find(map->bindings, binding_string);
# 1555|   		if (p == NULL) {
# 1556|   			int ret = strv_add(

Error: GCC_ANALYZER_WARNING (CWE-476): [#def318]
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1611:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1593:39: release_memory: ‘maps’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1600:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1604:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1604:20: release_memory: ‘maps’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1606:19: branch_true: following ‘true’ branch (when ‘i < num_maps’)...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1607:58: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1607:47: release_memory: ‘maps’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:1611:44: danger: dereference of NULL ‘map’
# 1609|   		char *keystr = ndr_syntax_id_buf_string(&map->iface, &buf);
# 1610|   		TDB_DATA value = {
# 1611|-> 			.dptr = (uint8_t *)map->bindings,
# 1612|   			.dsize = talloc_array_length(map->bindings),
# 1613|   		};

Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2156:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2133:13: enter_function: entry to ‘rpc_host_endpoint_accept_got_bind’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2142:33: release_memory: ‘client’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2142:33: release_memory: ‘client’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2142:33: release_memory: ‘client’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2142:33: release_memory: ‘client’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2147:15: call_function: calling ‘rpc_host_bind_read_recv’ from ‘rpc_host_endpoint_accept_got_bind’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2147:15: return_function: returning to ‘rpc_host_endpoint_accept_got_bind’ from ‘rpc_host_bind_read_recv’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2150:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2156:57: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2156:27: release_memory: ‘client’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2156:9: danger: dereference of NULL ‘client’
# 2154|   	}
# 2155|   
# 2156|-> 	client->binding = dcerpc_binding_string(client, endpoint->binding);
# 2157|   	if (client->binding == NULL) {
# 2158|   		DBG_WARNING("dcerpc_binding_string failed, dropping client\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2543:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2519:13: enter_function: entry to ‘rpc_host_server_setup_done’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2525:28: release_memory: ‘server’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2530:18: call_function: calling ‘rpc_server_setup_recv’ from ‘rpc_host_server_setup_done’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2530:18: return_function: returning to ‘rpc_host_server_setup_done’ from ‘rpc_server_setup_recv’
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2532:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2543:32: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2543:15: release_memory: ‘server’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2544:9: release_memory: ‘0’ is NULL
samba-4.22.1/bin/default/../../source3/rpc_server/rpc_host.c:2543:9: danger: dereference of NULL ‘server’
# 2541|   	}
# 2542|   
# 2543|-> 	server->server_index = state->num_prepared;
# 2544|   	host->servers[state->num_prepared] = server;
# 2545|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:204:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(slavedev, 2, 0), 0)’
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1075:10: enter_function: entry to ‘change_oem_password’
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1094:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1105:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1142:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1149:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1150:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1155:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1159:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1176:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1176:11: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1177:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1177:13: call_function: calling ‘chgpasswd’ from ‘change_oem_password’
#  202|   	/* Make slave stdin/out/err of child. */
#  203|   
#  204|-> 	if (dup2(slave, STDIN_FILENO) != STDIN_FILENO)
#  205|   	{
#  206|   		DEBUG(3, ("Could not re-direct stdin\n"));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def322]
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:209:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(slavedev, 2, 0), 1)’
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1075:10: enter_function: entry to ‘change_oem_password’
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1094:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1105:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1142:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1149:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1150:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1155:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1159:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1176:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1176:11: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1177:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1177:13: call_function: calling ‘chgpasswd’ from ‘change_oem_password’
#  207|   		return (False);
#  208|   	}
#  209|-> 	if (dup2(slave, STDOUT_FILENO) != STDOUT_FILENO)
#  210|   	{
#  211|   		DEBUG(3, ("Could not re-direct stdout\n"));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def323]
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:214:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(slavedev, 2, 0), 2)’
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1075:10: enter_function: entry to ‘change_oem_password’
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1094:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1105:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1142:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1149:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1150:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1155:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1159:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1176:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1176:11: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1177:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_chgpasswd.c:1177:13: call_function: calling ‘chgpasswd’ from ‘change_oem_password’
#  212|   		return (False);
#  213|   	}
#  214|-> 	if (dup2(slave, STDERR_FILENO) != STDERR_FILENO)
#  215|   	{
#  216|   		DEBUG(3, ("Could not re-direct stderr\n"));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_nt.c:2186:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_samr_scompat.c:2185:10: enter_function: entry to ‘samr__op_local’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_samr_scompat.c:2187:16: call_function: calling ‘samr__op_dispatch_internal’ from ‘samr__op_local’
# 2184|   
# 2185|   	for (i = 0; i < num_names; i++) {
# 2186|-> 		DEBUG(10, ("names[%d]:%s\n", i, names[i] && *names[i] ? names[i] : ""));
# 2187|   		init_lsa_String(&lsa_name_array[i], names[i]);
# 2188|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def325]
samba-4.22.1/bin/default/../../source3/rpc_server/samr/srv_samr_nt.c:2187:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_samr_scompat.c:2185:10: enter_function: entry to ‘samr__op_local’
samba-4.22.1/bin/default/./librpc/gen_ndr/ndr_samr_scompat.c:2187:16: call_function: calling ‘samr__op_dispatch_internal’ from ‘samr__op_local’
# 2185|   	for (i = 0; i < num_names; i++) {
# 2186|   		DEBUG(10, ("names[%d]:%s\n", i, names[i] && *names[i] ? names[i] : ""));
# 2187|-> 		init_lsa_String(&lsa_name_array[i], names[i]);
# 2188|   	}
# 2189|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
samba-4.22.1/bin/default/../../source3/smbd/dir.c:490:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir_hnd’
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1664:10: enter_function: entry to ‘can_delete_directory_fsp’
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1666:25: release_memory: ‘dir_hnd’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1669:18: call_function: calling ‘OpenDir_from_pathref’ from ‘can_delete_directory_fsp’
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1669:18: return_function: returning to ‘can_delete_directory_fsp’ from ‘OpenDir_from_pathref’
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1670:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1673:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1673:18: release_memory: ‘dir_hnd’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/dir.c:1673:18: call_function: calling ‘can_delete_directory_hnd’ from ‘can_delete_directory_fsp’
#  488|   struct files_struct *dir_hnd_fetch_fsp(struct smb_Dir *dir_hnd)
#  489|   {
#  490|-> 	return dir_hnd->fsp;
#  491|   }
#  492|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:750:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parent_smb_fname’
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:655:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:661:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:682:38: release_memory: ‘smb_fname_walk’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:684:17: branch_false: following ‘false’ branch (when ‘parent_smb_fname’ is NULL)...
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:692:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:701:21: release_memory: ‘smb_fname_walk’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:701:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:704:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:706:20: branch_true: following ‘true’ branch (when ‘<unknown> != 3221226071’)...
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:742:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:742:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:750:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/msdfs.c:750:13: danger: dereference of NULL ‘parent_smb_fname’
#  748|   	}
#  749|   
#  750|-> 	if (parent_smb_fname->fsp == NULL) {
#  751|   		/* Unable to open parent. */
#  752|   		DBG_DEBUG("dfspath = %s. reqpath = %s. "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def328]
samba-4.22.1/bin/default/../../source3/smbd/notifyd/notifyd.c:427:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘instance’
samba-4.22.1/bin/default/../../source3/smbd/notifyd/notifyd.c:625:13: enter_function: entry to ‘notifyd_rec_change’
samba-4.22.1/bin/default/../../source3/smbd/notifyd/notifyd.c:642:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/notifyd/notifyd.c:646:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/notifyd/notifyd.c:648:14: call_function: calling ‘notifyd_apply_rec_change’ from ‘notifyd_rec_change’
#  425|   
#  426|   	if (i < num_instances) {
#  427|-> 		instance->instance = *chg;
#  428|   	} else {
#  429|   		/*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def329]
samba-4.22.1/bin/default/../../source3/smbd/server.c:1115:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.fd’
samba-4.22.1/bin/default/../../source3/smbd/server.c:1090:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/server.c:1094:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/server.c:1097:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/server.c:1108:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/server.c:1115:12: danger: ‘*<unknown>.fd’ leaks here
# 1113|   	set_blocking(s->fd, False);
# 1114|   
# 1115|-> 	if (listen(s->fd, SMBD_LISTEN_BACKLOG) == -1) {
# 1116|   		DEBUG(0,("smbd_open_one_socket: listen: "
# 1117|   			"%s\n", strerror(errno)));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def330]
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2568:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2566:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2572:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2626:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2627:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2678:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2681:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2681:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2684:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2568:24: danger: ‘listener_pipe[0]’ leaks here
# 2566|   	if (res == -1) {
# 2567|   		DEBUG(1, ("pipe() failed: %s\n", strerror(errno)));
# 2568|-> 		return false;
# 2569|   	}
# 2570|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def331]
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2568:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2566:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2572:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2626:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2627:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2678:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2681:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2681:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2684:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb1_process.c:2568:24: danger: ‘listener_pipe[1]’ leaks here
# 2566|   	if (res == -1) {
# 2567|   		DEBUG(1, ("pipe() failed: %s\n", strerror(errno)));
# 2568|-> 		return false;
# 2569|   	}
# 2570|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def332]
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:335:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘symlink_reparse’
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:438:13: enter_function: entry to ‘smbd_smb2_request_create_done’
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:459:37: release_memory: ‘symlink_reparse’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:459:37: release_memory: ‘symlink_reparse’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:459:37: release_memory: ‘symlink_reparse’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:459:37: release_memory: ‘symlink_reparse’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:478:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:479:21: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:479:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:482:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:482:25: release_memory: ‘symlink_reparse’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:482:25: call_function: calling ‘smbd_smb2_create_error’ from ‘smbd_smb2_request_create_done’
#  333|   	uint8_t *resp = NULL;
#  334|   
#  335|-> 	SMB_ASSERT(symlink_reparse->tag == IO_REPARSE_TAG_SYMLINK);
#  336|   
#  337|   	symlink_buffer_len = reparse_data_buffer_marshall(symlink_reparse,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def333]
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:493:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out_context_blobs’
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:438:13: enter_function: entry to ‘smbd_smb2_request_create_done’
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:463:18: call_function: calling ‘smbd_smb2_create_recv’ from ‘smbd_smb2_request_create_done’
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:463:18: return_function: returning to ‘smbd_smb2_request_create_done’ from ‘smbd_smb2_create_recv’
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:478:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:493:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_create.c:493:18: danger: use of uninitialized value ‘out_context_blobs’ here
#  491|   	}
#  492|   
#  493|-> 	status = smb2_create_blob_push(smb2req, &out_context_buffer, out_context_blobs);
#  494|   	if (!NT_STATUS_IS_OK(status)) {
#  495|   		error = smbd_smb2_request_error(smb2req, status);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def334]
samba-4.22.1/bin/default/../../source3/smbd/smb2_ioctl_filesys.c:489:42: warning[-Wanalyzer-deref-before-check]: check of ‘((struct files_struct)*((files_struct *)fsp)).conn’ for NULL after already dereferencing it
samba-4.22.1/bin/default/../../source3/smbd/smb2_ioctl_filesys.c:731:20: enter_function: entry to ‘smb2_ioctl_filesys’
samba-4.22.1/bin/default/../../source3/smbd/smb2_ioctl_filesys.c:757:26: call_function: calling ‘fsctl_zero_data’ from ‘smb2_ioctl_filesys’
#  487|   	}
#  488|   
#  489|-> 	if (!fsp->fsp_flags.is_sparse && lp_strict_allocate(SNUM(fsp->conn))) {
#  490|   		/*
#  491|   		 * File marked non-sparse and "strict allocate" is enabled -

Error: GCC_ANALYZER_WARNING (CWE-476): [#def335]
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:46:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:37:12: branch_false: following ‘false’ branch (when ‘reparse_tag != 2684354572’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:41:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:41:12: branch_true: following ‘true’ branch (when ‘reparse_tag != 2147483668’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:46:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:46:17: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb2_posix.c:46:17: danger: dereference of NULL ‘0’
#   44|   		 * anything that is not a NFS one (or symlink) as S_IFREG.
#   45|   		 */
#   46|-> 		DBG_INFO("Unhandled NFS reparse tag: 0x%" PRIx32 "\n",
#   47|   			 reparse->tag);
#   48|   		*type = S_IFREG;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def336]
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:238:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:227:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:228:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:233:20: branch_false: following ‘false’ branch (when ‘saved_errno != 38’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:237:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:237:20: branch_true: following ‘true’ branch (when ‘saved_errno == 95’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:238:42: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:238:25: danger: pointer ‘*fsp.conn’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  236|   
#  237|   		if (errno == ENOTSUP) {
#  238|-> 			set_use_sendfile(SNUM(fsp->conn), false);
#  239|   			DBG_WARNING("Disabling sendfile use as sendfile is "
#  240|   				    "not supported by the system\n");

Error: GCC_ANALYZER_WARNING (CWE-465): [#def337]
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:250:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:227:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:228:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:233:20: branch_false: following ‘false’ branch (when ‘saved_errno != 38’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:237:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:237:20: branch_false: following ‘false’ branch (when ‘saved_errno != 95’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:244:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:244:20: branch_true: following ‘true’ branch (when ‘saved_errno == 4’)...
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:250:42: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smb2_read.c:250:25: danger: pointer ‘*fsp.conn’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  248|   			 * Fake this up by doing read/write calls.
#  249|   			 */
#  250|-> 			set_use_sendfile(SNUM(fsp->conn), false);
#  251|   			nread = fake_sendfile(xconn, fsp, in_offset, in_length);
#  252|   			if (nread == -1) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:291:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1169:13: enter_function: entry to ‘smb2srv_open_recreate_fn’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1176:25: call_function: calling ‘smbXsrv_open_global_verify_record’ from ‘smb2srv_open_recreate_fn’
#  289|   	}
#  290|   
#  291|-> 	DBG_WARNING("smbd %s did not clean up record %s\n",
#  292|   		    server_id_str_buf(global0->server_id, &buf),
#  293|   		    tdb_data_dbg(key));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def339]
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:291:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘global0’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:266:38: release_memory: ‘global0’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:270:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:274:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:275:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:282:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:282:9: release_memory: ‘global0’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:282:9: release_memory: ‘global0’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:284:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:287:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:287:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:291:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:291:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:291:9: danger: dereference of NULL ‘global0’
#  289|   	}
#  290|   
#  291|-> 	DBG_WARNING("smbd %s did not clean up record %s\n",
#  292|   		    server_id_str_buf(global0->server_id, &buf),
#  293|   		    tdb_data_dbg(key));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def340]
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1437:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘global’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1405:38: release_memory: ‘global’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1409:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1418:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1420:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1431:46: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1431:46: release_memory: ‘global’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1431:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1432:38: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1437:17: danger: dereference of NULL ‘global’
# 1435|   		int64_t tdiff;
# 1436|   
# 1437|-> 		nttime_to_timeval(&disconnect_time, global->disconnect_time);
# 1438|   		tdiff = usec_time_diff(&now, &disconnect_time);
# 1439|   		delete_open = (tdiff >= 1000*global->durable_timeout_msec);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def341]
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1454:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘global’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1405:38: release_memory: ‘global’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1409:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1418:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1420:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1431:46: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1431:46: release_memory: ‘global’ is NULL
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1431:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1452:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1452:19: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1454:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1454:17: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_open.c:1454:17: danger: dereference of NULL ‘global’
# 1452|   	} else if (!serverid_exists(&global->server_id)) {
# 1453|   		struct server_id_buf idbuf;
# 1454|-> 		DBG_DEBUG("[global: 0x%08x] "
# 1455|   			  "server[%s] does not exist\n",
# 1456|   			  state->global_id,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_session.c:1882:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*session.client’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_session.c:1227:17: enter_function: entry to ‘smbXsrv_session_clear_and_logoff’
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_session.c:1232:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_session.c:1236:16: branch_false: following ‘false’ branch (when ‘xconn’ is NULL)...
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_session.c:1255:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/smbd/smbXsrv_session.c:1255:18: call_function: calling ‘smbXsrv_session_logoff’ from ‘smbXsrv_session_clear_and_logoff’
# 1880|   	session->table = NULL;
# 1881|   
# 1882|-> 	sconn = session->client->sconn;
# 1883|   	session->client = NULL;
# 1884|   	session->status = NT_STATUS_USER_SESSION_DELETED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:173:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newdata’
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:167:36: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:173:9: danger: ‘newdata’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  171|   	HDR_TCP.source_port = HDR_TCP.dest_port = htons(139);
#  172|   
#  173|-> 	memcpy(newdata+offset, &HDR_IP, sizeof(HDR_IP));offset+=sizeof(HDR_IP);
#  174|   	memcpy(newdata+offset, &HDR_TCP, sizeof(HDR_TCP));offset+=sizeof(HDR_TCP);
#  175|   	memcpy(newdata+offset,data,length);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:219:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:215:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:215:56: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:216:35: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source3/utils/log2pcaphex.c:219:9: danger: ‘buffer’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  217|   	memset(buffer, 0, *buffersize+4);
#  218|   	/* NetBIOS Session Service */
#  219|-> 	buffer[0] = 0x00;
#  220|   	buffer[1] = 0x00;
#  221|   	memcpy(buffer+2, &buffersize, 2); /* TODO: need to copy as little-endian regardless of platform */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def345]
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:359:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘input’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:342:12: enter_function: entry to ‘net_idmap_restore’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:351:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:362:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:364:18: call_function: calling ‘net_idmap_dbfile’ from ‘net_idmap_restore’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:364:18: return_function: returning to ‘net_idmap_restore’ from ‘net_idmap_dbfile’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:366:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:371:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:371:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:378:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:380:12: branch_true: following ‘true’ branch (when ‘argc == 1’)...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:381:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:381:25: acquire_resource: opened here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:382:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:392:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:472:12: branch_true: following ‘true’ branch (when ‘input’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:472:32: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:472:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:359:24: danger: ‘input’ leaks here; was opened at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#  357|   			   "    inputfile\tFile to load ID mappings from. If not "
#  358|   			   "given, load data from stdin.\n"));
#  359|-> 		return 0;
#  360|   	}
#  361|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:359:24: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:342:12: enter_function: entry to ‘net_idmap_restore’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:351:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:362:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:364:18: call_function: calling ‘net_idmap_dbfile’ from ‘net_idmap_restore’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:364:18: return_function: returning to ‘net_idmap_restore’ from ‘net_idmap_dbfile’
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:366:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:371:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:371:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:378:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:380:12: branch_true: following ‘true’ branch (when ‘argc == 1’)...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:381:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:381:25: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:382:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:392:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:472:12: branch_true: following ‘true’ branch (when ‘input’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:472:32: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:472:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap.c:359:24: danger: ‘input’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  357|   			   "    inputfile\tFile to load ID mappings from. If not "
#  358|   			   "given, load data from stdin.\n"));
#  359|-> 		return 0;
#  360|   	}
#  361|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
samba-4.22.1/bin/default/../../source3/utils/net_idmap_check.c:815:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.22.1/bin/default/../../source3/utils/net_idmap_check.c:935:5: enter_function: entry to ‘net_idmap_check_db’
samba-4.22.1/bin/default/../../source3/utils/net_idmap_check.c:945:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_idmap_check.c:946:21: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_idmap_check.c:946:21: call_function: calling ‘check_open_db’ from ‘net_idmap_check_db’
#  813|   	}
#  814|   
#  815|-> 	if (ctx->db != NULL) {
#  816|   		if ((ctx->oflags == oflags) && (strcmp(ctx->name, name))) {
#  817|   			return true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def348]
samba-4.22.1/bin/default/../../source3/utils/net_rap.c:246:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘sharename’ where non-null expected
samba-4.22.1/bin/default/../../source3/utils/net_rap.c:242:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rap.c:245:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rap.c:245:21: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source3/utils/net_rap.c:246:13: danger: argument 1 (‘sharename’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  244|   
#  245|   	sharename = SMB_STRDUP(argv[0]);
#  246|-> 	p = strchr(sharename, '=');
#  247|   	if (p == NULL) {
#  248|   		d_printf(_("Server path not specified\n"));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def349]
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:377:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:1261:5: enter_function: entry to ‘net_registry_check_db’
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:1265:33: call_function: calling ‘check_ctx_create’ from ‘net_registry_check_db’
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:1265:33: return_function: returning to ‘net_registry_check_db’ from ‘check_ctx_create’
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:1266:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:1267:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_registry_check.c:1316:9: call_function: calling ‘check_ctx_transaction_stop’ from ‘net_registry_check_db’
#  375|   
#  376|   static void check_ctx_transaction_stop(struct check_ctx *ctx, bool ok) {
#  377|-> 	if (!ctx->transaction) {
#  378|   		return;
#  379|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def350]
samba-4.22.1/bin/default/../../source3/utils/net_rpc.c:198:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_name’
samba-4.22.1/bin/default/../../source3/utils/net_rpc.c:3401:12: enter_function: entry to ‘rpc_group_members’
samba-4.22.1/bin/default/../../source3/utils/net_rpc.c:3407:16: call_function: calling ‘run_rpc_command’ from ‘rpc_group_members’
#  196|   			/* Always try and create an schannel netlogon pipe. */
#  197|   			TALLOC_FREE(c->netlogon_creds);
#  198|-> 			nt_status = cli_rpc_pipe_open_schannel(
#  199|   				cli, c->msg_ctx, table, NCACN_NP,
#  200|   				domain_name,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1244:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘services’
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1141:17: enter_function: entry to ‘rpc_conf_import_internal’
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1161:34: release_memory: ‘services’ is NULL
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1161:34: release_memory: ‘services’ is NULL
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1173:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1179:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1187:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1194:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1202:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1207:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1208:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1214:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1219:12: branch_true: following ‘true’ branch (when ‘servicename’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1220:23: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1223:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1227:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1239:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1240:20: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1240:20: branch_true: following ‘true’ branch (when ‘servicename’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1241:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1241:25: call_function: inlined call to ‘rpc_conf_print_shares’ from ‘rpc_conf_import_internal’
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1241:25: call_function: inlined call to ‘rpc_conf_print_shares’ from ‘rpc_conf_import_internal’
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1243:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1244:58: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1244:58: release_memory: ‘services’ is NULL
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1244:58: release_memory: ‘services’ is NULL
samba-4.22.1/bin/default/../../source3/utils/net_rpc_conf.c:1244:25: danger: dereference of NULL ‘services + (long unsigned int)i * 8’
# 1242|   		}
# 1243|   		for (i = 0; i < num_shares; i++) {
# 1244|-> 			rpc_conf_print_shares(1, services[i]);
# 1245|   		}
# 1246|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
samba-4.22.1/bin/default/../../source3/utils/net_rpc_trust.c:652:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/utils/net_rpc_trust.c:707:12: enter_function: entry to ‘rpc_trust_delete’
samba-4.22.1/bin/default/../../source3/utils/net_rpc_trust.c:710:16: call_function: calling ‘rpc_trust_common’ from ‘rpc_trust_delete’
#  650|   		}
#  651|   	} else if (op == TRUST_DELETE) {
#  652|-> 		status = delete_trust(mem_ctx, pipe_hnd[0]->binding_handle,
#  653|   				      &pol_hnd[0], dom_data[1].domsid);
#  654|   		if (!NT_STATUS_IS_OK(status)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
samba-4.22.1/bin/default/../../source3/utils/net_util.c:433:16: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.22.1/bin/default/../../source3/utils/net_util.c:384:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.22.1/bin/default/../../source3/utils/net_util.c:394:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_util.c:395:22: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_util.c:395:22: call_function: calling ‘net_find_server’ from ‘net_make_ipc_connection_ex’
samba-4.22.1/bin/default/../../source3/utils/net_util.c:395:22: return_function: returning to ‘net_make_ipc_connection_ex’ from ‘net_find_server’
samba-4.22.1/bin/default/../../source3/utils/net_util.c:395:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/net_util.c:397:43: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_util.c:430:12: branch_false: following ‘false’ branch (when ‘pcli’ is NULL)...
samba-4.22.1/bin/default/../../source3/utils/net_util.c:433:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/net_util.c:433:16: danger: ‘server_name’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  431|   		*pcli = cli;
#  432|   	}
#  433|-> 	return nt_status;
#  434|   }
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:102:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dia’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2276:5: enter_function: entry to ‘dialog_search_input’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2303:9: call_function: calling ‘dialog_set_submit_cb’ from ‘dialog_search_input’
#  100|   void dialog_set_submit_cb(struct dialog *dia, dialog_submit_cb cb, void *arg)
#  101|   {
#  102|-> 	dia->submit = cb;
#  103|   	dia->submit_arg = arg;
#  104|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2276:5: enter_function: entry to ‘dialog_search_input’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2302:15: call_function: calling ‘dialog_new’ from ‘dialog_search_input’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2302:15: return_function: returning to ‘dialog_search_input’ from ‘dialog_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2304:19: call_function: calling ‘dialog_section_label_new’ from ‘dialog_search_input’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2304:19: return_function: returning to ‘dialog_search_input’ from ‘dialog_section_label_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2305:9: call_function: calling ‘dialog_append_section’ from ‘dialog_search_input’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2305:9: return_function: returning to ‘dialog_search_input’ from ‘dialog_append_section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2306:17: call_function: calling ‘dialog_section_text_field_new’ from ‘dialog_search_input’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2306:17: return_function: returning to ‘dialog_search_input’ from ‘dialog_section_text_field_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2307:9: call_function: calling ‘dialog_section_set_name’ from ‘dialog_search_input’
#  155|   void dialog_section_set_name(struct dialog_section *section, const char *name)
#  156|   {
#  157|-> 	TALLOC_FREE(section->name);
#  158|   	section->name = talloc_strdup(section, name);
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def356]
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:164:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2183:5: enter_function: entry to ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2207:21: branch_true: following ‘true’ branch (when ‘i != 5’)...
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2208:34: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2212:15: call_function: calling ‘dialog_new’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2212:15: return_function: returning to ‘dialog_select_type’ from ‘dialog_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2214:19: call_function: calling ‘dialog_section_label_new’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2214:19: return_function: returning to ‘dialog_select_type’ from ‘dialog_section_label_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2215:9: call_function: calling ‘dialog_append_section’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2215:9: return_function: returning to ‘dialog_select_type’ from ‘dialog_append_section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2217:9: call_function: calling ‘dialog_append_section’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2217:9: return_function: returning to ‘dialog_select_type’ from ‘dialog_append_section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2218:19: call_function: calling ‘dialog_section_options_new’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2218:19: return_function: returning to ‘dialog_select_type’ from ‘dialog_section_options_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2219:9: call_function: calling ‘dialog_append_section’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2219:9: return_function: returning to ‘dialog_select_type’ from ‘dialog_append_section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2221:9: call_function: calling ‘dialog_append_section’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2221:9: return_function: returning to ‘dialog_select_type’ from ‘dialog_append_section’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2223:9: call_function: calling ‘dialog_section_set_justify’ from ‘dialog_select_type’
#  162|   				enum section_justify justify)
#  163|   {
#  164|-> 	section->justify = justify;
#  165|   }
#  166|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def357]
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:173:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dia’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2183:5: enter_function: entry to ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2207:21: branch_true: following ‘true’ branch (when ‘i != 5’)...
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2208:34: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2214:19: call_function: calling ‘dialog_section_label_new’ from ‘dialog_select_type’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2214:19: return_function: returning to ‘dialog_select_type’ from ‘dialog_section_label_new’
samba-4.22.1/bin/default/../../source3/utils/regedit_dialog.c:2215:9: call_function: calling ‘dialog_append_section’ from ‘dialog_select_type’
#  171|   	SMB_ASSERT(section != NULL);
#  172|   
#  173|-> 	if (!dia->head_section) {
#  174|   		dia->head_section = section;
#  175|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:113:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘left’
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:121:6: enter_function: entry to ‘tree_node_append_last’
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:123:9: call_function: calling ‘tree_node_last’ from ‘tree_node_append_last’
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:123:9: return_function: returning to ‘tree_node_append_last’ from ‘tree_node_last’
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:123:9: call_function: calling ‘tree_node_append’ from ‘tree_node_append_last’
#  111|   void tree_node_append(struct tree_node *left, struct tree_node *right)
#  112|   {
#  113|-> 	if (left->next) {
#  114|   		right->next = left->next;
#  115|   		left->next->previous = right;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def359]
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:312:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rv.w’
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:263:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:266:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:267:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:270:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:271:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:275:32: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:296:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:296:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:309:1: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:312:16: danger: use of uninitialized value ‘rv.w’ here
#  310|   	talloc_free(array);
#  311|   
#  312|-> 	return rv;
#  313|   }
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def360]
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:696:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:684:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:687:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:690:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:693:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/regedit_treeview.c:696:16: danger: dereference of NULL ‘path’
#  694|   	path = tree_node_get_path(frame, node->parent);
#  695|   
#  696|-> 	while (*path) {
#  697|   		len += strlen(*path) + 1;
#  698|   		wprintw(label, "%s/", *path);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def361]
samba-4.22.1/bin/default/../../source3/utils/smbfilter.c:298:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_socket_in(1, &my_ss, 445, 1)’
samba-4.22.1/bin/default/../../source3/utils/smbfilter.c:289:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/smbfilter.c:294:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/smbfilter.c:294:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/utils/smbfilter.c:298:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/utils/smbfilter.c:298:12: danger: ‘open_socket_in(1, &my_ss, 445, 1)’ leaks here
#  296|   	}
#  297|   
#  298|-> 	if (!resolve_name(desthost, &dest_ss, 0x20, false)) {
#  299|   		d_printf("Unable to resolve host %s\n", desthost);
#  300|   		exit(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def362]
samba-4.22.1/bin/default/../../source3/winbindd/idmap_ad.c:664:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.22.1/bin/default/../../source3/winbindd/idmap_ad.c:1264:17: enter_function: entry to ‘idmap_ad_sids_to_unixids_retry’
samba-4.22.1/bin/default/../../source3/winbindd/idmap_ad.c:1271:18: call_function: calling ‘idmap_ad_sids_to_unixids’ from ‘idmap_ad_sids_to_unixids_retry’
#  662|   	}
#  663|   
#  664|-> 	if ((ctx->allow_ous == NULL) && (ctx->deny_ous == NULL)) {
#  665|   		/*
#  666|   		 * Nothing to check

Error: GCC_ANALYZER_WARNING (CWE-775): [#def363]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1039:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘create_pipe_sock(lp_winbindd_socket_directory(), "pipe", 493)’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1028:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1032:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1035:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1038:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1039:12: danger: ‘create_pipe_sock(lp_winbindd_socket_directory(), "pipe", 493)’ leaks here
# 1037|   	}
# 1038|   	rc = listen(pub_state->fd, 5);
# 1039|-> 	if (rc < 0) {
# 1040|   		goto failed;
# 1041|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def364]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1071:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.fd’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1028:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1032:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1035:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1038:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1039:12: branch_false: following ‘false’ branch (when ‘rc >= 0’)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1043:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1046:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1050:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1054:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1058:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1059:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1063:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1067:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1070:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd.c:1071:12: danger: ‘*<unknown>.fd’ leaks here
# 1069|   	}
# 1070|   	rc = listen(priv_state->fd, 5);
# 1071|-> 	if (rc < 0) {
# 1072|   		goto failed;
# 1073|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def365]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_dual.c:1191:51: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_dual.c:1144:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_dual.c:1148:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_dual.c:1175:35: branch_false: following ‘false’ branch (when ‘dom’ is NULL)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_dual.c:1191:51: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_dual.c:1191:51: danger: argument 1 (‘s’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1189|   	status = messaging_send_buf(msg_ctx, server_id,
# 1190|   				    MSG_WINBIND_DUMP_DOMAIN_LIST,
# 1191|-> 				    (uint8_t *)s, strlen(s) + 1);
# 1192|   	if (!NT_STATUS_IS_OK(status)) {
# 1193|   		DEBUG(0,("failed to send message: %s\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def366]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:275:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domains’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:216:17: enter_function: entry to ‘msrpc_name_to_sid’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:230:22: release_memory: ‘domains’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:241:12: branch_false: following ‘false’ branch (when ‘full_name’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:246:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:264:18: call_function: calling ‘winbindd_lookup_names’ from ‘msrpc_name_to_sid’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:264:18: return_function: returning to ‘msrpc_name_to_sid’ from ‘winbindd_lookup_names’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:267:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:272:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:272:12: branch_true: following ‘true’ branch (when ‘pdom_name’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:275:21: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:275:21: release_memory: ‘domains’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:275:21: danger: dereference of NULL ‘domains’
#  273|   		const char *dom_name = NULL;
#  274|   
#  275|-> 		if (domains[0] != NULL) {
#  276|   			dom_name = talloc_strdup(mem_ctx, domains[0]);
#  277|   			if (dom_name == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def367]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:285:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘types’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:216:17: enter_function: entry to ‘msrpc_name_to_sid’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:227:27: release_memory: ‘types’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:241:12: branch_false: following ‘false’ branch (when ‘full_name’ is non-NULL)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:246:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:264:18: call_function: calling ‘winbindd_lookup_names’ from ‘msrpc_name_to_sid’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:264:18: return_function: returning to ‘msrpc_name_to_sid’ from ‘winbindd_lookup_names’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:267:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:272:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:272:12: branch_false: following ‘false’ branch (when ‘pdom_name’ is NULL)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:284:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:285:17: release_memory: ‘types’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:285:17: release_memory: ‘types’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:285:17: danger: dereference of NULL ‘types’
#  283|   
#  284|   	sid_copy(sid, &sids[0]);
#  285|-> 	*type = types[0];
#  286|   
#  287|   	return NT_STATUS_OK;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def368]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:326:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘types’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:293:17: enter_function: entry to ‘msrpc_sid_to_name’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:302:27: release_memory: ‘types’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:312:18: call_function: calling ‘winbindd_lookup_sids’ from ‘msrpc_sid_to_name’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:312:18: return_function: returning to ‘msrpc_sid_to_name’ from ‘winbindd_lookup_sids’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:319:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:326:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:326:17: release_memory: ‘types’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:326:17: danger: dereference of NULL ‘types’
#  324|   
#  325|   
#  326|-> 	*type = (enum lsa_SidType)types[0];
#  327|   	*domain_name = domains[0];
#  328|   	*name = names[0];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def369]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:1054:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:1053:12: branch_true: following ‘true’ branch (when ‘domains’ is NULL)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:1054:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_msrpc.c:1054:17: danger: dereference of NULL ‘0’
# 1052|    connect:
# 1053|   	if (domains == NULL) {
# 1054|-> 		*domains = NULL;
# 1055|   	}
# 1056|   	*sids = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def370]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3500:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pac_data’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3457:26: release_memory: ‘pac_data’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3457:26: release_memory: ‘pac_data’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3470:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3474:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3483:12: branch_false: following ‘false’ branch (when ‘<unknown> != 3221225506’)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3494:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3494:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3500:31: release_memory: ‘pac_data’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_pam.c:3500:23: danger: dereference of NULL ‘pac_data’
# 3498|   	}
# 3499|   
# 3500|-> 	for (i=0; i < pac_data->num_buffers; i++) {
# 3501|   		if (pac_data->buffers[i].type == PAC_TYPE_LOGON_INFO) {
# 3502|   			logon_info = pac_data->buffers[i].info->logon_info.info;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def371]
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:358:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:348:20: branch_false: following ‘false’ branch (when ‘total_sids == num_sids’)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:354:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:354:25: release_memory: ‘sid_array.sids’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:357:29: branch_true: following ‘true’ branch (when ‘i < num_query_sids’)...
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:358:76: branch_true: ...to here
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:358:25: release_memory: ‘sid_array.sids’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:358:39: release_memory: ‘sid_array.sids’ is NULL
samba-4.22.1/bin/default/../../source3/winbindd/winbindd_rpc.c:358:25: danger: dereference of NULL ‘sid_array.sids + (long unsigned int)i * 8’
#  356|   
#  357|   		for (i = 0; i < num_query_sids; i++) {
#  358|-> 			sid_array.sids[i].sid = dom_sid_dup(mem_ctx, &sids[total_sids++]);
#  359|   			if (sid_array.sids[i].sid == NULL) {
#  360|   				return NT_STATUS_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def372]
samba-4.22.1/bin/default/../../source4/client/cifsdd.c:244:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘long unsigned int’ for variadic argument 1 of ‘ap’
samba-4.22.1/bin/default/../../source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
#  242|   			break;
#  243|   		case ARG_BOOL:
#  244|-> 			arg->arg_val.bval = va_arg(ap, int);
#  245|   			break;
#  246|   		case ARG_PATHNAME:

Error: GCC_ANALYZER_WARNING (CWE-686): [#def373]
samba-4.22.1/bin/default/../../source4/client/cifsdd.c:247:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘char *’ but received ‘long unsigned int’ for variadic argument 1 of ‘ap’
samba-4.22.1/bin/default/../../source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
#  245|   			break;
#  246|   		case ARG_PATHNAME:
#  247|-> 			arg->arg_val.pval = va_arg(ap, char *);
#  248|   			if (arg->arg_val.pval) {
#  249|   				arg->arg_val.pval = strdup(arg->arg_val.pval);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def374]
samba-4.22.1/bin/default/../../source4/client/client.c:1134:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.22.1/bin/default/../../source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.22.1/bin/default/../../source4/client/client.c:1152:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.22.1/bin/default/../../source4/client/client.c:1156:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1156:21: acquire_resource: opened here
samba-4.22.1/bin/default/../../source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/client/client.c:1172:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1205:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:1213:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1213:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:1217:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1235:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:1134:40: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1134:40: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 1132|   			    NT_STATUS_IS_ERR(smbcli_getattrE(ctx->cli->tree, fnum, NULL, &start, NULL, NULL, NULL))) {
# 1133|   				d_printf("getattrib: %s\n",smbcli_errstr(ctx->cli->tree));
# 1134|-> 				return 1;
# 1135|   			}
# 1136|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
samba-4.22.1/bin/default/../../source4/client/client.c:1134:40: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.22.1/bin/default/../../source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.22.1/bin/default/../../source4/client/client.c:1152:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.22.1/bin/default/../../source4/client/client.c:1156:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1156:21: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/client/client.c:1172:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1205:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:1213:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1213:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:1217:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1235:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:1134:40: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:1134:40: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 1132|   			    NT_STATUS_IS_ERR(smbcli_getattrE(ctx->cli->tree, fnum, NULL, &start, NULL, NULL, NULL))) {
# 1133|   				d_printf("getattrib: %s\n",smbcli_errstr(ctx->cli->tree));
# 1134|-> 				return 1;
# 1135|   			}
# 1136|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
samba-4.22.1/bin/default/../../source4/client/client.c:2927:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.22.1/bin/default/../../source4/client/client.c:2925:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:2926:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:2927:54: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source4/client/client.c:2927:25: danger: ‘strdup(*f.name)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 2925|   	if ((info->count < MAX_COMPLETIONS - 1) && (strncmp(info->text, f->name, info->len) == 0) && (!ISDOT(f->name)) && (!ISDOTDOT(f->name))) {
# 2926|   		if ((info->dirmask[0] == 0) && !(f->attrib & FILE_ATTRIBUTE_DIRECTORY))
# 2927|-> 			info->matches[info->count] = strdup(f->name);
# 2928|   		else {
# 2929|   			char *tmp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
samba-4.22.1/bin/default/../../source4/client/client.c:2996:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(info.matches[1])’
samba-4.22.1/bin/default/../../source4/client/client.c:2965:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
samba-4.22.1/bin/default/../../source4/client/client.c:2968:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:2969:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:2970:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:2986:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.22.1/bin/default/../../source4/client/client.c:2990:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:2990:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:2995:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:2995:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/client/client.c:2996:42: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/client/client.c:2996:35: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source4/client/client.c:2996:17: danger: ‘strdup(info.matches[1])’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
# 2994|   
# 2995|   	if (info.count == 2)
# 2996|-> 		info.matches[0] = strdup(info.matches[1]);
# 2997|   	else {
# 2998|   		info.matches[0] = malloc_array_p(char, info.samelen+1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def378]
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:772:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tkey’
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:953:20: enter_function: entry to ‘dns_server_process_query_send’
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:965:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:968:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:968:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:974:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:974:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:979:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:979:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:983:58: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dns_server/dns_query.c:982:23: call_function: calling ‘handle_tkey’ from ‘dns_server_process_query_send’
#  770|   	 * gensec_update_send/recv here!
#  771|   	 */
#  772|-> 	status = gensec_update(tkey->gensec, mem_ctx,
#  773|   			       *key, reply);
#  774|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def379]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:1928:56: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2016:5: enter_function: entry to ‘samdb_rid_manager_dn’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2018:16: call_function: calling ‘samdb_reference_dn’ from ‘samdb_rid_manager_dn’
# 1926|   	}
# 1927|   
# 1928|-> 	*dn = ldb_msg_find_attr_as_dn(ldb, mem_ctx, res->msgs[0], attribute);
# 1929|   	if (!*dn) {
# 1930|   		if (!ldb_msg_find_element(res->msgs[0], attribute)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def380]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2782:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2781:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2782:17: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2782:17: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2782:17: danger: dereference of NULL ‘user_msg’
# 2780|   	if (!(uac & UF_ACCOUNT_TYPE_MASK)) {
# 2781|   		ldb_transaction_cancel(ldb);
# 2782|-> 		DEBUG(1, ("samdb_set_password_sid: invalid "
# 2783|   			  "userAccountControl[0x%08X] for SID[%s] DN[%s], "
# 2784|   			  "returning NO_SUCH_USER\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def381]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2820:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2819:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2820:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2820:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2820:25: danger: dereference of NULL ‘user_msg’
# 2818|   		if (new_password == NULL && ntNewHash == NULL) {
# 2819|   			ldb_transaction_cancel(ldb);
# 2820|-> 			DEBUG(1, ("samdb_set_password_sid: "
# 2821|   				  "no new password provided "
# 2822|   				  "sAMAccountName for SID[%s] DN[%s], "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def382]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2832:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2831:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2832:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2832:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2832:25: danger: dereference of NULL ‘user_msg’
# 2830|   		if (new_password != NULL && ntNewHash != NULL) {
# 2831|   			ldb_transaction_cancel(ldb);
# 2832|-> 			DEBUG(1, ("samdb_set_password_sid: "
# 2833|   				  "two new passwords provided "
# 2834|   				  "sAMAccountName for SID[%s] DN[%s], "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2844:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2844:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2844:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2844:25: danger: dereference of NULL ‘user_msg’
# 2842|   		if (new_password != NULL && (new_password->length % 2)) {
# 2843|   			ldb_transaction_cancel(ldb);
# 2844|-> 			DEBUG(2, ("samdb_set_password_sid: "
# 2845|   				  "invalid utf16 length (%zu) "
# 2846|   				  "sAMAccountName for SID[%s] DN[%s], "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def384]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2857:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_true: following ‘true’ branch (when ‘new_password’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:46: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:21: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2855:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2855:21: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2856:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2857:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2857:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2857:25: danger: dereference of NULL ‘user_msg’
# 2855|   		if (new_password != NULL && new_password->length >= 500) {
# 2856|   			ldb_transaction_cancel(ldb);
# 2857|-> 			DEBUG(2, ("samdb_set_password_sid: "
# 2858|   				  "utf16 password too long (%zu) "
# 2859|   				  "sAMAccountName for SID[%s] DN[%s], "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def385]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2872:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2868:32: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2870:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2871:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2872:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2872:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2872:25: danger: dereference of NULL ‘user_msg’
# 2870|   		if (account_name == NULL) {
# 2871|   			ldb_transaction_cancel(ldb);
# 2872|-> 			DEBUG(1, ("samdb_set_password_sid: missing "
# 2873|   				  "sAMAccountName for SID[%s] DN[%s], "
# 2874|   				  "returning NO_SUCH_USER\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def386]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2888:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2868:32: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2870:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2881:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2886:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2887:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2888:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2888:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2888:25: danger: dereference of NULL ‘user_msg’
# 2886|   		if (!NT_STATUS_IS_OK(nt_status)) {
# 2887|   			ldb_transaction_cancel(ldb);
# 2888|-> 			DEBUG(1, ("samdb_set_password_sid: dsdb_trust_search_tdo "
# 2889|   				  "failed(%s) for sAMAccountName[%s] SID[%s] DN[%s], "
# 2890|   				  "returning INTERNAL_DB_CORRUPTION\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def387]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2868:32: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2870:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2881:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2886:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2898:35: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2900:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2901:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2902:25: danger: dereference of NULL ‘user_msg’
# 2900|   		if (!(trust_direction & LSA_TRUST_DIRECTION_INBOUND)) {
# 2901|   			ldb_transaction_cancel(ldb);
# 2902|-> 			DEBUG(1, ("samdb_set_password_sid: direction[0x%08X] is "
# 2903|   				  "not inbound for sAMAccountName[%s] "
# 2904|   				  "DN[%s] TDO[%s], "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def388]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2868:32: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2870:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2881:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2886:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2898:35: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2900:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2914:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2915:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2916:35: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2918:28: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2919:33: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2920:33: danger: dereference of NULL ‘user_msg’
# 2918|   			if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
# 2919|   				ldb_transaction_cancel(ldb);
# 2920|-> 				DEBUG(1, ("samdb_set_password_sid: "
# 2921|   					  "failed(%s) to parse "
# 2922|   					  "trustAuthOutgoing sAMAccountName[%s] "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def389]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2797:37: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2818:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2830:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2842:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2868:32: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2870:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2881:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2886:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2898:35: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2900:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2914:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2918:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2935:22: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2968:20: branch_false: following ‘false’ branch (when ‘old_version_a’ is NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2973:34: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2977:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2982:43: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2985:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2991:29: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3018:29: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3047:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3047:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3048:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3054:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3055:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3056:25: danger: dereference of NULL ‘user_msg’
# 3054|   		if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
# 3055|   			ldb_transaction_cancel(ldb);
# 3056|-> 			DEBUG(1, ("samdb_set_password_sid: "
# 3057|   				  "failed(%s) to generate "
# 3058|   				  "trustAuthOutgoing sAMAccountName[%s] "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def390]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3098:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2754:29: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2759:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2765:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2769:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2779:15: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2780:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:2791:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3099:57: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3099:57: release_memory: ‘user_msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3098:21: danger: dereference of NULL ‘user_msg’
# 3096|   	}
# 3097|   
# 3098|-> 	nt_status = samdb_set_password_internal(ldb, mem_ctx,
# 3099|   						user_msg->dn,
# 3100|   						new_password,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def391]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3390:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3369:5: enter_function: entry to ‘dsdb_find_dn_by_guid’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3381:15: call_function: calling ‘dsdb_search’ from ‘dsdb_find_dn_by_guid’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3381:15: return_function: returning to ‘dsdb_find_dn_by_guid’ from ‘dsdb_search’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3386:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3390:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3390:15: danger: use of uninitialized value ‘res’ here
# 3388|   	}
# 3389|   
# 3390|-> 	*dn = talloc_steal(mem_ctx, res->msgs[0]->dn);
# 3391|   	talloc_free(res);
# 3392|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def392]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3544:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3521:5: enter_function: entry to ‘dsdb_find_dn_by_sid’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3530:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3534:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3534:15: call_function: calling ‘dsdb_search’ from ‘dsdb_find_dn_by_sid’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3534:15: return_function: returning to ‘dsdb_find_dn_by_sid’ from ‘dsdb_search’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3540:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3544:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3544:15: danger: use of uninitialized value ‘res’ here
# 3542|   	}
# 3543|   
# 3544|-> 	*dn = talloc_steal(mem_ctx, res->msgs[0]->dn);
# 3545|   	talloc_free(res);
# 3546|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def393]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3813:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4204:5: enter_function: entry to ‘dsdb_check_and_update_fl’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4220:34: call_function: calling ‘dsdb_dc_functional_level’ from ‘dsdb_check_and_update_fl’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4220:34: return_function: returning to ‘dsdb_check_and_update_fl’ from ‘dsdb_dc_functional_level’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4224:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4232:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4232:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4241:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4241:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4255:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4255:15: call_function: calling ‘samdb_rodc’ from ‘dsdb_check_and_update_fl’
# 3811|   	}
# 3812|   	if (msg) {
# 3813|-> 		*msg = talloc_steal(mem_ctx, res->msgs[0]);
# 3814|   	}
# 3815|   	TALLOC_FREE(res);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def394]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:3858:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4204:5: enter_function: entry to ‘dsdb_check_and_update_fl’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4220:34: call_function: calling ‘dsdb_dc_functional_level’ from ‘dsdb_check_and_update_fl’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4220:34: return_function: returning to ‘dsdb_check_and_update_fl’ from ‘dsdb_dc_functional_level’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4224:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4232:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4232:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4241:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4241:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4255:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:4255:15: call_function: calling ‘samdb_rodc’ from ‘dsdb_check_and_update_fl’
# 3856|   	}
# 3857|   
# 3858|-> 	ret = ldb_msg_find_attr_as_bool(msg, "msDS-isRODC", 0);
# 3859|   	*is_rodc = (ret == 1);
# 3860|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def395]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5103:17: warning[-Wanalyzer-null-argument]: use of NULL ‘v2’ where non-null expected
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5135:5: enter_function: entry to ‘dsdb_load_udv_v1’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5138:42: release_memory: ‘v2’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5142:15: call_function: calling ‘dsdb_load_udv_v2’ from ‘dsdb_load_udv_v1’
# 5101|   	if (ret != LDB_SUCCESS) {
# 5102|   		/* nothing to add - this can happen after a vampire */
# 5103|-> 		TYPESAFE_QSORT(*cursors, *count, drsuapi_DsReplicaCursor2_compare);
# 5104|   		return LDB_SUCCESS;
# 5105|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def396]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5109:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5135:5: enter_function: entry to ‘dsdb_load_udv_v1’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5138:42: release_memory: ‘v2’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5142:15: call_function: calling ‘dsdb_load_udv_v2’ from ‘dsdb_load_udv_v1’
# 5107|   	for (i=0; i<*count; i++) {
# 5108|   		if (GUID_equal(our_invocation_id, &(*cursors)[i].source_dsa_invocation_id)) {
# 5109|-> 			(*cursors)[i].highest_usn = highest_usn;
# 5110|   			(*cursors)[i].last_sync_success = nt1970;
# 5111|   			TYPESAFE_QSORT(*cursors, *count, drsuapi_DsReplicaCursor2_compare);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def397]
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5111:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5135:5: enter_function: entry to ‘dsdb_load_udv_v1’
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5138:42: release_memory: ‘v2’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/common/util.c:5142:15: call_function: calling ‘dsdb_load_udv_v2’ from ‘dsdb_load_udv_v1’
# 5109|   			(*cursors)[i].highest_usn = highest_usn;
# 5110|   			(*cursors)[i].last_sync_success = nt1970;
# 5111|-> 			TYPESAFE_QSORT(*cursors, *count, drsuapi_DsReplicaCursor2_compare);
# 5112|   			return LDB_SUCCESS;
# 5113|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def398]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:696:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1867:12: enter_function: entry to ‘acl_modify’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1894:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1898:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1902:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1907:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1910:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1915:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1916:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1920:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1927:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1931:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1934:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1940:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1941:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1951:70: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1952:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1957:48: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1958:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1959:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1981:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2078:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2078:31: call_function: calling ‘acl_check_spn’ from ‘acl_modify’
#  694|   		if (ret != LDB_SUCCESS) {
#  695|   			dsdb_acl_debug(sd, acl_user_token(module),
#  696|-> 				       msg->dn,
#  697|   				       true,
#  698|   				       10);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def399]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:722:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1867:12: enter_function: entry to ‘acl_modify’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1894:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1898:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1902:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1907:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1910:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1915:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1916:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1920:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1927:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1931:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1934:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1940:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1941:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1951:70: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1952:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1957:48: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1958:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1959:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1981:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2078:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2078:31: call_function: calling ‘acl_check_spn’ from ‘acl_modify’
#  720|   
#  721|   		ret = dsdb_module_search_dn(module, tmp_ctx,
#  722|-> 					    &acl_res, msg->dn,
#  723|   					    acl_attrs,
#  724|   					    DSDB_FLAG_NEXT_MODULE |

Error: GCC_ANALYZER_WARNING (CWE-476): [#def400]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:791:62: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1867:12: enter_function: entry to ‘acl_modify’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1894:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1898:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1902:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1907:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1910:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1915:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1916:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1920:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1927:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1931:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1934:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1940:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1941:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1951:70: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1952:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1957:48: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1958:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1959:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1981:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2078:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2078:31: call_function: calling ‘acl_check_spn’ from ‘acl_modify’
#  789|   	if (userAccountControl & (UF_SERVER_TRUST_ACCOUNT | UF_PARTIAL_SECRETS_ACCOUNT)) {
#  790|   		ret = dsdb_module_find_ntdsguid_for_computer(module, tmp_ctx,
#  791|-> 							     msg->dn, &ntds, req);
#  792|   		if (ret != LDB_SUCCESS) {
#  793|   			ldb_asprintf_errstring(ldb, "Failed to find NTDSDSA objectGuid for %s: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def401]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:898:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1867:12: enter_function: entry to ‘acl_modify’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1894:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1898:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1902:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1907:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1910:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1915:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1916:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1920:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1927:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1931:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1934:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1940:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1941:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1951:70: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1952:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1957:48: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1958:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1959:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1981:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2090:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2090:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2091:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2091:31: call_function: calling ‘acl_check_dns_host_name’ from ‘acl_modify’
#  896|   		if (ret != LDB_SUCCESS) {
#  897|   			dsdb_acl_debug(sd, acl_user_token(module),
#  898|-> 				       msg->dn,
#  899|   				       true,
#  900|   				       10);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def402]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:931:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1867:12: enter_function: entry to ‘acl_modify’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1894:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1898:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1902:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1907:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1910:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1915:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1916:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1920:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1927:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1931:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1934:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1940:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1941:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1951:70: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1952:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1957:48: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1958:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1959:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1981:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2090:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2090:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2091:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2091:31: call_function: calling ‘acl_check_dns_host_name’ from ‘acl_modify’
#  929|   
#  930|   		ret = dsdb_module_search_dn(module, tmp_ctx,
#  931|-> 					    &acl_res, msg->dn,
#  932|   					    acl_attrs,
#  933|   					    DSDB_FLAG_NEXT_MODULE |

Error: GCC_ANALYZER_WARNING (CWE-476): [#def403]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1042:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘search_res’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1867:12: enter_function: entry to ‘acl_modify’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1894:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1898:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1902:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1907:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1910:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1915:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1916:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1920:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1927:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1931:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1934:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1940:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1941:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1947:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1951:70: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1952:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1957:48: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1958:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1959:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:1981:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2036:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2047:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2051:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2077:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2090:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2090:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2091:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/acl.c:2091:31: call_function: calling ‘acl_check_dns_host_name’ from ‘acl_modify’
# 1040|   	ret = dsdb_find_nc_root(ldb,
# 1041|   				tmp_ctx,
# 1042|-> 				search_res->dn,
# 1043|   				&nc_root);
# 1044|   	if (ret != LDB_SUCCESS) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def404]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:484:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:412:12: enter_function: entry to ‘count_attrs_search’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:429:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:439:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:444:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:448:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:448:12: branch_false: following ‘false’ branch (when ‘attrs’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:455:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:455:19: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:463:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:464:31: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:464:31: call_function: calling ‘increment_attr_count’ from ‘count_attrs_search’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:464:31: return_function: returning to ‘count_attrs_search’ from ‘increment_attr_count’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:465:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:469:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:474:32: call_function: calling ‘get_sorted_attrs’ from ‘count_attrs_search’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:474:32: return_function: returning to ‘count_attrs_search’ from ‘get_sorted_attrs’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:483:29: branch_true: following ‘true’ branch (when ‘i > i’)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:485:52: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:485:52: release_memory: ‘0’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/count_attrs.c:484:29: danger: dereference of NULL ‘get_sorted_attrs(req,  attrs,  i) + j * 8’
#  482|   		j = 0;
#  483|   		for (i = 1; i < n_attrs; i++) {
#  484|-> 			if (strcasecmp(sorted_attrs[i],
#  485|   				       sorted_attrs[j]) == 0) {
#  486|   				ret = increment_attr_count(

Error: GCC_ANALYZER_WARNING (CWE-476): [#def405]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:465:73: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tab’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:768:12: enter_function: entry to ‘dirsync_search_callback’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:787:12: branch_false: following ‘false’ branch (when ‘ares’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:791:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:791:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:796:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/dirsync.c:798:24: call_function: calling ‘dirsync_filter_entry’ from ‘dirsync_search_callback’
#  463|   						for (l=0; l < dsc->cursor_size; l++) {
#  464|   							if (GUID_equal(&tab[l].source_dsa_invocation_id, &invocation_id) &&
#  465|-> 									tab[l].highest_usn >= tmp_usn2) {
#  466|   								/*
#  467|   								* If we have in the uptodateness vector an entry

Error: GCC_ANALYZER_WARNING (CWE-476): [#def406]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:346:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn1’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:985:13: enter_function: entry to ‘log_group_membership_changes’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:994:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:995:36: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1006:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1007:59: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1010:25: call_function: calling ‘log_membership_changes’ from ‘log_group_membership_changes’
#  344|   	 * Do a binary compare first to avoid unnecessary parsing
#  345|   	 */
#  346|-> 	if (data_blob_cmp(dn1->v, dn2->v) == 0) {
#  347|   		/*
#  348|   		 * Values are equal at a binary level so no need

Error: GCC_ANALYZER_WARNING (CWE-476): [#def407]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:346:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn2’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:985:13: enter_function: entry to ‘log_group_membership_changes’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:994:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:995:36: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1006:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1007:59: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1010:25: call_function: calling ‘log_membership_changes’ from ‘log_group_membership_changes’
#  344|   	 * Do a binary compare first to avoid unnecessary parsing
#  345|   	 */
#  346|-> 	if (data_blob_cmp(dn1->v, dn2->v) == 0) {
#  347|   		/*
#  348|   		 * Values are equal at a binary level so no need

Error: GCC_ANALYZER_WARNING (CWE-476): [#def408]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:742:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘old_val’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:985:13: enter_function: entry to ‘log_group_membership_changes’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:994:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:995:36: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1006:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1007:59: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1010:25: call_function: calling ‘log_membership_changes’ from ‘log_group_membership_changes’
#  740|   			const char *user = NULL;
#  741|   			enum event_id_type event_id;
#  742|-> 			if (old_val->dsdb_dn == NULL) {
#  743|   				really_parse_trusted_dn(
#  744|   					ctx,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def409]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:839:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_val’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:985:13: enter_function: entry to ‘log_group_membership_changes’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:994:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:995:36: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1006:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1007:59: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/group_audit.c:1010:25: call_function: calling ‘log_membership_changes’ from ‘log_group_membership_changes’
#  837|   			const char *user = NULL;
#  838|   			enum event_id_type event_id;
#  839|-> 			if ( new_val->dsdb_dn == NULL) {
#  840|   				really_parse_trusted_dn(
#  841|   					ctx,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def410]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/operational.c:1241:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/operational.c:1227:28: release_memory: ‘res’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/operational.c:1235:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/operational.c:1241:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/operational.c:1241:9: release_memory: ‘res’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/operational.c:1241:9: danger: dereference of NULL ‘res’
# 1239|   
# 1240|   	/* sort the list so that the best PSO is first */
# 1241|-> 	TYPESAFE_QSORT(res->msgs, res->count, pso_compare);
# 1242|   
# 1243|   	if (res->count > 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def411]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:273:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:242:41: branch_false: following ‘false’ branch (when ‘ares’ is NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:247:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:247:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:253:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:255:36: release_memory: ‘result’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:272:21: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:273:50: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:273:50: release_memory: ‘result’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/paged_results.c:273:44: danger: dereference of NULL ‘result’
#  271|   					    ac->store->expr);
#  272|   		if (ret == LDAP_NO_SUCH_OBJECT ||
#  273|-> 		    (ret == LDB_SUCCESS && result->count == 0)) {
#  274|   			/* The thing isn't there TODO, which we quietly
#  275|   			   ignore and go on to send an extra one

Error: GCC_ANALYZER_WARNING (CWE-457): [#def412]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:873:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ext_res’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8696:12: enter_function: entry to ‘replmd_prepare_commit’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8718:14: branch_false: following ‘false’ branch (when ‘la_group’ is NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8731:9: call_function: inlined call to ‘replmd_txn_cleanup’ from ‘replmd_prepare_commit’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8734:15: call_function: calling ‘replmd_notify_store’ from ‘replmd_prepare_commit’
#  871|   				   replmd_private->schema_dn) == 0) {
#  872|   			struct ldb_result *ext_res;
#  873|-> 			ret = dsdb_module_extended(module,
#  874|   						   replmd_private->schema_dn,
#  875|   						   &ext_res,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def413]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:2297:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘el’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:5664:12: enter_function: entry to ‘replmd_op_add_callback’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:5675:16: call_function: calling ‘replmd_op_possible_conflict_callback’ from ‘replmd_op_add_callback’
# 2295|   
# 2296|   	ret = replmd_check_upgrade_links(ldb_module_get_ctx(module),
# 2297|-> 					 *pdn, el->num_values,
# 2298|   					 el,
# 2299|   					 ldap_oid);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def414]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:2378:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dns’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8498:12: enter_function: entry to ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8506:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8506:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8512:27: release_memory: ‘pdn_list’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8519:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: call_function: calling ‘replmd_get_la_entry_source’ from ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: return_function: returning to ‘replmd_process_la_group’ from ‘replmd_get_la_entry_source’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8530:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8544:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8544:9: call_function: inlined call to ‘replmd_deletion_state’ from ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8544:9: call_function: inlined call to ‘replmd_deletion_state’ from ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8546:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8565:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8570:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8578:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8590:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8592:17: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8592:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8592:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8598:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8598:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8603:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8599:31: call_function: calling ‘get_parsed_dns_trusted_fallback’ from ‘replmd_process_la_group’
# 2376|   		uint32_t version;
# 2377|   		int ret;
# 2378|-> 		if (dns[i].dsdb_dn == NULL) {
# 2379|   			ret = really_parse_trusted_dn(dns, ldb, &dns[i],
# 2380|   						      ldap_oid);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def415]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:2433:9: warning[-Wanalyzer-null-argument]: use of NULL ‘dns’ where non-null expected
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8498:12: enter_function: entry to ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8506:37: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8506:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8512:27: release_memory: ‘pdn_list’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8519:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: call_function: calling ‘replmd_get_la_entry_source’ from ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: return_function: returning to ‘replmd_process_la_group’ from ‘replmd_get_la_entry_source’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8530:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8544:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8544:9: call_function: inlined call to ‘replmd_deletion_state’ from ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8544:9: call_function: inlined call to ‘replmd_deletion_state’ from ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8546:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8565:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8570:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8578:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8590:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8592:17: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8592:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8592:17: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8598:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8598:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8603:57: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8599:31: call_function: calling ‘get_parsed_dns_trusted_fallback’ from ‘replmd_process_la_group’
# 2431|   	 * early return in the RMD_VERSION found case.
# 2432|   	 */
# 2433|-> 	TYPESAFE_QSORT(dns, count, parsed_dn_compare);
# 2434|   	return LDB_SUCCESS;
# 2435|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def416]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:4240:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_msg_find_element(link_msg, *<unknown>.lDAPDisplayName)’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:5664:12: enter_function: entry to ‘replmd_op_add_callback’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:5675:16: call_function: calling ‘replmd_op_possible_conflict_callback’ from ‘replmd_op_add_callback’
# 4238|   		}
# 4239|   
# 4240|-> 		ret = parsed_dn_find(ldb, link_dns, link_el->num_values,
# 4241|   				     guid, dn,
# 4242|   				     data_blob_null, 0,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def417]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:7848:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘la_entry’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8498:12: enter_function: entry to ‘replmd_process_la_group’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8506:37: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8507:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8519:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:8527:15: call_function: calling ‘replmd_get_la_entry_source’ from ‘replmd_process_la_group’
# 7846|   				      struct ldb_message **source_msg)
# 7847|   {
# 7848|-> 	struct drsuapi_DsReplicaLinkedAttribute *la = la_entry->la;
# 7849|   	struct ldb_context *ldb = ldb_module_get_ctx(module);
# 7850|   	const struct dsdb_schema *schema = dsdb_get_schema(ldb, mem_ctx);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def418]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:2777:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:2823:12: enter_function: entry to ‘samldb_check_user_account_control_rules’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:2845:15: call_function: calling ‘samldb_check_user_account_control_acl’ from ‘samldb_check_user_account_control_rules’
# 2775|   				}
# 2776|   			} else if (map[i].guid) {
# 2777|-> 				ret = acl_check_extended_right(ac,
# 2778|   							       ac->module,
# 2779|   							       ac->req,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def419]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:2814:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:2823:12: enter_function: entry to ‘samldb_check_user_account_control_rules’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:2845:15: call_function: calling ‘samldb_check_user_account_control_acl’ from ‘samldb_check_user_account_control_rules’
# 2812|   			struct ldb_dn *domain_dn
# 2813|   				= ldb_get_default_basedn(ldb_module_get_ctx(ac->module));
# 2814|-> 			dsdb_acl_debug(domain_sd, acl_user_token(ac->module),
# 2815|   				       domain_dn,
# 2816|   				       true,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def420]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4827:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4787:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4791:22: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4792:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4796:35: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4797:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4814:35: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4815:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4817:42: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4824:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4827:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/samldb.c:4827:23: danger: use of uninitialized value ‘domain_sd’ here
# 4825|   			return ret;
# 4826|   		}
# 4827|-> 		ret = acl_check_extended_right(ac,
# 4828|   					       ac->module,
# 4829|   					       ac->req,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def421]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:332:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:312:5: enter_function: entry to ‘dsdb_module_dn_by_guid’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:316:29: release_memory: ‘msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:321:15: call_function: calling ‘dsdb_module_obj_by_guid’ from ‘dsdb_module_dn_by_guid’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:321:15: return_function: returning to ‘dsdb_module_dn_by_guid’ from ‘dsdb_module_obj_by_guid’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:327:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:332:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:332:15: release_memory: ‘msg’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/util.c:332:15: danger: dereference of NULL ‘msg’
#  330|   	}
#  331|   
#  332|-> 	*dn = talloc_steal(mem_ctx, msg->dn);
#  333|   
#  334|   	talloc_free(tmp_ctx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def422]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:254:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:390:12: enter_function: entry to ‘vlv_results’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:392:41: branch_true: following ‘true’ branch (when ‘ares’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:392:30: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:400:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:406:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:423:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:424:21: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:424:20: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:425:34: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:425:34: call_function: calling ‘vlv_gt_eq_to_index’ from ‘vlv_results’
#  252|   	}
#  253|   
#  254|-> 	el = ldb_msg_find_element(result->msgs[0], target->attr);
#  255|   	return target->comparison_fn(target->ldb, ac,
#  256|   				     &target->value, &el->values[0]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def423]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:462:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:571:12: enter_function: entry to ‘vlv_search_callback’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:580:12: branch_false: following ‘false’ branch (when ‘ares’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:584:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:584:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:589:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:635:23: call_function: calling ‘vlv_results’ from ‘vlv_search_callback’
#  460|   
#  461|   			if (ret == LDAP_NO_SUCH_OBJECT
#  462|-> 			    || result->count != 1) {
#  463|   				/*
#  464|   				 * The thing isn't there, which we quietly

Error: GCC_ANALYZER_WARNING (CWE-476): [#def424]
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:654:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘store’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:763:12: enter_function: entry to ‘vlv_search’
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:778:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:782:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:786:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:791:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:792:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:796:21: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:797:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:801:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:805:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:810:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:817:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:862:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:864:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:868:29: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:878:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:878:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:887:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:887:17: release_memory: ‘current’ is NULL
samba-4.22.1/bin/default/../../source4/dsdb/samdb/ldb_modules/vlv_pagination.c:888:23: call_function: calling ‘copy_search_details’ from ‘vlv_search’
#  652|   {
#  653|   	/* free the old details which are no longer going to be reachable. */
#  654|-> 	if (store->vlv_details != NULL){
#  655|   		TALLOC_FREE(store->vlv_details);
#  656|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def425]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:280:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  278|   	switch (query) {
#  279|   	case DSDB_SCHEMA_ALL_MAY:
#  280|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mayContain);
#  281|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMayContain);
#  282|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def426]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:285:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  283|   
#  284|   	case DSDB_SCHEMA_ALL_MUST:
#  285|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mustContain);
#  286|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMustContain);
#  287|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def427]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:290:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  288|   
#  289|   	case DSDB_SCHEMA_SYS_MAY:
#  290|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMayContain);
#  291|   		break;
#  292|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def428]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:294:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  292|   
#  293|   	case DSDB_SCHEMA_SYS_MUST:
#  294|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMustContain);
#  295|   		break;
#  296|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def429]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:298:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  296|   
#  297|   	case DSDB_SCHEMA_MAY:
#  298|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mayContain);
#  299|   		break;
#  300|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def430]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:302:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  300|   
#  301|   	case DSDB_SCHEMA_MUST:
#  302|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mustContain);
#  303|   		break;
#  304|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def431]
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:306:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:426:14: enter_function: entry to ‘dsdb_full_attribute_list’
samba-4.22.1/bin/default/../../source4/dsdb/schema/schema_query.c:431:34: call_function: calling ‘dsdb_full_attribute_list_internal_el’ from ‘dsdb_full_attribute_list’
#  304|   
#  305|   	case DSDB_SCHEMA_ALL:
#  306|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mayContain);
#  307|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMayContain);
#  308|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mustContain);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4437:24: warning[-Wanalyzer-malloc-leak]: leak of ‘sentry.keys.val’
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4392:17: enter_function: entry to ‘dsdb_extract_aes_256_key’
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4411:20: call_function: calling ‘samba_kdc_message2entry_keys’ from ‘dsdb_extract_aes_256_key’
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4411:20: return_function: returning to ‘dsdb_extract_aes_256_key’ from ‘samba_kdc_message2entry_keys’
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4424:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4425:40: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/kdc/db-glue.c:4437:24: danger: ‘sentry.keys.val’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
# 4435|   		krb5_free_error_message(context, krb5_err);
# 4436|   
# 4437|-> 		return krb5_ret;
# 4438|   	}
# 4439|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def433]
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:173:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:137:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:141:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:150:12: branch_false: following ‘false’ branch (when ‘code == 0’)...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:155:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:158:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:164:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:165:28: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:173:9: danger: ‘calloc(1, 32)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  171|   	key_data = &kentry->key_data[0];
#  172|   
#  173|-> 	key_data->key_data_ver          = KRB5_KDB_V1_KEY_DATA_ARRAY;
#  174|   	key_data->key_data_kvno         = 1;
#  175|   	key_data->key_data_type[0]      = ENCTYPE_UNKNOWN;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def434]
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:273:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:203:12: branch_false: following ‘false’ branch (when ‘princ’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:207:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:210:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:214:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:226:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:231:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:234:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:239:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:240:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:245:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:251:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:257:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:258:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:259:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:259:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:264:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:265:28: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source4/kdc/mit-kdb/kdb_samba_principals.c:273:9: danger: ‘calloc(1, 32)’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  271|   	key_data = &kentry->key_data[0];
#  272|   
#  273|-> 	key_data->key_data_ver          = KRB5_KDB_V1_KEY_DATA_ARRAY;
#  274|   	key_data->key_data_kvno         = 1;
#  275|   	key_data->key_data_type[0]      = key.enctype;

Error: COMPILER_WARNING (CWE-477): [#def435]
samba-4.22.1/bin/default/../../source4/kdc/mit_samba.c:94:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#   92|   		goto done;
#   93|   	}
#   94|-> 	tevent_loop_allow_nesting(base_ctx.ev_ctx);
#   95|   	base_ctx.lp_ctx = loadparm_init_global(false);
#   96|   	if (!base_ctx.lp_ctx) {

Error: COMPILER_WARNING (CWE-477): [#def436]
samba-4.22.1/bin/default/../../source4/lib/events/tevent_s4.c:37:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#   35|   	if (ev) {
#   36|   		samba_tevent_set_debug(ev, "s4_tevent");
#   37|-> 		tevent_loop_allow_nesting(ev);
#   38|   	}
#   39|   	return ev;

Error: COMPILER_WARNING (CWE-477): [#def437]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/irpc.c:109:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#  107|   	 * as client and server use the same loop.
#  108|   	 */
#  109|-> 	dcerpc_binding_handle_set_sync_ev(irpc_handle, data->ev);
#  110|   	status = dcerpc_echo_AddOne_r(irpc_handle, test, &r);
#  111|   	test_debug = false;

Error: COMPILER_WARNING (CWE-477): [#def438]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/irpc.c:148:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#  146|   	 * as client and server use the same loop.
#  147|   	 */
#  148|-> 	dcerpc_binding_handle_set_sync_ev(irpc_handle, data->ev);
#  149|   	status = dcerpc_echo_EchoData_r(irpc_handle, mem_ctx, &r);
#  150|   	torture_assert_ntstatus_ok(tctx, status, "EchoData failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def439]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘down_pipe[0]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:185:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:186:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:188:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: danger: ‘down_pipe[0]’ leaks here
#  182|   
#  183|   	ret = pipe(up_pipe);
#  184|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  185|   	ret = pipe(down_pipe);
#  186|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def440]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘down_pipe[1]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:185:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:186:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:188:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: danger: ‘down_pipe[1]’ leaks here
#  182|   
#  183|   	ret = pipe(up_pipe);
#  184|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  185|   	ret = pipe(down_pipe);
#  186|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def441]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up_pipe[0]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:185:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:186:9: branch_true: following ‘true’ branch (when ‘ret != 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:186:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: danger: ‘up_pipe[0]’ leaks here
#  182|   
#  183|   	ret = pipe(up_pipe);
#  184|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  185|   	ret = pipe(down_pipe);
#  186|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def442]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up_pipe[1]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:185:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:186:9: branch_true: following ‘true’ branch (when ‘ret != 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:186:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:184:9: danger: ‘up_pipe[1]’ leaks here
#  182|   
#  183|   	ret = pipe(up_pipe);
#  184|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  185|   	ret = pipe(down_pipe);
#  186|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def443]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘down_pipe[0]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:321:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:322:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:324:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: danger: ‘down_pipe[0]’ leaks here
#  318|   
#  319|   	ret = pipe(up_pipe);
#  320|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  321|   	ret = pipe(down_pipe);
#  322|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def444]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘down_pipe[1]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:321:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:322:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:324:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: danger: ‘down_pipe[1]’ leaks here
#  318|   
#  319|   	ret = pipe(up_pipe);
#  320|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  321|   	ret = pipe(down_pipe);
#  322|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def445]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up_pipe[0]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:321:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:322:9: branch_true: following ‘true’ branch (when ‘ret != 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:322:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: danger: ‘up_pipe[0]’ leaks here
#  318|   
#  319|   	ret = pipe(up_pipe);
#  320|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  321|   	ret = pipe(down_pipe);
#  322|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def446]
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘up_pipe[1]’
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:321:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:322:9: branch_true: following ‘true’ branch (when ‘ret != 0’)...
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:322:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/messaging/tests/messaging.c:320:9: danger: ‘up_pipe[1]’ leaks here
#  318|   
#  319|   	ret = pipe(up_pipe);
#  320|-> 	torture_assert(tctx, ret == 0, "pipe failed");
#  321|   	ret = pipe(down_pipe);
#  322|   	torture_assert(tctx, ret == 0, "pipe failed");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def447]
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:228:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sd’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:143:10: enter_function: entry to ‘gp_create_gpo’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:155:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:158:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:159:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:165:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:167:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:171:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:172:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:178:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:183:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:188:30: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:189:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:195:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:196:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:204:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:205:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:212:45: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:213:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:220:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:220:18: call_function: calling ‘gp_create_gpt_security_descriptor’ from ‘gp_create_gpo’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:220:18: return_function: returning to ‘gp_create_gpo’ from ‘gp_create_gpt_security_descriptor’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:221:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:228:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:228:18: danger: use of uninitialized value ‘sd’ here
#  226|   
#  227|   	/* Set the security descriptor on the filesystem for this GPO */
#  228|-> 	status = gp_set_gpt_security_descriptor(gp_ctx, gpo, sd);
#  229|   	if (!NT_STATUS_IS_OK(status)) {
#  230|   		DEBUG(0, ("Failed to set security descriptor (ACL) on the file system\n"));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def448]
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:277:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fs_sd’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:241:10: enter_function: entry to ‘gp_set_acl’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:250:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:253:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:254:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:261:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:262:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:269:64: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:269:18: call_function: calling ‘gp_create_gpt_security_descriptor’ from ‘gp_set_acl’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:269:18: return_function: returning to ‘gp_set_acl’ from ‘gp_create_gpt_security_descriptor’
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:270:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:277:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/policy/gp_manage.c:277:18: danger: use of uninitialized value ‘fs_sd’ here
#  275|   
#  276|   	/* Set the security descriptor on the filesystem for this GPO */
#  277|-> 	status = gp_set_gpt_security_descriptor(gp_ctx, gpo, fs_sd);
#  278|   	if (!NT_STATUS_IS_OK(status)) {
#  279|   		DEBUG(0, ("Failed to set security descriptor (ACL) on the file system\n"));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def449]
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1885:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1867:15: enter_function: entry to ‘regf_set_value’
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1881:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1882:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1882:26: call_function: calling ‘hbin_get’ from ‘regf_set_value’
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1882:26: return_function: returning to ‘regf_set_value’ from ‘hbin_get’
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1884:29: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1885:41: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1885:41: release_memory: ‘0’ is NULL
samba-4.22.1/bin/default/../../source4/lib/registry/regf.c:1885:41: danger: dereference of NULL ‘values.data + (sizetype)(i * 4)’
# 1883|   
# 1884|   		for (i = 0; i < nk->num_values; i++) {
# 1885|-> 			tmp_vk_offset = IVAL(values.data, i * 4);
# 1886|   			if (!hbin_get_tdr(regf, tmp_vk_offset, private_data,
# 1887|   					  (tdr_pull_fn_t)tdr_pull_vk_block,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:459:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:433:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:434:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:437:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:440:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:442:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:442:28: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:443:43: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:437:18: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:439:42: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:440:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:442:28: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:442:28: branch_false: following ‘false’ branch (when ‘count != 1’)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:459:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  457|   		break;
#  458|   	default:
#  459|-> 		matches[0] = strndup(matches[1], samelen);
#  460|   	}
#  461|   	matches[count] = NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def451]
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:503:48: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘strdup(subkeyname)’ where non-null expected
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:485:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:486:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:492:20: branch_true: following ‘true’ branch (when ‘j != 99’)...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:493:26: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:495:19: branch_true: following ‘true’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:496:29: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:496:27: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:497:40: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:497:46: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:500:36: branch_false: following ‘false’ branch (when ‘j != 1’)...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/lib/registry/tools/regshell.c:503:48: danger: argument 2 (‘strdup(subkeyname)’) from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#  501|   					samelen = strlen(matches[j]);
#  502|   				else
#  503|-> 					while (strncmp(matches[j], matches[j-1], samelen) != 0)
#  504|   						samelen--;
#  505|   			}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def452]
samba-4.22.1/bin/default/../../source4/libcli/clideltree.c:43:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘n’ where non-null expected
samba-4.22.1/bin/default/../../source4/libcli/clideltree.c:42:13: acquire_memory: this call could return NULL
samba-4.22.1/bin/default/../../source4/libcli/clideltree.c:43:11: danger: argument 1 (‘n’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#   41|   
#   42|   	n = strdup(name);
#   43|-> 	n[strlen(n)-1] = 0;
#   44|   	if (asprintf(&s, "%s%s", n, finfo->name) < 0) {
#   45|   		free(n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
samba-4.22.1/bin/default/../../source4/libcli/raw/clisocket.c:429:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libcli/raw/clisocket.c:443:10: enter_function: entry to ‘smbcli_sock_connect’
samba-4.22.1/bin/default/../../source4/libcli/raw/clisocket.c:458:16: call_function: calling ‘smbcli_sock_connect_recv’ from ‘smbcli_sock_connect’
#  427|   	if (NT_STATUS_IS_OK(status)) {
#  428|   		struct sock_connect_state *state =
#  429|-> 			talloc_get_type(c->private_data,
#  430|   					struct sock_connect_state);
#  431|   		*result = talloc_steal(mem_ctx, state->result);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:430:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:803:19: enter_function: entry to ‘smb_raw_open’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:806:16: call_function: calling ‘smb_raw_open_recv’ from ‘smb_raw_open’
#  428|   static NTSTATUS smb_raw_t2open_recv(struct smbcli_request *req, TALLOC_CTX *mem_ctx, union smb_open *parms)
#  429|   {
#  430|-> 	struct smbcli_transport *transport = req->transport;
#  431|   	struct smb_trans2 t2;
#  432|   	NTSTATUS status;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def455]
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:650:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:803:19: enter_function: entry to ‘smb_raw_open’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:806:16: call_function: calling ‘smb_raw_open_recv’ from ‘smb_raw_open’
#  648|   		parms->openold.out.file.fnum = SVAL(req->in.vwv, VWV(0));
#  649|   		parms->openold.out.attrib = SVAL(req->in.vwv, VWV(1));
#  650|-> 		parms->openold.out.write_time = raw_pull_dos_date3(req->transport,
#  651|   								req->in.vwv + VWV(2));
#  652|   		parms->openold.out.size = IVAL(req->in.vwv, VWV(4));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def456]
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:660:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:803:19: enter_function: entry to ‘smb_raw_open’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:806:16: call_function: calling ‘smb_raw_open_recv’ from ‘smb_raw_open’
#  658|   		parms->openx.out.file.fnum = SVAL(req->in.vwv, VWV(2));
#  659|   		parms->openx.out.attrib = SVAL(req->in.vwv, VWV(3));
#  660|-> 		parms->openx.out.write_time = raw_pull_dos_date3(req->transport,
#  661|   								 req->in.vwv + VWV(4));
#  662|   		parms->openx.out.size = IVAL(req->in.vwv, VWV(6));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def457]
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:722:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:803:19: enter_function: entry to ‘smb_raw_open’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawfile.c:806:16: call_function: calling ‘smb_raw_open_recv’ from ‘smb_raw_open’
#  720|   		parms->openxreadx.out.file.fnum = SVAL(req->in.vwv, VWV(2));
#  721|   		parms->openxreadx.out.attrib = SVAL(req->in.vwv, VWV(3));
#  722|-> 		parms->openxreadx.out.write_time = raw_pull_dos_date3(req->transport,
#  723|   								 req->in.vwv + VWV(4));
#  724|   		parms->openxreadx.out.size = IVAL(req->in.vwv, VWV(6));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def458]
samba-4.22.1/bin/default/../../source4/libcli/raw/rawreadwrite.c:158:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawreadwrite.c:197:19: enter_function: entry to ‘smb_raw_read’
samba-4.22.1/bin/default/../../source4/libcli/raw/rawreadwrite.c:200:16: call_function: calling ‘smb_raw_read_recv’ from ‘smb_raw_read’
#  156|   		parms->readx.out.compaction_mode = SVAL(req->in.vwv, VWV(3));
#  157|   		parms->readx.out.nread = SVAL(req->in.vwv, VWV(5));
#  158|-> 		parms->readx.out.flags2 = req->flags2;
#  159|   		parms->readx.out.data_offset = SVAL(req->in.vwv, VWV(6));
#  160|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def459]
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:215:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:306:10: enter_function: entry to ‘resolve_name_ex’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:314:39: call_function: calling ‘resolve_name_ex_send’ from ‘resolve_name_ex’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:314:39: return_function: returning to ‘resolve_name_ex’ from ‘resolve_name_ex_send’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:315:16: call_function: calling ‘resolve_name_recv’ from ‘resolve_name_ex’
#  213|   
#  214|   	if (NT_STATUS_IS_OK(status)) {
#  215|-> 		struct resolve_state *state = talloc_get_type(c->private_data, struct resolve_state);
#  216|   		*addrs = talloc_steal(mem_ctx, state->addrs);
#  217|   		if (names) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def460]
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:254:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addrs’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:244:10: enter_function: entry to ‘resolve_name_recv’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:249:33: release_memory: ‘addrs’ is NULL
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:251:18: call_function: calling ‘resolve_name_all_recv’ from ‘resolve_name_recv’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:251:18: return_function: returning to ‘resolve_name_recv’ from ‘resolve_name_all_recv’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:253:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:254:50: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:254:50: release_memory: ‘addrs’ is NULL
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:254:50: danger: dereference of NULL ‘addrs’
#  252|   
#  253|   	if (NT_STATUS_IS_OK(status)) {
#  254|-> 		struct tsocket_address *t_addr = socket_address_to_tsocket_address(addrs, addrs[0]);
#  255|   		if (!t_addr) {
#  256|   			return NT_STATUS_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def461]
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:284:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addrs’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:272:10: enter_function: entry to ‘resolve_name_multiple_recv’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:277:33: release_memory: ‘addrs’ is NULL
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:280:18: call_function: calling ‘resolve_name_all_recv’ from ‘resolve_name_multiple_recv’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:280:18: return_function: returning to ‘resolve_name_multiple_recv’ from ‘resolve_name_all_recv’
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:281:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:284:24: release_memory: ‘addrs’ is NULL
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:284:24: release_memory: ‘addrs’ is NULL
samba-4.22.1/bin/default/../../source4/libcli/resolve/resolve.c:284:19: danger: dereference of NULL ‘addrs + (long unsigned int)i * 8’
#  282|   
#  283|   	/* count the addresses */
#  284|-> 	for (i=0; addrs[i]; i++) ;
#  285|   
#  286|   	*reply_addrs = talloc_array(mem_ctx, const char *, i+1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def462]
samba-4.22.1/bin/default/../../source4/libcli/smb2/ioctl.c:116:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.22.1/bin/default/../../source4/libcli/smb2/ioctl.c:148:10: enter_function: entry to ‘smb2_ioctl’
samba-4.22.1/bin/default/../../source4/libcli/smb2/ioctl.c:151:16: call_function: calling ‘smb2_ioctl_recv’ from ‘smb2_ioctl’
#  114|   
#  115|   	if (!smb2_request_receive(req) ||
#  116|-> 	    smb2_ioctl_is_failure(io->in.function, req->status,
#  117|   				  req->in.bufinfo.data_size)) {
#  118|   		return smb2_request_destroy(req);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def463]
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/appendacl.c:294:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/appendacl.c:306:10: enter_function: entry to ‘smb_composite_appendacl’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/appendacl.c:311:16: call_function: calling ‘smb_composite_appendacl_recv’ from ‘smb_composite_appendacl’
#  292|   
#  293|   	if (NT_STATUS_IS_OK(status)) {
#  294|-> 		struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
#  295|   		state->io->out.sd = security_descriptor_copy (mem_ctx, state->io->out.sd);
#  296|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def464]
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/fetchfile.c:181:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/fetchfile.c:189:10: enter_function: entry to ‘smb_composite_fetchfile’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/fetchfile.c:193:16: call_function: calling ‘smb_composite_fetchfile_recv’ from ‘smb_composite_fetchfile’
#  179|   
#  180|   	if (NT_STATUS_IS_OK(status)) {
#  181|-> 		struct fetchfile_state *state = talloc_get_type(c->private_data, struct fetchfile_state);
#  182|   		talloc_steal(mem_ctx, state->io->out.data);
#  183|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def465]
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/fsinfo.c:193:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/fsinfo.c:205:10: enter_function: entry to ‘smb_composite_fsinfo’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/fsinfo.c:212:16: call_function: calling ‘smb_composite_fsinfo_recv’ from ‘smb_composite_fsinfo’
#  191|   
#  192|   	if (NT_STATUS_IS_OK(status)) {
#  193|-> 		struct fsinfo_state *state = talloc_get_type(c->private_data, struct fsinfo_state);
#  194|   		talloc_steal(mem_ctx, state->io->out.fsinfo);
#  195|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def466]
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/loadfile.c:274:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/loadfile.c:286:10: enter_function: entry to ‘smb_composite_loadfile’
samba-4.22.1/bin/default/../../source4/libcli/smb_composite/loadfile.c:291:16: call_function: calling ‘smb_composite_loadfile_recv’ from ‘smb_composite_loadfile’
#  272|   
#  273|   	if (NT_STATUS_IS_OK(status)) {
#  274|-> 		struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
#  275|   		talloc_steal(mem_ctx, state->io->out.data);
#  276|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def467]
samba-4.22.1/bin/default/../../source4/libnet/groupinfo.c:356:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/groupinfo.c:376:10: enter_function: entry to ‘libnet_rpc_groupinfo’
samba-4.22.1/bin/default/../../source4/libnet/groupinfo.c:383:16: call_function: calling ‘libnet_rpc_groupinfo_recv’ from ‘libnet_rpc_groupinfo’
#  354|   	
#  355|   	if (NT_STATUS_IS_OK(status) && io) {
#  356|-> 		s = talloc_get_type(c->private_data, struct groupinfo_state);
#  357|   		talloc_steal(mem_ctx, s->info);
#  358|   		io->out.info = *s->info;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def468]
samba-4.22.1/bin/default/../../source4/libnet/groupman.c:99:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/groupman.c:130:10: enter_function: entry to ‘libnet_rpc_groupadd’
samba-4.22.1/bin/default/../../source4/libnet/groupman.c:138:16: call_function: calling ‘libnet_rpc_groupadd_recv’ from ‘libnet_rpc_groupadd’
#   97|   	status = composite_wait(c);
#   98|   	if (NT_STATUS_IS_OK(status) && io) {
#   99|-> 		s = talloc_get_type(c->private_data, struct groupadd_state);
#  100|   		io->out.group_handle = s->group_handle;
#  101|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def469]
samba-4.22.1/bin/default/../../source4/libnet/libnet_group.c:405:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/libnet_group.c:431:10: enter_function: entry to ‘libnet_GroupInfo’
samba-4.22.1/bin/default/../../source4/libnet/libnet_group.c:434:39: call_function: calling ‘libnet_GroupInfo_send’ from ‘libnet_GroupInfo’
samba-4.22.1/bin/default/../../source4/libnet/libnet_group.c:434:39: return_function: returning to ‘libnet_GroupInfo’ from ‘libnet_GroupInfo_send’
samba-4.22.1/bin/default/../../source4/libnet/libnet_group.c:436:16: call_function: calling ‘libnet_GroupInfo_recv’ from ‘libnet_GroupInfo’
#  403|   	if (NT_STATUS_IS_OK(status)) {
#  404|   		/* put the results into io structure if everything went fine */
#  405|-> 		s = talloc_get_type_abort(c->private_data, struct group_info_state);
#  406|   
#  407|   		io->out.group_name = talloc_steal(mem_ctx,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def470]
samba-4.22.1/bin/default/../../source4/libnet/libnet_lookup.c:401:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/libnet_lookup.c:445:10: enter_function: entry to ‘libnet_LookupName’
samba-4.22.1/bin/default/../../source4/libnet/libnet_lookup.c:450:13: call_function: calling ‘libnet_LookupName_send’ from ‘libnet_LookupName’
samba-4.22.1/bin/default/../../source4/libnet/libnet_lookup.c:450:13: return_function: returning to ‘libnet_LookupName’ from ‘libnet_LookupName_send’
samba-4.22.1/bin/default/../../source4/libnet/libnet_lookup.c:451:16: call_function: calling ‘libnet_LookupName_recv’ from ‘libnet_LookupName’
#  399|   	}
#  400|   
#  401|-> 	s = talloc_get_type(c->private_data, struct lookup_name_state);
#  402|   
#  403|   	if (*s->lookup.out.count == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def471]
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:352:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:368:10: enter_function: entry to ‘libnet_DeleteUser’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:373:13: call_function: calling ‘libnet_DeleteUser_send’ from ‘libnet_DeleteUser’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:373:13: return_function: returning to ‘libnet_DeleteUser’ from ‘libnet_DeleteUser_send’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:374:16: call_function: calling ‘libnet_DeleteUser_recv’ from ‘libnet_DeleteUser’
#  350|   	status = composite_wait(c);
#  351|   	if (!NT_STATUS_IS_OK(status)) {
#  352|-> 		s = talloc_get_type_abort(c->private_data, struct delete_user_state);
#  353|   		r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string);
#  354|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def472]
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:849:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:903:10: enter_function: entry to ‘libnet_UserInfo’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:908:13: call_function: calling ‘libnet_UserInfo_send’ from ‘libnet_UserInfo’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:908:13: return_function: returning to ‘libnet_UserInfo’ from ‘libnet_UserInfo_send’
samba-4.22.1/bin/default/../../source4/libnet/libnet_user.c:909:16: call_function: calling ‘libnet_UserInfo_recv’ from ‘libnet_UserInfo’
#  847|   		struct samr_UserInfo21 *info;
#  848|   
#  849|-> 		s = talloc_get_type_abort(c->private_data, struct user_info_state);
#  850|   		info = &s->userinfo.out.info.info21;
#  851|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def473]
samba-4.22.1/bin/default/../../source4/libnet/userinfo.c:355:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/userinfo.c:375:10: enter_function: entry to ‘libnet_rpc_userinfo’
samba-4.22.1/bin/default/../../source4/libnet/userinfo.c:381:16: call_function: calling ‘libnet_rpc_userinfo_recv’ from ‘libnet_rpc_userinfo’
#  353|   	
#  354|   	if (NT_STATUS_IS_OK(status) && io) {
#  355|-> 		s = talloc_get_type_abort(c->private_data, struct userinfo_state);
#  356|   		talloc_steal(mem_ctx, s->info);
#  357|   		io->out.info = *s->info;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def474]
samba-4.22.1/bin/default/../../source4/libnet/userman.c:165:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/libnet/userman.c:183:10: enter_function: entry to ‘libnet_rpc_useradd’
samba-4.22.1/bin/default/../../source4/libnet/userman.c:189:16: call_function: calling ‘libnet_rpc_useradd_recv’ from ‘libnet_rpc_useradd’
#  163|   	if (NT_STATUS_IS_OK(status) && io) {
#  164|   		/* get and return result of the call */
#  165|-> 		s = talloc_get_type(c->private_data, struct useradd_state);
#  166|   		io->out.user_handle = s->user_handle;
#  167|   	}

Error: COMPILER_WARNING (CWE-477): [#def475]
samba-4.22.1/bin/default/../../source4/librpc/rpc/dcerpc.c:747:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#  745|   	hs->p = p;
#  746|   
#  747|-> 	dcerpc_binding_handle_set_sync_ev(h, p->conn->event_ctx);
#  748|   
#  749|   	return h;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def476]
samba-4.22.1/bin/default/../../source4/librpc/rpc/dcerpc_secondary.c:409:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.22.1/bin/default/../../source4/librpc/rpc/dcerpc_secondary.c:419:19: enter_function: entry to ‘dcerpc_secondary_auth_connection’
samba-4.22.1/bin/default/../../source4/librpc/rpc/dcerpc_secondary.c:431:16: call_function: calling ‘dcerpc_secondary_auth_connection_recv’ from ‘dcerpc_secondary_auth_connection’
#  407|   	struct sec_auth_conn_state *s;
#  408|   
#  409|-> 	s = talloc_get_type(c->private_data, struct sec_auth_conn_state);
#  410|   
#  411|   	if (NT_STATUS_IS_OK(status)) {

Error: COMPILER_WARNING (CWE-477): [#def477]
samba-4.22.1/bin/default/../../source4/librpc/rpc/pyrpc_util.c:94:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#   92|   	 * but as there's no top level event loop it's not that critical.
#   93|   	 */
#   94|-> 	dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
#   95|   
#   96|   	return NT_STATUS_OK;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def478]
samba-4.22.1/bin/default/../../source4/param/share_classic.c:63:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.22.1/bin/default/../../source4/param/share_classic.c:57:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:58:24: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:59:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:62:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:63:17: danger: dereference of NULL ‘val’
#   61|   		}
#   62|   		val = strchr(parm, ':');
#   63|-> 		*val = '\0';
#   64|   		val++;
#   65|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def479]
samba-4.22.1/bin/default/../../source4/param/share_classic.c:121:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.22.1/bin/default/../../source4/param/share_classic.c:115:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:116:24: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:117:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:120:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:121:17: danger: dereference of NULL ‘val’
#  119|   		}
#  120|   		val = strchr(parm, ':');
#  121|-> 		*val = '\0';
#  122|   		val++;
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def480]
samba-4.22.1/bin/default/../../source4/param/share_classic.c:179:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.22.1/bin/default/../../source4/param/share_classic.c:173:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:174:24: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:175:19: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:178:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:179:17: danger: dereference of NULL ‘val’
#  177|   		}
#  178|   		val = strchr(parm, ':');
#  179|-> 		*val = '\0';
#  180|   		val++;
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def481]
samba-4.22.1/bin/default/../../source4/param/share_classic.c:277:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.22.1/bin/default/../../source4/param/share_classic.c:271:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:272:24: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:273:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/param/share_classic.c:276:23: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/param/share_classic.c:277:17: danger: dereference of NULL ‘val’
#  275|   		}
#  276|   		val = strchr(parm, ':');
#  277|-> 		*val = '\0';
#  278|   		val++;
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def482]
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:409:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:923:8: enter_function: entry to ‘dns_fill_records_array’
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:944:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:947:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:966:12: branch_false: following ‘false’ branch (when ‘msg’ is non-NULL)...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:971:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:971:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:975:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:976:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:982:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:983:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:988:19: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:993:49: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:995:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:1001:20: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:1039:36: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:1043:65: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/dnsserver/dnsdata.c:1044:33: call_function: calling ‘dnsp_to_dns_copy’ from ‘dns_fill_records_array’
#  407|   
#  408|   	default:
#  409|-> 		memcpy(&dns->data, &dnsp->data, sizeof(union DNS_RPC_RECORD_DATA));
#  410|   		DEBUG(0, ("dnsserver: Found Unhandled DNS record type=%d\n", dnsp->wType));
#  411|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def483]
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:263:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2415:17: enter_function: entry to ‘dcesrv_lsa_DeleteTrustedDomain’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2427:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2430:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2431:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2435:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2435:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2436:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2440:18: call_function: calling ‘dcesrv_lsa_DeleteObject’ from ‘dcesrv_lsa_DeleteTrustedDomain’
#  261|   	int ret;
#  262|   
#  263|-> 	DCESRV_PULL_HANDLE(h, r->in.handle, DCESRV_HANDLE_ANY);
#  264|   
#  265|   	if (h->wire_handle.handle_type == LSA_HANDLE_SECRET) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def484]
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:330:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2415:17: enter_function: entry to ‘dcesrv_lsa_DeleteTrustedDomain’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2427:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2430:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2431:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2435:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2435:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2436:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2440:18: call_function: calling ‘dcesrv_lsa_DeleteObject’ from ‘dcesrv_lsa_DeleteTrustedDomain’
#  328|   		rights = talloc(mem_ctx, struct lsa_RightSet);
#  329|   
#  330|-> 		DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_ACCOUNT);
#  331|   
#  332|   		astate = h->data;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def485]
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2489:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2561:17: enter_function: entry to ‘dcesrv_lsa_QueryTrustedDomainInfoBySid’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2573:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2576:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2577:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2582:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2582:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2583:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:2588:18: call_function: calling ‘dcesrv_lsa_QueryTrustedDomainInfo’ from ‘dcesrv_lsa_QueryTrustedDomainInfoBySid’
# 2487|   	};
# 2488|   
# 2489|-> 	DCESRV_PULL_HANDLE(h, r->in.trustdom_handle, LSA_HANDLE_TRUSTED_DOMAIN);
# 2490|   
# 2491|   	trusted_domain_state = talloc_get_type(h->data, struct lsa_trusted_domain_state);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def486]
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3008:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3213:17: enter_function: entry to ‘dcesrv_lsa_RemovePrivilegesFromAccount’
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3221:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3227:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3228:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3227:13: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3232:33: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/lsa/dcesrv_lsa.c:3236:26: call_function: calling ‘dcesrv_lsa_EnumAccountRights’ from ‘dcesrv_lsa_RemovePrivilegesFromAccount’
# 3006|   	struct ldb_message_element *el;
# 3007|   
# 3008|-> 	DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_POLICY);
# 3009|   
# 3010|   	state = h->data;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def487]
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4701:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesGeneral’
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4701:39: release_memory: ‘entriesGeneral’ is NULL
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4701:25: danger: dereference of NULL ‘entriesGeneral + (long unsigned int)count * 64’
# 4699|   		case 1:
# 4700|   
# 4701|-> 			entriesGeneral[count].idx = idx + 1;
# 4702|   			entriesGeneral[count].rid = rid;
# 4703|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def488]
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4717:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFull’
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4717:36: release_memory: ‘entriesFull’ is NULL
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4717:25: danger: dereference of NULL ‘entriesFull + (long unsigned int)count * 48’
# 4715|   			break;
# 4716|   		case 2:
# 4717|-> 			entriesFull[count].idx = idx + 1;
# 4718|   			entriesFull[count].rid = rid;
# 4719|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def489]
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4735:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFullGroup’
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4735:41: release_memory: ‘entriesFullGroup’ is NULL
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4735:25: danger: dereference of NULL ‘entriesFullGroup + (long unsigned int)count * 48’
# 4733|   			break;
# 4734|   		case 3:
# 4735|-> 			entriesFullGroup[count].idx = idx + 1;
# 4736|   			entriesFullGroup[count].rid = rid;
# 4737|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def490]
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4751:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesAscii’
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4751:37: release_memory: ‘entriesAscii’ is NULL
samba-4.22.1/bin/default/../../source4/rpc_server/samr/dcesrv_samr.c:4751:25: danger: dereference of NULL ‘entriesAscii + (long unsigned int)count * 24’
# 4749|   		case 4:
# 4750|   		case 5:
# 4751|-> 			entriesAscii[count].idx = idx + 1;
# 4752|   			entriesAscii[count].account_name.string =
# 4753|   			    ldb_msg_find_attr_as_string(

Error: COMPILER_WARNING (CWE-477): [#def491]
samba-4.22.1/bin/default/../../source4/samba/service_task.c:49:25: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#   47|   		if (irpc_handle != NULL) {
#   48|   			/* Note: this makes use of nested event loops... */
#   49|-> 			dcerpc_binding_handle_set_sync_ev(irpc_handle, event_ctx);
#   50|   			r.in.reason = reason;
#   51|   			dcerpc_samba_terminate_r(irpc_handle, task, &r);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def492]
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:103:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo2.basic_info.out.write_time’
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:53:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:55:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:56:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:59:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:64:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:66:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:70:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:73:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:75:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:103:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:103:9: danger: use of uninitialized value ‘finfo2.basic_info.out.write_time’ here
#  101|   	}
#  102|   
#  103|-> 	torture_assert_u64_not_equal(tctx,
#  104|   				     finfo2.basic_info.out.write_time,
#  105|   				     finfo1.basic_info.out.write_time,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def493]
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:260:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:137:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:139:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:140:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:143:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:159:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:161:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:161:9: branch_false: following ‘false’ branch (when ‘__got == 2048’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:164:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:173:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:176:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:180:16: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:181:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:183:17: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:185:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:185:17: branch_false: following ‘false’ branch (when ‘__got == 1024’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:189:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:204:9: branch_true: following ‘true’ branch (when ‘updated != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:207:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:207:9: branch_true: following ‘true’ branch (when ‘first != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:211:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:218:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:221:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:223:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:247:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:258:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:260:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:260:9: danger: use of uninitialized value ‘finfo3.all_info.out.write_time’ here
#  258|   	torture_assert_ntstatus_ok(tctx, status, "pathinfo failed");
#  259|   
#  260|-> 	torture_assert_u64_not_equal(tctx,
#  261|   				     pinfo4.all_info.out.write_time,
#  262|   				     finfo3.all_info.out.write_time,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def494]
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:421:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:303:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:305:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:306:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:309:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:325:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:327:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:327:9: branch_false: following ‘false’ branch (when ‘__got == 2048’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:330:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:336:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:339:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:343:16: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:344:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:346:17: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:348:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:348:17: branch_false: following ‘false’ branch (when ‘__got == 10240’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:352:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:367:9: branch_true: following ‘true’ branch (when ‘updated != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:370:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:370:9: branch_true: following ‘true’ branch (when ‘first != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:374:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:382:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:385:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:387:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:411:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:419:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:421:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:421:9: danger: use of uninitialized value ‘finfo3.all_info.out.write_time’ here
#  419|   	torture_assert_ntstatus_ok(tctx, status, "pathinfo failed");
#  420|   
#  421|-> 	torture_assert_u64_not_equal(tctx,
#  422|   				     pinfo4.all_info.out.write_time,
#  423|   				     finfo3.all_info.out.write_time,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def495]
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:581:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:464:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:466:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:467:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:470:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:486:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:488:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:488:9: branch_false: following ‘false’ branch (when ‘__got == 2048’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:491:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:497:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:499:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:503:16: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:504:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:506:17: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:508:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:508:17: branch_false: following ‘false’ branch (when ‘__got == 10240’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:512:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:527:9: branch_true: following ‘true’ branch (when ‘updated != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:530:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:530:9: branch_true: following ‘true’ branch (when ‘first != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:534:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:542:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:545:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:547:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:571:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:579:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:581:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:581:9: danger: use of uninitialized value ‘finfo3.all_info.out.write_time’ here
#  579|   	torture_assert_ntstatus_ok(tctx, status, "pathinfo failed");
#  580|   
#  581|-> 	torture_assert_u64_not_equal(tctx,
#  582|   				     pinfo4.all_info.out.write_time,
#  583|   				     finfo3.all_info.out.write_time,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def496]
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:744:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:624:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:626:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:627:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:630:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:646:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:648:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:648:9: branch_false: following ‘false’ branch (when ‘__got == 2048’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:651:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:661:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:664:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:668:16: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:669:26: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:671:17: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:673:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:673:17: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:677:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:692:9: branch_true: following ‘true’ branch (when ‘updated != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:695:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:695:9: branch_true: following ‘true’ branch (when ‘first != 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:699:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:706:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:709:17: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:711:16: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:734:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:742:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:744:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/delaywrite.c:744:9: danger: use of uninitialized value ‘finfo3.all_info.out.write_time’ here
#  742|   	torture_assert_ntstatus_ok(tctx, status, "pathinfo failed");
#  743|   
#  744|-> 	torture_assert_u64_not_equal(tctx,
#  745|   				     pinfo4.all_info.out.write_time,
#  746|   				     finfo3.all_info.out.write_time,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2356:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cli2’
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2622:6: enter_function: entry to ‘torture_createx_access_exhaustive’
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2632:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2635:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2656:33: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2658:43: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2660:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/basic/denytest.c:2661:31: call_function: calling ‘torture_createx_specific’ from ‘torture_createx_access_exhaustive’
# 2354|   
# 2355|   	if (cxd->cxd_test == CXD_TEST_CREATEX_SHAREMODE) {
# 2356|-> 		result2[CXD_CREATEX] = smb_raw_open(cli2->tree, mem_ctx,
# 2357|   		    &open_parms2);
# 2358|   		if (NT_STATUS_IS_OK(result2[CXD_CREATEX])) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:142:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:91:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:95:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:96:11: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:100:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:104:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:109:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:109:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:111:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:111:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:113:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:113:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:115:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:115:9: branch_false: following ‘false’ branch (when ‘__got == 3’)...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:119:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:119:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:124:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:124:9: branch_false: following ‘false’ branch (when ‘__got == 2’)...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:129:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:129:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:133:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:133:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:137:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/dfs/domaindfs.c:142:9: danger: dereference of NULL ‘str’
#  140|   		str2++;
#  141|   	}
#  142|-> 	torture_assert_int_equal(tctx, strlen(str) >0, 1 ,"Length of domain too short");
#  143|   	str++;
#  144|   	torture_assert_int_equal(tctx, strcmp(str,str2), 0,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def499]
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:718:13: warning[-Wanalyzer-null-argument]: use of NULL ‘basedn’ where non-null expected
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:932:6: enter_function: entry to ‘torture_ldap_basic’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:950:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:954:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:954:14: call_function: calling ‘test_search_rootDSE’ from ‘torture_ldap_basic’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:954:14: return_function: returning to ‘torture_ldap_basic’ from ‘test_search_rootDSE’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:958:14: call_function: calling ‘test_search_rootDSE_empty_substring’ from ‘torture_ldap_basic’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:958:14: return_function: returning to ‘torture_ldap_basic’ from ‘test_search_rootDSE_empty_substring’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:958:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:972:14: release_memory: ‘basedn’ is NULL
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:972:14: call_function: calling ‘test_search_auth_empty_substring’ from ‘torture_ldap_basic’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:972:14: return_function: returning to ‘torture_ldap_basic’ from ‘test_search_auth_empty_substring’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:972:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:976:14: call_function: calling ‘test_compare_sasl’ from ‘torture_ldap_basic’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:976:14: return_function: returning to ‘torture_ldap_basic’ from ‘test_compare_sasl’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:976:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:982:14: call_function: calling ‘test_error_codes’ from ‘torture_ldap_basic’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:982:14: return_function: returning to ‘torture_ldap_basic’ from ‘test_error_codes’
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:982:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/ldap/basic.c:988:14: call_function: calling ‘test_referrals’ from ‘torture_ldap_basic’
#  716|   	}
#  717|   
#  718|-> 	if (strcmp(partitions[0], basedn) != 0) {
#  719|   		printf("The first (root) partition DN should be the base DN!\n");
#  720|   		return false;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def500]
samba-4.22.1/bin/default/../../source4/torture/libnetapi/libnetapi_group.c:191:49: warning[-Wanalyzer-null-argument]: use of NULL ‘current_name’ where non-null expected
#  189|   				}
#  190|   
#  191|-> 				if (username && strcasecmp(current_name, username) == 0) {
#  192|   					found_user = 1;
#  193|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
samba-4.22.1/bin/default/../../source4/torture/masktest.c:50:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file’
samba-4.22.1/bin/default/../../source4/torture/masktest.c:292:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/torture/masktest.c:330:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/masktest.c:334:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/masktest.c:337:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/masktest.c:342:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/masktest.c:347:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/masktest.c:352:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/masktest.c:380:12: branch_false: following ‘false’ branch (when ‘argc_new > 1’)...
samba-4.22.1/bin/default/../../source4/torture/masktest.c:386:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/masktest.c:399:15: call_function: calling ‘connect_one’ from ‘main’
samba-4.22.1/bin/default/../../source4/torture/masktest.c:399:15: return_function: returning to ‘main’ from ‘connect_one’
samba-4.22.1/bin/default/../../source4/torture/masktest.c:403:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/masktest.c:410:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/masktest.c:413:9: call_function: calling ‘test_mask’ from ‘main’
#   48|   	if (ISDOT(pattern)) return false;
#   49|   
#   50|-> 	if (ISDOTDOT(file)) file = ".";
#   51|   
#   52|   	return ms_fnmatch_protocol(

Error: GCC_ANALYZER_WARNING (CWE-479): [#def502]
samba-4.22.1/bin/default/../../source4/torture/nbench/nbio.c:295:17: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
samba-4.22.1/bin/default/../../source4/torture/nbench/nbio.c:248:6: enter_function: entry to ‘nb_alarm’
samba-4.22.1/bin/default/../../source4/torture/nbench/nbio.c:248:6: enter_function: entry to ‘nb_alarm’
samba-4.22.1/bin/default/../../source4/torture/nbench/nbio.c:256:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
 call_function: calling ‘nb_alarm’ from ‘nb_alarm’
#  293|   
#  294|   	if (in_warmup) {
#  295|-> 		printf("%4d  %8d  %.2f MB/sec  warmup %.0f sec   \n", 
#  296|   		       num_connected, lines/nprocs, 
#  297|   		       nbio_result(), t);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def503]
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_common.c:51:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘level1.build’
 branch_false: following ‘false’ branch (when ‘os > 8’)...
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_common.c:51:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_common.c:51:16: danger: use of uninitialized value ‘level1.build’ here
#   49|   	}
#   50|   
#   51|-> 	return level1;
#   52|   }
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def504]
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:101:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fpath, "r")’
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:98:14: acquire_resource: opened here
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:99:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:101:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:101:29: danger: ‘fopen(fpath, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   99|   	torture_assert_goto(tctx, fp, ok, done, "Failed to open local file\n");
#  100|   
#  101|-> 	smbfp = smbcli_open(dinfo->cli->tree, dst_fpath, O_RDWR|O_CREAT|O_TRUNC, DENY_NONE);
#  102|   	torture_assert_int_not_equal_goto(tctx, smbfp, -1, ok, done, "Failed to open dst file\n");
#  103|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:101:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fpath, "r")’
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:98:14: acquire_memory: allocated here
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:99:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:101:29: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/iremotewinspool_driver.c:101:29: danger: ‘fopen(fpath, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   99|   	torture_assert_goto(tctx, fp, ok, done, "Failed to open local file\n");
#  100|   
#  101|-> 	smbfp = smbcli_open(dinfo->cli->tree, dst_fpath, O_RDWR|O_CREAT|O_TRUNC, DENY_NONE);
#  102|   	torture_assert_int_not_equal_goto(tctx, smbfp, -1, ok, done, "Failed to open dst file\n");
#  103|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def506]
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3572:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e.object.object_name’
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3521:19: branch_true: following ‘true’ branch (when ‘d != 3’)...
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3524:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3540:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3544:26: branch_true: following ‘true’ branch (when ‘i != 32’)...
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3546:34: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3546:28: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3550:25: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/netlogon.c:3572:25: danger: use of uninitialized value ‘e.object.object_name’ here
# 3570|   			}
# 3571|   
# 3572|-> 			r.in.change_log_entry = e;
# 3573|   
# 3574|   			torture_comment(tctx, "Testing DatabaseRedo with database %s and %s\n",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def507]
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2343:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rmdir_tree’
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2315:6: enter_function: entry to ‘try_tcon’
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2331:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2336:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2336:18: call_function: calling ‘secondary_tcon’ from ‘try_tcon’
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2336:18: return_function: returning to ‘try_tcon’ from ‘secondary_tcon’
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2337:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2343:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/rpc/samba3rpc.c:2343:9: danger: use of uninitialized value ‘rmdir_tree’ here
# 2341|   	}
# 2342|   
# 2343|-> 	smbcli_rmdir(rmdir_tree, "sharesec_testdir");
# 2344|   
# 2345|   	if (!NT_STATUS_IS_OK(dom_sid_split_rid(tmp_ctx, user_sid,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def508]
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:714:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:702:6: enter_function: entry to ‘fill_result’
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:712:19: branch_true: following ‘true’ branch (when ‘i < count’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:713:25: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:713:25: call_function: calling ‘extract_name’ from ‘fill_result’
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:713:25: return_function: returning to ‘fill_result’ from ‘extract_name’
samba-4.22.1/bin/default/../../source4/torture/smb2/dir.c:714:22: danger: argument 1 (‘extract_name(file + (long unsigned int)i * 144, (int)level,  data_level)’) NULL where non-null expected
#  712|   	for (i=0; i<count; i++) {
#  713|   		sname = extract_name(&file[i], level, data_level);
#  714|-> 		if (!strcmp(sname, ".") || !(strcmp(sname, "..")))
#  715|   			continue;
#  716|   		data->count++;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def509]
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2413:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2387:13: enter_function: entry to ‘test_ioctl_compress_file_flag’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2396:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_file_flag’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2396:14: return_function: returning to ‘test_ioctl_compress_file_flag’ from ‘test_setup_create_fill’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2399:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2401:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2403:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2404:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2404:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2409:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2409:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_file_flag’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2409:18: return_function: returning to ‘test_ioctl_compress_file_flag’ from ‘test_ioctl_compress_get’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2411:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2413:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2413:9: danger: use of uninitialized value ‘compression_fmt’ here
# 2411|   	torture_assert_ntstatus_ok(torture, status, "FSCTL_GET_COMPRESSION");
# 2412|   
# 2413|-> 	torture_assert(torture, (compression_fmt == COMPRESSION_FORMAT_NONE),
# 2414|   		       "initial compression state not NONE");
# 2415|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def510]
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2467:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2432:13: enter_function: entry to ‘test_ioctl_compress_dir_inherit’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2444:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_dir_inherit’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2444:14: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_setup_create_fill’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2447:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2449:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2451:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2452:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2452:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2459:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2459:18: call_function: calling ‘test_ioctl_compress_set’ from ‘test_ioctl_compress_dir_inherit’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2459:18: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_ioctl_compress_set’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2461:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2463:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2463:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_dir_inherit’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2463:18: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_ioctl_compress_get’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2465:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2467:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2467:9: danger: use of uninitialized value ‘compression_fmt’ here
# 2465|   	torture_assert_ntstatus_ok(torture, status, "FSCTL_GET_COMPRESSION");
# 2466|   
# 2467|-> 	torture_assert(torture, (compression_fmt == COMPRESSION_FORMAT_LZNT1),
# 2468|   		       "invalid compression state after set");
# 2469|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def511]
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2684:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2657:13: enter_function: entry to ‘test_ioctl_compress_create_with_attr’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2667:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_create_with_attr’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2667:14: return_function: returning to ‘test_ioctl_compress_create_with_attr’ from ‘test_setup_create_fill’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2670:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2672:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2674:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2675:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2675:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2680:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2680:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_create_with_attr’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2680:18: return_function: returning to ‘test_ioctl_compress_create_with_attr’ from ‘test_ioctl_compress_get’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2682:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2684:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2684:9: danger: use of uninitialized value ‘compression_fmt’ here
# 2682|   	torture_assert_ntstatus_ok(torture, status, "FSCTL_GET_COMPRESSION");
# 2683|   
# 2684|-> 	torture_assert(torture, (compression_fmt == COMPRESSION_FORMAT_NONE),
# 2685|   		       "initial compression state not NONE");
# 2686|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def512]
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2739:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2702:13: enter_function: entry to ‘test_ioctl_compress_inherit_disable’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2716:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_inherit_disable’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2716:14: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_setup_create_fill’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2719:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2721:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2723:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2724:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2724:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2731:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2731:18: call_function: calling ‘test_ioctl_compress_set’ from ‘test_ioctl_compress_inherit_disable’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2731:18: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_ioctl_compress_set’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2733:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2735:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2735:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_inherit_disable’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2735:18: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_ioctl_compress_get’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2737:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2739:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2739:9: danger: use of uninitialized value ‘compression_fmt’ here
# 2737|   	torture_assert_ntstatus_ok(torture, status, "FSCTL_GET_COMPRESSION");
# 2738|   
# 2739|-> 	torture_assert(torture, (compression_fmt == COMPRESSION_FORMAT_LZNT1),
# 2740|   		       "invalid compression state after set");
# 2741|   	smb2_util_close(tree, dirh);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def513]
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2950:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2915:13: enter_function: entry to ‘test_ioctl_compress_perms’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2925:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_perms’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2925:14: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_setup_create_fill’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2928:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2930:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2932:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2933:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2934:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2939:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2939:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_perms’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2939:14: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_setup_create_fill’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2945:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2947:18: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2947:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_perms’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2947:18: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_ioctl_compress_get’
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2949:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2950:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/ioctl.c:2950:9: danger: use of uninitialized value ‘compression_fmt’ here
# 2948|   					 &compression_fmt);
# 2949|   	torture_assert_ntstatus_ok(torture, status, "FSCTL_GET_COMPRESSION");
# 2950|-> 	torture_assert(torture, (compression_fmt == COMPRESSION_FORMAT_NONE),
# 2951|   		       "compression set after create");
# 2952|   	smb2_util_close(tree, fh);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def514]
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5224:9: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5224:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5218:9: danger: ‘fds[0]’ leaks here
# 5216|   				fname);
# 5217|   
# 5218|-> 	torture_assert(tctx, name != NULL, "talloc failed");
# 5219|   
# 5220|   	ret = pipe(fds);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def515]
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5224:9: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5224:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/oplock.c:5218:9: danger: ‘fds[1]’ leaks here
# 5216|   				fname);
# 5217|   
# 5218|-> 	torture_assert(tctx, name != NULL, "talloc failed");
# 5219|   
# 5220|   	ret = pipe(fds);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def516]
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3162:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2806:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2811:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2812:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2815:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2824:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2831:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2849:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2849:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3162:9: danger: dereference of NULL ‘transport2_2’
# 3160|   
# 3161|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3162|-> 	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3163|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3164|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def517]
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3163:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2806:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2811:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2812:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2815:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2824:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2831:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2849:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2851:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2857:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2859:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2862:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2862:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3163:9: danger: dereference of NULL ‘transport2_3’
# 3161|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3162|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3163|-> 	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3164|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3165|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def518]
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3164:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_4’
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2806:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2811:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2812:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2815:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2824:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2831:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2849:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2851:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2857:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2859:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2862:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2864:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2879:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2881:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2887:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:2889:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3164:9: danger: dereference of NULL ‘transport2_4’
# 3162|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3163|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3164|-> 	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3165|   
# 3166|   	if (h1 != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def519]
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4036:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3642:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3647:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3648:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3651:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3660:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3667:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3685:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3685:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4022:12: branch_false: following ‘false’ branch (when ‘blocked2_3 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4025:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4025:12: branch_false: following ‘false’ branch (when ‘blocked2_2 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4028:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4028:12: branch_false: following ‘false’ branch (when ‘blocked2_1 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4031:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4031:12: branch_false: following ‘false’ branch (when ‘block_setup == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4035:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4036:9: danger: dereference of NULL ‘transport2_2’
# 4034|   
# 4035|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4036|-> 	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4037|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4038|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def520]
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4037:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3642:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3647:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3648:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3651:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3660:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3667:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3685:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3687:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3693:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3695:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3698:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3698:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4022:12: branch_false: following ‘false’ branch (when ‘blocked2_3 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4025:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4025:12: branch_false: following ‘false’ branch (when ‘blocked2_2 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4028:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4028:12: branch_false: following ‘false’ branch (when ‘blocked2_1 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4031:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4031:12: branch_false: following ‘false’ branch (when ‘block_setup == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4035:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4037:9: danger: dereference of NULL ‘transport2_3’
# 4035|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4036|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4037|-> 	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4038|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4039|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def521]
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4038:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_4’
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3642:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3647:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3648:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3651:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3660:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3667:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3685:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3687:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3693:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3695:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3698:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3700:16: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3715:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3717:31: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3723:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:3725:18: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4022:12: branch_false: following ‘false’ branch (when ‘blocked2_3 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4025:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4025:12: branch_false: following ‘false’ branch (when ‘blocked2_2 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4028:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4028:12: branch_false: following ‘false’ branch (when ‘blocked2_1 == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4031:12: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4031:12: branch_false: following ‘false’ branch (when ‘block_setup == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4035:53: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/replay.c:4038:9: danger: dereference of NULL ‘transport2_4’
# 4036|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4037|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4038|-> 	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4039|   
# 4040|   	if (h1 != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def522]
samba-4.22.1/bin/default/../../source4/torture/smb2/session.c:2303:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport3’
samba-4.22.1/bin/default/../../source4/torture/smb2/session.c:2060:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/session.c:2067:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/session.c:2088:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/session.c:2088:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/session.c:2303:9: danger: dereference of NULL ‘transport3’
# 2301|   done:
# 2302|   
# 2303|-> 	smbXcli_conn_disconnect(transport3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 2304|   	smbXcli_conn_disconnect(transport2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 2305|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def523]
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:53:44: warning[-Wanalyzer-null-argument]: use of NULL ‘eavalue’ where non-null expected
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:78:6: enter_function: entry to ‘torture_smb2_setinfo’
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:99:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:117:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:117:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:177:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:186:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:187:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:187:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:188:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:189:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:190:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:191:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:199:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:200:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:200:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:201:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:202:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:203:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:204:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:208:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:209:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:209:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:213:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:214:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:214:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:218:9: branch_false: following ‘false’ branch (when ‘<unknown> == 3221225485’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:220:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:222:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:223:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:223:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:227:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:228:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:228:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:229:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:232:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:233:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:233:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:234:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:238:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:239:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:239:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:240:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:243:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:244:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:244:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:245:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:249:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:250:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:250:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:253:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:254:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:254:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:258:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:259:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:259:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:260:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:264:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:265:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:265:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:266:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:269:9: branch_false: following ‘false’ branch (when ‘<unknown> == 3221225485’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:271:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:272:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:273:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:273:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:281:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:282:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:291:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:293:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:297:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:298:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:298:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:300:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:303:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:305:47: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:307:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:308:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:308:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:310:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:319:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:322:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:326:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:334:14: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:346:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:349:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:353:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:360:13: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smb2/setinfo.c:360:13: call_function: calling ‘find_returned_ea’ from ‘torture_smb2_setinfo’
#argument 1 of ‘__builtin_strlen’ must be non-null
#   51|   			return true;
#   52|   		}
#   53|-> 		if (eas[i].value.length == strlen(eavalue) &&
#   54|   				memcmp(eas[i].value.data,
#   55|   					eavalue,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def524]
samba-4.22.1/bin/default/../../source4/torture/smb2/util.c:635:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*handle’
samba-4.22.1/bin/default/../../source4/torture/smb2/util.c:644:10: enter_function: entry to ‘torture_setup_simple_file’
samba-4.22.1/bin/default/../../source4/torture/smb2/util.c:648:27: call_function: calling ‘smb2_create_simple_file’ from ‘torture_setup_simple_file’
#  633|   	NT_STATUS_NOT_OK_RETURN(status);
#  634|   
#  635|-> 	status = smb2_util_write(tree, *handle, buf, 0, sizeof(buf));
#  636|   	NT_STATUS_NOT_OK_RETURN(status);
#  637|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:243:17: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:399:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:473:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:478:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:486:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:492:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:497:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:503:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:507:15: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:508:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:522:25: call_function: calling ‘parse_dns’ from ‘main’
#  241|   	if (!p) {
#  242|   		lpcfg_set_cmdline(lp_ctx, "torture:ldap_basedn", "");
#  243|-> 		lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", "");
#  244|   		return;
#  245|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:258:9: warning[-Wanalyzer-malloc-leak]: leak of ‘basedn’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:399:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:473:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:478:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:486:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:492:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:497:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:503:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:507:15: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:508:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:522:25: call_function: calling ‘parse_dns’ from ‘main’
#  256|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  257|   
#  258|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  259|   
#  260|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:258:9: warning[-Wanalyzer-malloc-leak]: leak of ‘secret’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:399:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:473:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:478:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:486:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:492:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:497:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:503:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:507:15: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:508:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:522:25: call_function: calling ‘parse_dns’ from ‘main’
#  256|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  257|   
#  258|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  259|   
#  260|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:258:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:399:5: enter_function: entry to ‘main’
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:473:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:478:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:486:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:492:14: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:497:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:503:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:507:15: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:508:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/smbtorture.c:522:25: call_function: calling ‘parse_dns’ from ‘main’
#  256|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  257|   
#  258|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  259|   
#  260|   }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def529]
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:1850:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2845:13: enter_function: entry to ‘test_adouble_conversion’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2868:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2872:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2875:9: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2876:9: branch_false: ...to here
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2878:15: call_function: calling ‘torture_setup_file’ from ‘test_adouble_conversion’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2878:15: return_function: returning to ‘test_adouble_conversion’ from ‘torture_setup_file’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2879:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2882:15: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2882:15: call_function: calling ‘torture_setup_file’ from ‘test_adouble_conversion’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2882:15: return_function: returning to ‘test_adouble_conversion’ from ‘torture_setup_file’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2883:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2886:15: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2886:15: call_function: calling ‘write_stream’ from ‘test_adouble_conversion’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2886:15: return_function: returning to ‘test_adouble_conversion’ from ‘write_stream’
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2891:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2894:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/vfs/fruit.c:2897:15: call_function: calling ‘check_stream’ from ‘test_adouble_conversion’
# 1848|   	status = smb2_read(tree, tree, &r);
# 1849|   
# 1850|-> 	torture_assert_ntstatus_ok_goto(
# 1851|   		tctx, status, ret, done,
# 1852|   		talloc_asprintf(tctx, "(%s) Failed to read %lu bytes from stream '%s'\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def530]
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:670:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘users’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:659:13: enter_function: entry to ‘torture_winbind_struct_list_users’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:667:14: call_function: calling ‘get_user_list’ from ‘torture_winbind_struct_list_users’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:667:14: return_function: returning to ‘torture_winbind_struct_list_users’ from ‘get_user_list’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:668:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:670:30: release_memory: ‘users’ is NULL
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:670:30: release_memory: ‘users’ is NULL
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:670:25: danger: dereference of NULL ‘users + (long unsigned int)count * 8’
#  668|   	torture_assert(torture, ok, "failed to get user list");
#  669|   
#  670|-> 	for (count = 0; users[count]; count++) { }
#  671|   
#  672|   	torture_comment(torture, "got %d users\n", count);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def531]
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:841:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:906:13: enter_function: entry to ‘torture_winbind_struct_lookup_name_sid’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:923:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:924:9: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:924:9: call_function: calling ‘lookup_name_sid_list’ from ‘torture_winbind_struct_lookup_name_sid’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:924:9: return_function: returning to ‘torture_winbind_struct_lookup_name_sid’ from ‘lookup_name_sid_list’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:926:14: call_function: calling ‘get_group_list’ from ‘torture_winbind_struct_lookup_name_sid’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:926:14: return_function: returning to ‘torture_winbind_struct_lookup_name_sid’ from ‘get_group_list’
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:927:9: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:928:13: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:928:12: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:929:17: branch_true: ...to here
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:929:17: release_memory: ‘groups’ is NULL
samba-4.22.1/bin/default/../../source4/torture/winbind/struct_based.c:929:17: call_function: calling ‘lookup_name_sid_list’ from ‘torture_winbind_struct_lookup_name_sid’
#  839|   	uint32_t count;
#  840|   
#  841|-> 	for (count = 0; list[count]; count++) {
#  842|   		struct winbindd_request req;
#  843|   		struct winbindd_response rep;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1649:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64, yyscanner)’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1635:21: enter_function: entry to ‘yy_create_buffer’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1639:24: call_function: calling ‘yyalloc’ from ‘yy_create_buffer’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1639:24: return_function: returning to ‘yy_create_buffer’ from ‘yyalloc’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1640:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1643:2: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1649:12: danger: ‘yyalloc(64, yyscanner)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
# 1647|   	 * we need to put in 2 end-of-buffer characters.
# 1648|   	 */
# 1649|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1650|   	if ( ! b->yy_ch_buf )
# 1651|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def533]
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1691:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1570:10: enter_function: entry to ‘yyrestart’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1575:16: call_function: calling ‘yyensure_buffer_stack’ from ‘yyrestart’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1575:16: return_function: returning to ‘yyrestart’ from ‘yyensure_buffer_stack’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1577:27: call_function: calling ‘yy_create_buffer’ from ‘yyrestart’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1577:27: return_function: returning to ‘yyrestart’ from ‘yy_create_buffer’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1580:2: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1580:2: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1580:2: call_function: calling ‘yy_init_buffer’ from ‘yyrestart’
# 1689|   
# 1690|   	yy_flush_buffer( b , yyscanner);
# 1691|-> 
# 1692|   	b->yy_input_file = file;
# 1693|   	b->yy_fill_buffer = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1909:25: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(n,  yyscanner)’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1893:17: enter_function: entry to ‘yy_scan_bytes’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1902:24: call_function: calling ‘yyalloc’ from ‘yy_scan_bytes’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1902:24: return_function: returning to ‘yy_scan_bytes’ from ‘yyalloc’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1903:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1911:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’
# 1907|   	for ( i = 0; i < _yybytes_len; ++i )
# 1908|   		buf[i] = yybytes[i];
# 1909|-> 
# 1910|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1911|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1084:11: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: following ‘false’ branch (when ‘yystate != 15’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1113:3: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1125:6: branch_false: following ‘false’ branch (when ‘yyn != -60’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1134:16: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1143:11: branch_false: following ‘false’ branch (when ‘yychar != 256’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1155:17: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1162:6: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1165:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1182:3: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: following ‘false’ branch (when ‘yystate != 15’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1113:3: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1125:6: branch_false: following ‘false’ branch (when ‘yyn != -60’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1134:16: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1137:6: branch_false: following ‘false’ branch (when ‘yychar > 0’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1143:11: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1143:11: branch_true: following ‘true’ branch (when ‘yychar == 256’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1151:7: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1748:10: branch_true: following ‘true’ branch (when ‘yyn != -60’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1750:11: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1751:14: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1754:18: branch_true: following ‘true’ branch (when ‘yyn > 0’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1772:3: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1075:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1077:7: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1084:11: acquire_memory: allocated here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1086:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1091:12: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1096:7: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1104:10: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: following ‘false’ branch (when ‘yystate != 15’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1113:3: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1125:6: branch_false: following ‘false’ branch (when ‘yyn != -60’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1162:6: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1165:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1052:28: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1075:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1077:7: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1084:11: danger: ‘yyptr’ leaks here; was allocated at [(37)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/36)
# 1082|           yy_state_t *yyss1 = yyss;
# 1083|           union yyalloc *yyptr =
# 1084|->           YY_CAST (union yyalloc *,
# 1085|                      YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
# 1086|           if (! yyptr)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def536]
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1052:28: branch_true: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1075:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1077:7: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1086:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: branch_false: ...to here
samba-4.22.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: danger: use of uninitialized value ‘yyss’ here
# 1086|           if (! yyptr)
# 1087|             YYNOMEM;
# 1088|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 1089|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 1090|   #  undef YYSTACK_RELOCATE

Error: COMPILER_WARNING (CWE-1164): [#def537]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:89:13: warning[-Wunused-function]: ‘ndr_print_flags_domsid’ defined but not used
#   89 | static void ndr_print_flags_domsid(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct domsid *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~
#   87|   }
#   88|   
#   89|-> static void ndr_print_flags_domsid(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct domsid *r)
#   90|   {
#   91|   	ndr_print_domsid(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def538]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:228:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_100’ defined but not used
#  228 | static void ndr_print_flags_SERVER_INFO_100(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_100 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  226|   }
#  227|   
#  228|-> static void ndr_print_flags_SERVER_INFO_100(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_100 *r)
#  229|   {
#  230|   	ndr_print_SERVER_INFO_100(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def539]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:279:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_101’ defined but not used
#  279 | static void ndr_print_flags_SERVER_INFO_101(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_101 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  277|   }
#  278|   
#  279|-> static void ndr_print_flags_SERVER_INFO_101(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_101 *r)
#  280|   {
#  281|   	ndr_print_SERVER_INFO_101(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def540]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:348:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_102’ defined but not used
#  348 | static void ndr_print_flags_SERVER_INFO_102(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_102 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  346|   }
#  347|   
#  348|-> static void ndr_print_flags_SERVER_INFO_102(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_102 *r)
#  349|   {
#  350|   	ndr_print_SERVER_INFO_102(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def541]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:460:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_402’ defined but not used
#  460 | static void ndr_print_flags_SERVER_INFO_402(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_402 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  458|   }
#  459|   
#  460|-> static void ndr_print_flags_SERVER_INFO_402(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_402 *r)
#  461|   {
#  462|   	ndr_print_SERVER_INFO_402(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def542]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:596:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_403’ defined but not used
#  596 | static void ndr_print_flags_SERVER_INFO_403(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_403 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  594|   }
#  595|   
#  596|-> static void ndr_print_flags_SERVER_INFO_403(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_403 *r)
#  597|   {
#  598|   	ndr_print_SERVER_INFO_403(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def543]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:703:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_502’ defined but not used
#  703 | static void ndr_print_flags_SERVER_INFO_502(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_502 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  701|   }
#  702|   
#  703|-> static void ndr_print_flags_SERVER_INFO_502(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_502 *r)
#  704|   {
#  705|   	ndr_print_SERVER_INFO_502(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def544]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:842:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_503’ defined but not used
#  842 | static void ndr_print_flags_SERVER_INFO_503(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_503 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  840|   }
#  841|   
#  842|-> static void ndr_print_flags_SERVER_INFO_503(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_503 *r)
#  843|   {
#  844|   	ndr_print_SERVER_INFO_503(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def545]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1033:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_599’ defined but not used
# 1033 | static void ndr_print_flags_SERVER_INFO_599(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_599 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1031|   }
# 1032|   
# 1033|-> static void ndr_print_flags_SERVER_INFO_599(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_599 *r)
# 1034|   {
# 1035|   	ndr_print_SERVER_INFO_599(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def546]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1210:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_598’ defined but not used
# 1210 | static void ndr_print_flags_SERVER_INFO_598(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_598 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1208|   }
# 1209|   
# 1210|-> static void ndr_print_flags_SERVER_INFO_598(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_598 *r)
# 1211|   {
# 1212|   	ndr_print_SERVER_INFO_598(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def547]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1005’ defined but not used
# 1291 | static void ndr_print_flags_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1005 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1289|   }
# 1290|   
# 1291|-> static void ndr_print_flags_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1005 *r)
# 1292|   {
# 1293|   	ndr_print_SERVER_INFO_1005(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def548]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1107’ defined but not used
# 1331 | static void ndr_print_flags_SERVER_INFO_1107(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1107 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1329|   }
# 1330|   
# 1331|-> static void ndr_print_flags_SERVER_INFO_1107(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1107 *r)
# 1332|   {
# 1333|   	ndr_print_SERVER_INFO_1107(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def549]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1010’ defined but not used
# 1371 | static void ndr_print_flags_SERVER_INFO_1010(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1010 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1369|   }
# 1370|   
# 1371|-> static void ndr_print_flags_SERVER_INFO_1010(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1010 *r)
# 1372|   {
# 1373|   	ndr_print_SERVER_INFO_1010(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def550]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1016’ defined but not used
# 1411 | static void ndr_print_flags_SERVER_INFO_1016(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1016 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1409|   }
# 1410|   
# 1411|-> static void ndr_print_flags_SERVER_INFO_1016(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1016 *r)
# 1412|   {
# 1413|   	ndr_print_SERVER_INFO_1016(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def551]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1017’ defined but not used
# 1451 | static void ndr_print_flags_SERVER_INFO_1017(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1017 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1449|   }
# 1450|   
# 1451|-> static void ndr_print_flags_SERVER_INFO_1017(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1017 *r)
# 1452|   {
# 1453|   	ndr_print_SERVER_INFO_1017(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def552]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1018’ defined but not used
# 1491 | static void ndr_print_flags_SERVER_INFO_1018(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1018 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1489|   }
# 1490|   
# 1491|-> static void ndr_print_flags_SERVER_INFO_1018(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1018 *r)
# 1492|   {
# 1493|   	ndr_print_SERVER_INFO_1018(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def553]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1501’ defined but not used
# 1531 | static void ndr_print_flags_SERVER_INFO_1501(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1501 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1529|   }
# 1530|   
# 1531|-> static void ndr_print_flags_SERVER_INFO_1501(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1501 *r)
# 1532|   {
# 1533|   	ndr_print_SERVER_INFO_1501(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def554]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1502’ defined but not used
# 1571 | static void ndr_print_flags_SERVER_INFO_1502(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1502 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1569|   }
# 1570|   
# 1571|-> static void ndr_print_flags_SERVER_INFO_1502(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1502 *r)
# 1572|   {
# 1573|   	ndr_print_SERVER_INFO_1502(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def555]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1503’ defined but not used
# 1611 | static void ndr_print_flags_SERVER_INFO_1503(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1503 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1609|   }
# 1610|   
# 1611|-> static void ndr_print_flags_SERVER_INFO_1503(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1503 *r)
# 1612|   {
# 1613|   	ndr_print_SERVER_INFO_1503(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def556]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1506’ defined but not used
# 1651 | static void ndr_print_flags_SERVER_INFO_1506(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1506 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1649|   }
# 1650|   
# 1651|-> static void ndr_print_flags_SERVER_INFO_1506(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1506 *r)
# 1652|   {
# 1653|   	ndr_print_SERVER_INFO_1506(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def557]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1509’ defined but not used
# 1691 | static void ndr_print_flags_SERVER_INFO_1509(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1509 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1689|   }
# 1690|   
# 1691|-> static void ndr_print_flags_SERVER_INFO_1509(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1509 *r)
# 1692|   {
# 1693|   	ndr_print_SERVER_INFO_1509(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def558]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1510’ defined but not used
# 1731 | static void ndr_print_flags_SERVER_INFO_1510(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1510 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1729|   }
# 1730|   
# 1731|-> static void ndr_print_flags_SERVER_INFO_1510(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1510 *r)
# 1732|   {
# 1733|   	ndr_print_SERVER_INFO_1510(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def559]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1511’ defined but not used
# 1771 | static void ndr_print_flags_SERVER_INFO_1511(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1511 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1769|   }
# 1770|   
# 1771|-> static void ndr_print_flags_SERVER_INFO_1511(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1511 *r)
# 1772|   {
# 1773|   	ndr_print_SERVER_INFO_1511(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def560]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1512’ defined but not used
# 1811 | static void ndr_print_flags_SERVER_INFO_1512(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1512 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1809|   }
# 1810|   
# 1811|-> static void ndr_print_flags_SERVER_INFO_1512(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1512 *r)
# 1812|   {
# 1813|   	ndr_print_SERVER_INFO_1512(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def561]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1513’ defined but not used
# 1851 | static void ndr_print_flags_SERVER_INFO_1513(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1513 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1849|   }
# 1850|   
# 1851|-> static void ndr_print_flags_SERVER_INFO_1513(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1513 *r)
# 1852|   {
# 1853|   	ndr_print_SERVER_INFO_1513(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def562]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1514’ defined but not used
# 1891 | static void ndr_print_flags_SERVER_INFO_1514(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1514 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1889|   }
# 1890|   
# 1891|-> static void ndr_print_flags_SERVER_INFO_1514(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1514 *r)
# 1892|   {
# 1893|   	ndr_print_SERVER_INFO_1514(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def563]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1515’ defined but not used
# 1931 | static void ndr_print_flags_SERVER_INFO_1515(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1515 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1929|   }
# 1930|   
# 1931|-> static void ndr_print_flags_SERVER_INFO_1515(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1515 *r)
# 1932|   {
# 1933|   	ndr_print_SERVER_INFO_1515(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def564]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1516’ defined but not used
# 1971 | static void ndr_print_flags_SERVER_INFO_1516(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1516 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1969|   }
# 1970|   
# 1971|-> static void ndr_print_flags_SERVER_INFO_1516(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1516 *r)
# 1972|   {
# 1973|   	ndr_print_SERVER_INFO_1516(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def565]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1518’ defined but not used
# 2011 | static void ndr_print_flags_SERVER_INFO_1518(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1518 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2009|   }
# 2010|   
# 2011|-> static void ndr_print_flags_SERVER_INFO_1518(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1518 *r)
# 2012|   {
# 2013|   	ndr_print_SERVER_INFO_1518(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def566]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2051:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1520’ defined but not used
# 2051 | static void ndr_print_flags_SERVER_INFO_1520(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1520 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2049|   }
# 2050|   
# 2051|-> static void ndr_print_flags_SERVER_INFO_1520(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1520 *r)
# 2052|   {
# 2053|   	ndr_print_SERVER_INFO_1520(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def567]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2091:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1521’ defined but not used
# 2091 | static void ndr_print_flags_SERVER_INFO_1521(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1521 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2089|   }
# 2090|   
# 2091|-> static void ndr_print_flags_SERVER_INFO_1521(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1521 *r)
# 2092|   {
# 2093|   	ndr_print_SERVER_INFO_1521(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def568]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2131:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1522’ defined but not used
# 2131 | static void ndr_print_flags_SERVER_INFO_1522(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1522 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2129|   }
# 2130|   
# 2131|-> static void ndr_print_flags_SERVER_INFO_1522(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1522 *r)
# 2132|   {
# 2133|   	ndr_print_SERVER_INFO_1522(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def569]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2171:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1523’ defined but not used
# 2171 | static void ndr_print_flags_SERVER_INFO_1523(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1523 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2169|   }
# 2170|   
# 2171|-> static void ndr_print_flags_SERVER_INFO_1523(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1523 *r)
# 2172|   {
# 2173|   	ndr_print_SERVER_INFO_1523(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def570]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2211:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1524’ defined but not used
# 2211 | static void ndr_print_flags_SERVER_INFO_1524(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1524 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2209|   }
# 2210|   
# 2211|-> static void ndr_print_flags_SERVER_INFO_1524(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1524 *r)
# 2212|   {
# 2213|   	ndr_print_SERVER_INFO_1524(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def571]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2251:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1525’ defined but not used
# 2251 | static void ndr_print_flags_SERVER_INFO_1525(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1525 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2249|   }
# 2250|   
# 2251|-> static void ndr_print_flags_SERVER_INFO_1525(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1525 *r)
# 2252|   {
# 2253|   	ndr_print_SERVER_INFO_1525(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def572]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1528’ defined but not used
# 2291 | static void ndr_print_flags_SERVER_INFO_1528(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1528 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2289|   }
# 2290|   
# 2291|-> static void ndr_print_flags_SERVER_INFO_1528(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1528 *r)
# 2292|   {
# 2293|   	ndr_print_SERVER_INFO_1528(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def573]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1529’ defined but not used
# 2331 | static void ndr_print_flags_SERVER_INFO_1529(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1529 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2329|   }
# 2330|   
# 2331|-> static void ndr_print_flags_SERVER_INFO_1529(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1529 *r)
# 2332|   {
# 2333|   	ndr_print_SERVER_INFO_1529(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def574]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1530’ defined but not used
# 2371 | static void ndr_print_flags_SERVER_INFO_1530(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1530 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2369|   }
# 2370|   
# 2371|-> static void ndr_print_flags_SERVER_INFO_1530(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1530 *r)
# 2372|   {
# 2373|   	ndr_print_SERVER_INFO_1530(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def575]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1533’ defined but not used
# 2411 | static void ndr_print_flags_SERVER_INFO_1533(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1533 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2409|   }
# 2410|   
# 2411|-> static void ndr_print_flags_SERVER_INFO_1533(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1533 *r)
# 2412|   {
# 2413|   	ndr_print_SERVER_INFO_1533(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def576]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1534’ defined but not used
# 2451 | static void ndr_print_flags_SERVER_INFO_1534(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1534 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2449|   }
# 2450|   
# 2451|-> static void ndr_print_flags_SERVER_INFO_1534(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1534 *r)
# 2452|   {
# 2453|   	ndr_print_SERVER_INFO_1534(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def577]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1535’ defined but not used
# 2491 | static void ndr_print_flags_SERVER_INFO_1535(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1535 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2489|   }
# 2490|   
# 2491|-> static void ndr_print_flags_SERVER_INFO_1535(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1535 *r)
# 2492|   {
# 2493|   	ndr_print_SERVER_INFO_1535(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def578]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1536’ defined but not used
# 2531 | static void ndr_print_flags_SERVER_INFO_1536(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1536 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2529|   }
# 2530|   
# 2531|-> static void ndr_print_flags_SERVER_INFO_1536(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1536 *r)
# 2532|   {
# 2533|   	ndr_print_SERVER_INFO_1536(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def579]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1537’ defined but not used
# 2571 | static void ndr_print_flags_SERVER_INFO_1537(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1537 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2569|   }
# 2570|   
# 2571|-> static void ndr_print_flags_SERVER_INFO_1537(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1537 *r)
# 2572|   {
# 2573|   	ndr_print_SERVER_INFO_1537(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def580]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1538’ defined but not used
# 2611 | static void ndr_print_flags_SERVER_INFO_1538(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1538 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2609|   }
# 2610|   
# 2611|-> static void ndr_print_flags_SERVER_INFO_1538(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1538 *r)
# 2612|   {
# 2613|   	ndr_print_SERVER_INFO_1538(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def581]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1539’ defined but not used
# 2651 | static void ndr_print_flags_SERVER_INFO_1539(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1539 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2649|   }
# 2650|   
# 2651|-> static void ndr_print_flags_SERVER_INFO_1539(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1539 *r)
# 2652|   {
# 2653|   	ndr_print_SERVER_INFO_1539(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def582]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1540’ defined but not used
# 2691 | static void ndr_print_flags_SERVER_INFO_1540(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1540 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2689|   }
# 2690|   
# 2691|-> static void ndr_print_flags_SERVER_INFO_1540(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1540 *r)
# 2692|   {
# 2693|   	ndr_print_SERVER_INFO_1540(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def583]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1541’ defined but not used
# 2731 | static void ndr_print_flags_SERVER_INFO_1541(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1541 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2729|   }
# 2730|   
# 2731|-> static void ndr_print_flags_SERVER_INFO_1541(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1541 *r)
# 2732|   {
# 2733|   	ndr_print_SERVER_INFO_1541(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def584]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1542’ defined but not used
# 2771 | static void ndr_print_flags_SERVER_INFO_1542(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1542 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2769|   }
# 2770|   
# 2771|-> static void ndr_print_flags_SERVER_INFO_1542(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1542 *r)
# 2772|   {
# 2773|   	ndr_print_SERVER_INFO_1542(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def585]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1543’ defined but not used
# 2811 | static void ndr_print_flags_SERVER_INFO_1543(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1543 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2809|   }
# 2810|   
# 2811|-> static void ndr_print_flags_SERVER_INFO_1543(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1543 *r)
# 2812|   {
# 2813|   	ndr_print_SERVER_INFO_1543(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def586]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1544’ defined but not used
# 2851 | static void ndr_print_flags_SERVER_INFO_1544(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1544 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2849|   }
# 2850|   
# 2851|-> static void ndr_print_flags_SERVER_INFO_1544(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1544 *r)
# 2852|   {
# 2853|   	ndr_print_SERVER_INFO_1544(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def587]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1545’ defined but not used
# 2891 | static void ndr_print_flags_SERVER_INFO_1545(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1545 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2889|   }
# 2890|   
# 2891|-> static void ndr_print_flags_SERVER_INFO_1545(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1545 *r)
# 2892|   {
# 2893|   	ndr_print_SERVER_INFO_1545(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def588]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1546’ defined but not used
# 2931 | static void ndr_print_flags_SERVER_INFO_1546(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1546 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2929|   }
# 2930|   
# 2931|-> static void ndr_print_flags_SERVER_INFO_1546(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1546 *r)
# 2932|   {
# 2933|   	ndr_print_SERVER_INFO_1546(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def589]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1547’ defined but not used
# 2971 | static void ndr_print_flags_SERVER_INFO_1547(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1547 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2969|   }
# 2970|   
# 2971|-> static void ndr_print_flags_SERVER_INFO_1547(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1547 *r)
# 2972|   {
# 2973|   	ndr_print_SERVER_INFO_1547(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def590]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1548’ defined but not used
# 3011 | static void ndr_print_flags_SERVER_INFO_1548(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1548 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3009|   }
# 3010|   
# 3011|-> static void ndr_print_flags_SERVER_INFO_1548(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1548 *r)
# 3012|   {
# 3013|   	ndr_print_SERVER_INFO_1548(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def591]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3051:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1549’ defined but not used
# 3051 | static void ndr_print_flags_SERVER_INFO_1549(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1549 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3049|   }
# 3050|   
# 3051|-> static void ndr_print_flags_SERVER_INFO_1549(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1549 *r)
# 3052|   {
# 3053|   	ndr_print_SERVER_INFO_1549(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def592]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3091:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1550’ defined but not used
# 3091 | static void ndr_print_flags_SERVER_INFO_1550(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1550 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3089|   }
# 3090|   
# 3091|-> static void ndr_print_flags_SERVER_INFO_1550(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1550 *r)
# 3092|   {
# 3093|   	ndr_print_SERVER_INFO_1550(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def593]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3131:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1552’ defined but not used
# 3131 | static void ndr_print_flags_SERVER_INFO_1552(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1552 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3129|   }
# 3130|   
# 3131|-> static void ndr_print_flags_SERVER_INFO_1552(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1552 *r)
# 3132|   {
# 3133|   	ndr_print_SERVER_INFO_1552(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def594]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3171:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1553’ defined but not used
# 3171 | static void ndr_print_flags_SERVER_INFO_1553(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1553 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3169|   }
# 3170|   
# 3171|-> static void ndr_print_flags_SERVER_INFO_1553(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1553 *r)
# 3172|   {
# 3173|   	ndr_print_SERVER_INFO_1553(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def595]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3211:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1554’ defined but not used
# 3211 | static void ndr_print_flags_SERVER_INFO_1554(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1554 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3209|   }
# 3210|   
# 3211|-> static void ndr_print_flags_SERVER_INFO_1554(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1554 *r)
# 3212|   {
# 3213|   	ndr_print_SERVER_INFO_1554(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def596]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3251:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1555’ defined but not used
# 3251 | static void ndr_print_flags_SERVER_INFO_1555(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1555 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3249|   }
# 3250|   
# 3251|-> static void ndr_print_flags_SERVER_INFO_1555(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1555 *r)
# 3252|   {
# 3253|   	ndr_print_SERVER_INFO_1555(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def597]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1556’ defined but not used
# 3291 | static void ndr_print_flags_SERVER_INFO_1556(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1556 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3289|   }
# 3290|   
# 3291|-> static void ndr_print_flags_SERVER_INFO_1556(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1556 *r)
# 3292|   {
# 3293|   	ndr_print_SERVER_INFO_1556(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def598]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1557’ defined but not used
# 3331 | static void ndr_print_flags_SERVER_INFO_1557(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1557 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3329|   }
# 3330|   
# 3331|-> static void ndr_print_flags_SERVER_INFO_1557(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1557 *r)
# 3332|   {
# 3333|   	ndr_print_SERVER_INFO_1557(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def599]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1560’ defined but not used
# 3371 | static void ndr_print_flags_SERVER_INFO_1560(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1560 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3369|   }
# 3370|   
# 3371|-> static void ndr_print_flags_SERVER_INFO_1560(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1560 *r)
# 3372|   {
# 3373|   	ndr_print_SERVER_INFO_1560(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def600]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1561’ defined but not used
# 3411 | static void ndr_print_flags_SERVER_INFO_1561(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1561 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3409|   }
# 3410|   
# 3411|-> static void ndr_print_flags_SERVER_INFO_1561(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1561 *r)
# 3412|   {
# 3413|   	ndr_print_SERVER_INFO_1561(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def601]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1562’ defined but not used
# 3451 | static void ndr_print_flags_SERVER_INFO_1562(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1562 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3449|   }
# 3450|   
# 3451|-> static void ndr_print_flags_SERVER_INFO_1562(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1562 *r)
# 3452|   {
# 3453|   	ndr_print_SERVER_INFO_1562(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def602]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1563’ defined but not used
# 3491 | static void ndr_print_flags_SERVER_INFO_1563(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1563 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3489|   }
# 3490|   
# 3491|-> static void ndr_print_flags_SERVER_INFO_1563(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1563 *r)
# 3492|   {
# 3493|   	ndr_print_SERVER_INFO_1563(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def603]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1564’ defined but not used
# 3531 | static void ndr_print_flags_SERVER_INFO_1564(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1564 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3529|   }
# 3530|   
# 3531|-> static void ndr_print_flags_SERVER_INFO_1564(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1564 *r)
# 3532|   {
# 3533|   	ndr_print_SERVER_INFO_1564(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def604]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1565’ defined but not used
# 3571 | static void ndr_print_flags_SERVER_INFO_1565(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1565 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3569|   }
# 3570|   
# 3571|-> static void ndr_print_flags_SERVER_INFO_1565(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1565 *r)
# 3572|   {
# 3573|   	ndr_print_SERVER_INFO_1565(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def605]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1566’ defined but not used
# 3611 | static void ndr_print_flags_SERVER_INFO_1566(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1566 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3609|   }
# 3610|   
# 3611|-> static void ndr_print_flags_SERVER_INFO_1566(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1566 *r)
# 3612|   {
# 3613|   	ndr_print_SERVER_INFO_1566(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def606]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1567’ defined but not used
# 3651 | static void ndr_print_flags_SERVER_INFO_1567(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1567 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3649|   }
# 3650|   
# 3651|-> static void ndr_print_flags_SERVER_INFO_1567(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1567 *r)
# 3652|   {
# 3653|   	ndr_print_SERVER_INFO_1567(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def607]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1568’ defined but not used
# 3691 | static void ndr_print_flags_SERVER_INFO_1568(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1568 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3689|   }
# 3690|   
# 3691|-> static void ndr_print_flags_SERVER_INFO_1568(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1568 *r)
# 3692|   {
# 3693|   	ndr_print_SERVER_INFO_1568(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def608]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1569’ defined but not used
# 3731 | static void ndr_print_flags_SERVER_INFO_1569(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1569 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3729|   }
# 3730|   
# 3731|-> static void ndr_print_flags_SERVER_INFO_1569(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1569 *r)
# 3732|   {
# 3733|   	ndr_print_SERVER_INFO_1569(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def609]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1570’ defined but not used
# 3771 | static void ndr_print_flags_SERVER_INFO_1570(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1570 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3769|   }
# 3770|   
# 3771|-> static void ndr_print_flags_SERVER_INFO_1570(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1570 *r)
# 3772|   {
# 3773|   	ndr_print_SERVER_INFO_1570(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def610]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1571’ defined but not used
# 3811 | static void ndr_print_flags_SERVER_INFO_1571(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1571 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3809|   }
# 3810|   
# 3811|-> static void ndr_print_flags_SERVER_INFO_1571(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1571 *r)
# 3812|   {
# 3813|   	ndr_print_SERVER_INFO_1571(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def611]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1572’ defined but not used
# 3851 | static void ndr_print_flags_SERVER_INFO_1572(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1572 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3849|   }
# 3850|   
# 3851|-> static void ndr_print_flags_SERVER_INFO_1572(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1572 *r)
# 3852|   {
# 3853|   	ndr_print_SERVER_INFO_1572(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def612]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1573’ defined but not used
# 3891 | static void ndr_print_flags_SERVER_INFO_1573(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1573 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3889|   }
# 3890|   
# 3891|-> static void ndr_print_flags_SERVER_INFO_1573(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1573 *r)
# 3892|   {
# 3893|   	ndr_print_SERVER_INFO_1573(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def613]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1574’ defined but not used
# 3931 | static void ndr_print_flags_SERVER_INFO_1574(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1574 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3929|   }
# 3930|   
# 3931|-> static void ndr_print_flags_SERVER_INFO_1574(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1574 *r)
# 3932|   {
# 3933|   	ndr_print_SERVER_INFO_1574(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def614]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1575’ defined but not used
# 3971 | static void ndr_print_flags_SERVER_INFO_1575(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1575 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3969|   }
# 3970|   
# 3971|-> static void ndr_print_flags_SERVER_INFO_1575(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1575 *r)
# 3972|   {
# 3973|   	ndr_print_SERVER_INFO_1575(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def615]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1576’ defined but not used
# 4011 | static void ndr_print_flags_SERVER_INFO_1576(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1576 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4009|   }
# 4010|   
# 4011|-> static void ndr_print_flags_SERVER_INFO_1576(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1576 *r)
# 4012|   {
# 4013|   	ndr_print_SERVER_INFO_1576(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def616]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4051:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1577’ defined but not used
# 4051 | static void ndr_print_flags_SERVER_INFO_1577(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1577 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4049|   }
# 4050|   
# 4051|-> static void ndr_print_flags_SERVER_INFO_1577(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1577 *r)
# 4052|   {
# 4053|   	ndr_print_SERVER_INFO_1577(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def617]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4091:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1578’ defined but not used
# 4091 | static void ndr_print_flags_SERVER_INFO_1578(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1578 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4089|   }
# 4090|   
# 4091|-> static void ndr_print_flags_SERVER_INFO_1578(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1578 *r)
# 4092|   {
# 4093|   	ndr_print_SERVER_INFO_1578(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def618]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4131:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1579’ defined but not used
# 4131 | static void ndr_print_flags_SERVER_INFO_1579(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1579 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4129|   }
# 4130|   
# 4131|-> static void ndr_print_flags_SERVER_INFO_1579(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1579 *r)
# 4132|   {
# 4133|   	ndr_print_SERVER_INFO_1579(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def619]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4171:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1580’ defined but not used
# 4171 | static void ndr_print_flags_SERVER_INFO_1580(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1580 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4169|   }
# 4170|   
# 4171|-> static void ndr_print_flags_SERVER_INFO_1580(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1580 *r)
# 4172|   {
# 4173|   	ndr_print_SERVER_INFO_1580(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def620]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4211:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1581’ defined but not used
# 4211 | static void ndr_print_flags_SERVER_INFO_1581(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1581 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4209|   }
# 4210|   
# 4211|-> static void ndr_print_flags_SERVER_INFO_1581(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1581 *r)
# 4212|   {
# 4213|   	ndr_print_SERVER_INFO_1581(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def621]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4251:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1582’ defined but not used
# 4251 | static void ndr_print_flags_SERVER_INFO_1582(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1582 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4249|   }
# 4250|   
# 4251|-> static void ndr_print_flags_SERVER_INFO_1582(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1582 *r)
# 4252|   {
# 4253|   	ndr_print_SERVER_INFO_1582(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def622]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1583’ defined but not used
# 4291 | static void ndr_print_flags_SERVER_INFO_1583(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1583 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4289|   }
# 4290|   
# 4291|-> static void ndr_print_flags_SERVER_INFO_1583(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1583 *r)
# 4292|   {
# 4293|   	ndr_print_SERVER_INFO_1583(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def623]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1584’ defined but not used
# 4331 | static void ndr_print_flags_SERVER_INFO_1584(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1584 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4329|   }
# 4330|   
# 4331|-> static void ndr_print_flags_SERVER_INFO_1584(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1584 *r)
# 4332|   {
# 4333|   	ndr_print_SERVER_INFO_1584(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def624]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1585’ defined but not used
# 4371 | static void ndr_print_flags_SERVER_INFO_1585(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1585 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4369|   }
# 4370|   
# 4371|-> static void ndr_print_flags_SERVER_INFO_1585(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1585 *r)
# 4372|   {
# 4373|   	ndr_print_SERVER_INFO_1585(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def625]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1586’ defined but not used
# 4411 | static void ndr_print_flags_SERVER_INFO_1586(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1586 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4409|   }
# 4410|   
# 4411|-> static void ndr_print_flags_SERVER_INFO_1586(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1586 *r)
# 4412|   {
# 4413|   	ndr_print_SERVER_INFO_1586(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def626]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1587’ defined but not used
# 4451 | static void ndr_print_flags_SERVER_INFO_1587(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1587 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4449|   }
# 4450|   
# 4451|-> static void ndr_print_flags_SERVER_INFO_1587(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1587 *r)
# 4452|   {
# 4453|   	ndr_print_SERVER_INFO_1587(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def627]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1588’ defined but not used
# 4491 | static void ndr_print_flags_SERVER_INFO_1588(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1588 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4489|   }
# 4490|   
# 4491|-> static void ndr_print_flags_SERVER_INFO_1588(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1588 *r)
# 4492|   {
# 4493|   	ndr_print_SERVER_INFO_1588(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def628]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1590’ defined but not used
# 4531 | static void ndr_print_flags_SERVER_INFO_1590(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1590 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4529|   }
# 4530|   
# 4531|-> static void ndr_print_flags_SERVER_INFO_1590(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1590 *r)
# 4532|   {
# 4533|   	ndr_print_SERVER_INFO_1590(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def629]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1591’ defined but not used
# 4571 | static void ndr_print_flags_SERVER_INFO_1591(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1591 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4569|   }
# 4570|   
# 4571|-> static void ndr_print_flags_SERVER_INFO_1591(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1591 *r)
# 4572|   {
# 4573|   	ndr_print_SERVER_INFO_1591(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def630]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1592’ defined but not used
# 4611 | static void ndr_print_flags_SERVER_INFO_1592(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1592 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4609|   }
# 4610|   
# 4611|-> static void ndr_print_flags_SERVER_INFO_1592(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1592 *r)
# 4612|   {
# 4613|   	ndr_print_SERVER_INFO_1592(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def631]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1593’ defined but not used
# 4651 | static void ndr_print_flags_SERVER_INFO_1593(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1593 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4649|   }
# 4650|   
# 4651|-> static void ndr_print_flags_SERVER_INFO_1593(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1593 *r)
# 4652|   {
# 4653|   	ndr_print_SERVER_INFO_1593(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def632]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1594’ defined but not used
# 4691 | static void ndr_print_flags_SERVER_INFO_1594(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1594 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4689|   }
# 4690|   
# 4691|-> static void ndr_print_flags_SERVER_INFO_1594(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1594 *r)
# 4692|   {
# 4693|   	ndr_print_SERVER_INFO_1594(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def633]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1595’ defined but not used
# 4731 | static void ndr_print_flags_SERVER_INFO_1595(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1595 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4729|   }
# 4730|   
# 4731|-> static void ndr_print_flags_SERVER_INFO_1595(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1595 *r)
# 4732|   {
# 4733|   	ndr_print_SERVER_INFO_1595(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def634]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1596’ defined but not used
# 4771 | static void ndr_print_flags_SERVER_INFO_1596(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1596 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4769|   }
# 4770|   
# 4771|-> static void ndr_print_flags_SERVER_INFO_1596(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1596 *r)
# 4772|   {
# 4773|   	ndr_print_SERVER_INFO_1596(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def635]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1597’ defined but not used
# 4811 | static void ndr_print_flags_SERVER_INFO_1597(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1597 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4809|   }
# 4810|   
# 4811|-> static void ndr_print_flags_SERVER_INFO_1597(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1597 *r)
# 4812|   {
# 4813|   	ndr_print_SERVER_INFO_1597(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def636]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1598’ defined but not used
# 4851 | static void ndr_print_flags_SERVER_INFO_1598(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1598 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4849|   }
# 4850|   
# 4851|-> static void ndr_print_flags_SERVER_INFO_1598(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1598 *r)
# 4852|   {
# 4853|   	ndr_print_SERVER_INFO_1598(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def637]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1599’ defined but not used
# 4891 | static void ndr_print_flags_SERVER_INFO_1599(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1599 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4889|   }
# 4890|   
# 4891|-> static void ndr_print_flags_SERVER_INFO_1599(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1599 *r)
# 4892|   {
# 4893|   	ndr_print_SERVER_INFO_1599(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def638]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1600’ defined but not used
# 4931 | static void ndr_print_flags_SERVER_INFO_1600(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1600 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4929|   }
# 4930|   
# 4931|-> static void ndr_print_flags_SERVER_INFO_1600(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1600 *r)
# 4932|   {
# 4933|   	ndr_print_SERVER_INFO_1600(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def639]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1601’ defined but not used
# 4971 | static void ndr_print_flags_SERVER_INFO_1601(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1601 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4969|   }
# 4970|   
# 4971|-> static void ndr_print_flags_SERVER_INFO_1601(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1601 *r)
# 4972|   {
# 4973|   	ndr_print_SERVER_INFO_1601(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def640]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1602’ defined but not used
# 5011 | static void ndr_print_flags_SERVER_INFO_1602(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1602 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5009|   }
# 5010|   
# 5011|-> static void ndr_print_flags_SERVER_INFO_1602(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct SERVER_INFO_1602 *r)
# 5012|   {
# 5013|   	ndr_print_SERVER_INFO_1602(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def641]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5059:13: warning[-Wunused-function]: ‘ndr_print_flags_WKSTA_INFO_100’ defined but not used
# 5059 | static void ndr_print_flags_WKSTA_INFO_100(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct WKSTA_INFO_100 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5057|   }
# 5058|   
# 5059|-> static void ndr_print_flags_WKSTA_INFO_100(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct WKSTA_INFO_100 *r)
# 5060|   {
# 5061|   	ndr_print_WKSTA_INFO_100(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def642]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5113:13: warning[-Wunused-function]: ‘ndr_print_flags_WKSTA_INFO_101’ defined but not used
# 5113 | static void ndr_print_flags_WKSTA_INFO_101(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct WKSTA_INFO_101 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5111|   }
# 5112|   
# 5113|-> static void ndr_print_flags_WKSTA_INFO_101(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct WKSTA_INFO_101 *r)
# 5114|   {
# 5115|   	ndr_print_WKSTA_INFO_101(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def643]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5170:13: warning[-Wunused-function]: ‘ndr_print_flags_WKSTA_INFO_102’ defined but not used
# 5170 | static void ndr_print_flags_WKSTA_INFO_102(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct WKSTA_INFO_102 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5168|   }
# 5169|   
# 5170|-> static void ndr_print_flags_WKSTA_INFO_102(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct WKSTA_INFO_102 *r)
# 5171|   {
# 5172|   	ndr_print_WKSTA_INFO_102(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def644]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5270:13: warning[-Wunused-function]: ‘ndr_print_flags_DOMAIN_CONTROLLER_INFO’ defined but not used
# 5270 | static void ndr_print_flags_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct DOMAIN_CONTROLLER_INFO *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5268|   }
# 5269|   
# 5270|-> static void ndr_print_flags_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct DOMAIN_CONTROLLER_INFO *r)
# 5271|   {
# 5272|   	ndr_print_DOMAIN_CONTROLLER_INFO(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def645]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5318:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_0’ defined but not used
# 5318 | static void ndr_print_flags_USER_INFO_0(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_0 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5316|   }
# 5317|   
# 5318|-> static void ndr_print_flags_USER_INFO_0(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_0 *r)
# 5319|   {
# 5320|   	ndr_print_USER_INFO_0(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def646]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5372:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1’ defined but not used
# 5372 | static void ndr_print_flags_USER_INFO_1(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5370|   }
# 5371|   
# 5372|-> static void ndr_print_flags_USER_INFO_1(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1 *r)
# 5373|   {
# 5374|   	ndr_print_USER_INFO_1(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def647]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5481:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_2’ defined but not used
# 5481 | static void ndr_print_flags_USER_INFO_2(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_2 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5479|   }
# 5480|   
# 5481|-> static void ndr_print_flags_USER_INFO_2(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_2 *r)
# 5482|   {
# 5483|   	ndr_print_USER_INFO_2(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def648]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5619:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_3’ defined but not used
# 5619 | static void ndr_print_flags_USER_INFO_3(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_3 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5617|   }
# 5618|   
# 5619|-> static void ndr_print_flags_USER_INFO_3(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_3 *r)
# 5620|   {
# 5621|   	ndr_print_USER_INFO_3(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def649]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5779:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_4’ defined but not used
# 5779 | static void ndr_print_flags_USER_INFO_4(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_4 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5777|   }
# 5778|   
# 5779|-> static void ndr_print_flags_USER_INFO_4(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_4 *r)
# 5780|   {
# 5781|   	ndr_print_USER_INFO_4(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def650]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5863:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_10’ defined but not used
# 5863 | static void ndr_print_flags_USER_INFO_10(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_10 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5861|   }
# 5862|   
# 5863|-> static void ndr_print_flags_USER_INFO_10(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_10 *r)
# 5864|   {
# 5865|   	ndr_print_USER_INFO_10(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def651]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5960:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_11’ defined but not used
# 5960 | static void ndr_print_flags_USER_INFO_11(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_11 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 5958|   }
# 5959|   
# 5960|-> static void ndr_print_flags_USER_INFO_11(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_11 *r)
# 5961|   {
# 5962|   	ndr_print_USER_INFO_11(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def652]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6032:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_20’ defined but not used
# 6032 | static void ndr_print_flags_USER_INFO_20(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_20 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6030|   }
# 6031|   
# 6032|-> static void ndr_print_flags_USER_INFO_20(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_20 *r)
# 6033|   {
# 6034|   	ndr_print_USER_INFO_20(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def653]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6079:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_21’ defined but not used
# 6079 | static void ndr_print_flags_USER_INFO_21(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_21 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6077|   }
# 6078|   
# 6079|-> static void ndr_print_flags_USER_INFO_21(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_21 *r)
# 6080|   {
# 6081|   	ndr_print_USER_INFO_21(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def654]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6184:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_22’ defined but not used
# 6184 | static void ndr_print_flags_USER_INFO_22(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_22 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6182|   }
# 6183|   
# 6184|-> static void ndr_print_flags_USER_INFO_22(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_22 *r)
# 6185|   {
# 6186|   	ndr_print_USER_INFO_22(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def655]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6276:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_23’ defined but not used
# 6276 | static void ndr_print_flags_USER_INFO_23(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_23 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6274|   }
# 6275|   
# 6276|-> static void ndr_print_flags_USER_INFO_23(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_23 *r)
# 6277|   {
# 6278|   	ndr_print_USER_INFO_23(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def656]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6325:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1003’ defined but not used
# 6325 | static void ndr_print_flags_USER_INFO_1003(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1003 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6323|   }
# 6324|   
# 6325|-> static void ndr_print_flags_USER_INFO_1003(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1003 *r)
# 6326|   {
# 6327|   	ndr_print_USER_INFO_1003(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def657]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6365:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1005’ defined but not used
# 6365 | static void ndr_print_flags_USER_INFO_1005(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1005 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6363|   }
# 6364|   
# 6365|-> static void ndr_print_flags_USER_INFO_1005(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1005 *r)
# 6366|   {
# 6367|   	ndr_print_USER_INFO_1005(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def658]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6405:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1006’ defined but not used
# 6405 | static void ndr_print_flags_USER_INFO_1006(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1006 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6403|   }
# 6404|   
# 6405|-> static void ndr_print_flags_USER_INFO_1006(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1006 *r)
# 6406|   {
# 6407|   	ndr_print_USER_INFO_1006(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def659]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6445:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1007’ defined but not used
# 6445 | static void ndr_print_flags_USER_INFO_1007(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1007 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6443|   }
# 6444|   
# 6445|-> static void ndr_print_flags_USER_INFO_1007(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1007 *r)
# 6446|   {
# 6447|   	ndr_print_USER_INFO_1007(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def660]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6485:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1008’ defined but not used
# 6485 | static void ndr_print_flags_USER_INFO_1008(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1008 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6483|   }
# 6484|   
# 6485|-> static void ndr_print_flags_USER_INFO_1008(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1008 *r)
# 6486|   {
# 6487|   	ndr_print_USER_INFO_1008(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def661]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6525:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1009’ defined but not used
# 6525 | static void ndr_print_flags_USER_INFO_1009(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1009 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6523|   }
# 6524|   
# 6525|-> static void ndr_print_flags_USER_INFO_1009(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1009 *r)
# 6526|   {
# 6527|   	ndr_print_USER_INFO_1009(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def662]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6565:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1010’ defined but not used
# 6565 | static void ndr_print_flags_USER_INFO_1010(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1010 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6563|   }
# 6564|   
# 6565|-> static void ndr_print_flags_USER_INFO_1010(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1010 *r)
# 6566|   {
# 6567|   	ndr_print_USER_INFO_1010(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def663]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6605:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1011’ defined but not used
# 6605 | static void ndr_print_flags_USER_INFO_1011(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1011 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6603|   }
# 6604|   
# 6605|-> static void ndr_print_flags_USER_INFO_1011(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1011 *r)
# 6606|   {
# 6607|   	ndr_print_USER_INFO_1011(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def664]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6645:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1012’ defined but not used
# 6645 | static void ndr_print_flags_USER_INFO_1012(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1012 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6643|   }
# 6644|   
# 6645|-> static void ndr_print_flags_USER_INFO_1012(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1012 *r)
# 6646|   {
# 6647|   	ndr_print_USER_INFO_1012(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def665]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6685:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1013’ defined but not used
# 6685 | static void ndr_print_flags_USER_INFO_1013(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1013 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6683|   }
# 6684|   
# 6685|-> static void ndr_print_flags_USER_INFO_1013(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1013 *r)
# 6686|   {
# 6687|   	ndr_print_USER_INFO_1013(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def666]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6725:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1014’ defined but not used
# 6725 | static void ndr_print_flags_USER_INFO_1014(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1014 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6723|   }
# 6724|   
# 6725|-> static void ndr_print_flags_USER_INFO_1014(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1014 *r)
# 6726|   {
# 6727|   	ndr_print_USER_INFO_1014(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def667]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6765:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1017’ defined but not used
# 6765 | static void ndr_print_flags_USER_INFO_1017(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1017 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6763|   }
# 6764|   
# 6765|-> static void ndr_print_flags_USER_INFO_1017(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1017 *r)
# 6766|   {
# 6767|   	ndr_print_USER_INFO_1017(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def668]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6805:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1018’ defined but not used
# 6805 | static void ndr_print_flags_USER_INFO_1018(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1018 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6803|   }
# 6804|   
# 6805|-> static void ndr_print_flags_USER_INFO_1018(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1018 *r)
# 6806|   {
# 6807|   	ndr_print_USER_INFO_1018(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def669]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6863:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1020’ defined but not used
# 6863 | static void ndr_print_flags_USER_INFO_1020(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1020 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6861|   }
# 6862|   
# 6863|-> static void ndr_print_flags_USER_INFO_1020(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1020 *r)
# 6864|   {
# 6865|   	ndr_print_USER_INFO_1020(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def670]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6909:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1023’ defined but not used
# 6909 | static void ndr_print_flags_USER_INFO_1023(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1023 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6907|   }
# 6908|   
# 6909|-> static void ndr_print_flags_USER_INFO_1023(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1023 *r)
# 6910|   {
# 6911|   	ndr_print_USER_INFO_1023(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def671]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6949:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1024’ defined but not used
# 6949 | static void ndr_print_flags_USER_INFO_1024(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1024 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6947|   }
# 6948|   
# 6949|-> static void ndr_print_flags_USER_INFO_1024(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1024 *r)
# 6950|   {
# 6951|   	ndr_print_USER_INFO_1024(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def672]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6989:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1025’ defined but not used
# 6989 | static void ndr_print_flags_USER_INFO_1025(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1025 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 6987|   }
# 6988|   
# 6989|-> static void ndr_print_flags_USER_INFO_1025(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1025 *r)
# 6990|   {
# 6991|   	ndr_print_USER_INFO_1025(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def673]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7029:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1051’ defined but not used
# 7029 | static void ndr_print_flags_USER_INFO_1051(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1051 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7027|   }
# 7028|   
# 7029|-> static void ndr_print_flags_USER_INFO_1051(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1051 *r)
# 7030|   {
# 7031|   	ndr_print_USER_INFO_1051(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def674]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7069:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1052’ defined but not used
# 7069 | static void ndr_print_flags_USER_INFO_1052(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1052 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7067|   }
# 7068|   
# 7069|-> static void ndr_print_flags_USER_INFO_1052(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1052 *r)
# 7070|   {
# 7071|   	ndr_print_USER_INFO_1052(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def675]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7109:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1053’ defined but not used
# 7109 | static void ndr_print_flags_USER_INFO_1053(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1053 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7107|   }
# 7108|   
# 7109|-> static void ndr_print_flags_USER_INFO_1053(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_1053 *r)
# 7110|   {
# 7111|   	ndr_print_USER_INFO_1053(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def676]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7221:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_X’ defined but not used
# 7221 | static void ndr_print_flags_USER_INFO_X(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_X *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7219|   }
# 7220|   
# 7221|-> static void ndr_print_flags_USER_INFO_X(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct USER_INFO_X *r)
# 7222|   {
# 7223|   	ndr_print_USER_INFO_X(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def677]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7294:13: warning[-Wunused-function]: ‘ndr_print_flags_GROUP_USERS_INFO_0’ defined but not used
# 7294 | static void ndr_print_flags_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct GROUP_USERS_INFO_0 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7292|   }
# 7293|   
# 7294|-> static void ndr_print_flags_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct GROUP_USERS_INFO_0 *r)
# 7295|   {
# 7296|   	ndr_print_GROUP_USERS_INFO_0(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def678]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7336:13: warning[-Wunused-function]: ‘ndr_print_flags_GROUP_USERS_INFO_1’ defined but not used
# 7336 | static void ndr_print_flags_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct GROUP_USERS_INFO_1 *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7334|   }
# 7335|   
# 7336|-> static void ndr_print_flags_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct GROUP_USERS_INFO_1 *r)
# 7337|   {
# 7338|   	ndr_print_GROUP_USERS_INFO_1(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def679]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7387:13: warning[-Wunused-function]: ‘ndr_print_flags_NET_DISPLAY_USER’ defined but not used
# 7387 | static void ndr_print_flags_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct NET_DISPLAY_USER *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7385|   }
# 7386|   
# 7387|-> static void ndr_print_flags_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct NET_DISPLAY_USER *r)
# 7388|   {
# 7389|   	ndr_print_NET_DISPLAY_USER(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def680]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7440:13: warning[-Wunused-function]: ‘ndr_print_flags_NET_DISPLAY_MACHINE’ defined but not used
# 7440 | static void ndr_print_flags_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct NET_DISPLAY_MACHINE *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7438|   }
# 7439|   
# 7440|-> static void ndr_print_flags_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct NET_DISPLAY_MACHINE *r)
# 7441|   {
# 7442|   	ndr_print_NET_DISPLAY_MACHINE(ndr, name, r);

Error: COMPILER_WARNING (CWE-1164): [#def681]
samba-4.22.1/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7492:13: warning[-Wunused-function]: ‘ndr_print_flags_NET_DISPLAY_GROUP’ defined but not used
# 7492 | static void ndr_print_flags_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct NET_DISPLAY_GROUP *r)
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 7490|   }
# 7491|   
# 7492|-> static void ndr_print_flags_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct NET_DISPLAY_GROUP *r)
# 7493|   {
# 7494|   	ndr_print_NET_DISPLAY_GROUP(ndr, name, r);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def682]
samba-4.22.1/bin/default/source3/modules/getdate.c:1303:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.22.1/bin/default/source3/modules/getdate.c:1261:6: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/source3/modules/getdate.c:1264:31: branch_true: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1291:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.22.1/bin/default/source3/modules/getdate.c:1293:7: branch_false: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1301:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.22.1/bin/default/source3/modules/getdate.c:1303:9: branch_false: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1303:9: danger: use of uninitialized value ‘yyss’ here

Error: GCC_ANALYZER_WARNING (CWE-457): [#def683]
samba-4.22.1/bin/default/source3/modules/getdate.c:1420:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
samba-4.22.1/bin/default/source3/modules/getdate.c:1261:6: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/source3/modules/getdate.c:1324:6: branch_false: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1324:6: branch_false: following ‘false’ branch (when ‘yystate != 2’)...
samba-4.22.1/bin/default/source3/modules/getdate.c:1327:3: branch_false: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1339:6: branch_true: following ‘true’ branch (when ‘yyn == -17’)...
samba-4.22.1/bin/default/source3/modules/getdate.c:1340:5: branch_true: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1400:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
samba-4.22.1/bin/default/source3/modules/getdate.c:1402:3: branch_false: ...to here
samba-4.22.1/bin/default/source3/modules/getdate.c:1420:3: danger: use of uninitialized value ‘*<unknown>’ here

Error: CPPCHECK_WARNING (CWE-476): [#def684]
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1668: warning[nullPointer]: Possible null pointer dereference: b
# 1666|   	yy_flush_buffer( b );
# 1667|   
# 1668|-> 	b->yy_input_file = file;
# 1669|   	b->yy_fill_buffer = 1;
# 1670|   

Error: CPPCHECK_WARNING (CWE-476): [#def685]
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1669: warning[nullPointer]: Possible null pointer dereference: b
# 1667|   
# 1668|   	b->yy_input_file = file;
# 1669|-> 	b->yy_fill_buffer = 1;
# 1670|   
# 1671|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-457): [#def686]
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1290:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1248:6: branch_true: following ‘true’ branch...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1254:28: branch_true: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1277:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1279:7: branch_false: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1288:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1290:9: branch_false: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1290:9: danger: use of uninitialized value ‘yyss’ here
# 1288|           if (! yyptr)
# 1289|             YYNOMEM;
# 1290|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 1291|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 1292|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-457): [#def687]
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1417:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(const char **)<unknown>’
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1248:6: branch_false: following ‘false’ branch...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1312:6: branch_false: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1312:6: branch_false: following ‘false’ branch (when ‘yystate != 2’)...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1315:3: branch_false: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1327:6: branch_true: following ‘true’ branch (when ‘yyn == -7’)...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1328:5: branch_true: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1397:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1399:3: branch_false: ...to here
samba-4.22.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1417:3: danger: use of uninitialized value ‘*(const char **)<unknown>’ here
# 1415|        unconditionally makes the parser a bit smaller, and it avoids a
# 1416|        GCC warning that YYVAL may be used uninitialized.  */
# 1417|->   yyval = yyvsp[1-yylen];
# 1418|   
# 1419|   

Error: CPPCHECK_WARNING (CWE-476): [#def688]
samba-4.22.1/ctdb/common/ctdb_ltdb.c:359: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  357|   
#  358|   		buf = malloc(byte_pos + 1);
#  359|-> 		memset(buf, 0, byte_pos + 1);
#  360|   		if (buf == NULL) {
#  361|   			DEBUG(DEBUG_ERR, ("Out of memory when allocating buffer of %d bytes for trackingdb\n", byte_pos + 1));

Error: COMPILER_WARNING (CWE-477): [#def689]
samba-4.22.1/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘ctdb_start_daemon’
samba-4.22.1/ctdb/server/ctdb_daemon.c:1564:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1564 |         tevent_loop_allow_nesting(ctdb->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/ctdb/server/ctdb_daemon.c:29: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1562|   		exit(1);
# 1563|   	}
# 1564|-> 	tevent_loop_allow_nesting(ctdb->ev);
# 1565|   	ctdb_tevent_trace_init();
# 1566|   	tevent_set_trace_callback(ctdb->ev, ctdb_tevent_trace, ctdb);

Error: COMPILER_WARNING (CWE-477): [#def690]
samba-4.22.1/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘switch_from_server_to_client’
samba-4.22.1/ctdb/server/ctdb_daemon.c:2265:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2265 |         tevent_loop_allow_nesting(ctdb->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 2263|   		exit(1);
# 2264|   	}
# 2265|-> 	tevent_loop_allow_nesting(ctdb->ev);
# 2266|   
# 2267|   	/* Connect to main CTDB daemon */

Error: COMPILER_WARNING (CWE-477): [#def691]
samba-4.22.1/ctdb/server/ctdbd.c: scope_hint: In function ‘main’
samba-4.22.1/ctdb/server/ctdbd.c:188:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  188 |         tevent_loop_allow_nesting(ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/ctdb/server/ctdbd.c:31: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  186|   		exit(1);
#  187|   	}
#  188|-> 	tevent_loop_allow_nesting(ev);
#  189|   
#  190|   	ctdb = ctdb_init(ev);

Error: COMPILER_WARNING (CWE-477): [#def692]
samba-4.22.1/ctdb/utils/tdb/tdb_mutex_check.c: scope_hint: In function ‘check_one’
samba-4.22.1/ctdb/utils/tdb/tdb_mutex_check.c:90:17: warning[-Wdeprecated-declarations]: ‘pthread_mutex_consistent_np’ is deprecated: pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent
#   90 |                 ret = pthread_mutex_consistent_np(m);
#      |                 ^~~
/usr/include/features.h:524: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdio.h:28: included_from: Included from here.
samba-4.22.1/ctdb/utils/tdb/tdb_mutex_check.c:20: included_from: Included from here.
/usr/include/pthread.h:859:12: note: declared here
#  859 | extern int __REDIRECT_NTH (pthread_mutex_consistent_np, (pthread_mutex_t *),
#      |            ^~~~~~~~~~~~~~
#   88|   	}
#   89|   	if (ret == EOWNERDEAD) {
#   90|-> 		ret = pthread_mutex_consistent_np(m);
#   91|   		if (ret != 0) {
#   92|   			printf("[%6d] consistent failed (%d)\n", chain, ret);

Error: COMPILER_WARNING (CWE-477): [#def693]
samba-4.22.1/examples/libsmbclient/testacl.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testacl.c:193:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#  193 |         if (smbc_init(get_auth_data_fn, debug) != 0)
#      |         ^~
samba-4.22.1/examples/libsmbclient/testacl.c:5: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#  191|   	path[sizeof(path)-1] = '\0';
#  192|   
#  193|-> 	if (smbc_init(get_auth_data_fn, debug) != 0)
#  194|   	{
#  195|   		printf("Could not initialize smbc_ library\n");

Error: COMPILER_WARNING (CWE-477): [#def694]
samba-4.22.1/examples/libsmbclient/testacl2.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testacl2.c:30:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   30 |         if (smbc_init(get_auth_data_fn, debug) != 0)
#      |         ^~
samba-4.22.1/examples/libsmbclient/testacl2.c:5: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   28|   	SMBCCTX *context;
#   29|   
#   30|-> 	if (smbc_init(get_auth_data_fn, debug) != 0)
#   31|   	{
#   32|   		printf("Could not initialize smbc_ library\n");

Error: COMPILER_WARNING (CWE-477): [#def695]
samba-4.22.1/examples/libsmbclient/testacl3.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testacl3.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   21 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testacl3.c:7: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   19|   	SMBCCTX *       context;
#   20|   
#   21|-> 	smbc_init(get_auth_data_fn, debug);
#   22|   
#   23|   	context = smbc_set_context(NULL);

Error: COMPILER_WARNING (CWE-477): [#def696]
samba-4.22.1/examples/libsmbclient/testchmod.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testchmod.c:37:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   37 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testchmod.c:5: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   35|   	}
#   36|   
#   37|-> 	smbc_init(get_auth_data_fn, debug);
#   38|   
#   39|   	if (smbc_stat(pSmbPath, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def697]
samba-4.22.1/examples/libsmbclient/testfstatvfs.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testfstatvfs.c:22:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   22 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testfstatvfs.c:8: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   20|   	struct statvfs  statvfsbuf;
#   21|   
#   22|-> 	smbc_init(get_auth_data_fn, debug);
#   23|   
#   24|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def698]
samba-4.22.1/examples/libsmbclient/testnotify.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testnotify.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testnotify.c:7: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   40|   	int count = 1000;
#   41|   
#   42|-> 	smbc_init(get_auth_data_fn, debug);
#   43|   
#   44|   	fprintf(stdout, "Path: ");

Error: COMPILER_WARNING (CWE-477): [#def699]
samba-4.22.1/examples/libsmbclient/testread.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testread.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   21 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testread.c:7: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   19|   	char *          p;
#   20|   
#   21|-> 	smbc_init(get_auth_data_fn, debug);
#   22|   
#   23|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def700]
samba-4.22.1/examples/libsmbclient/testsmbc.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testsmbc.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         err = smbc_init(get_auth_data_fn,  10); /* Initialize things */
#      |         ^~~
samba-4.22.1/examples/libsmbclient/testsmbc.c:29: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   40|   	struct stat st1, st2;
#   41|   
#   42|-> 	err = smbc_init(get_auth_data_fn,  10); /* Initialize things */
#   43|   
#   44|   	if (err < 0) {

Error: COMPILER_WARNING (CWE-477): [#def701]
samba-4.22.1/examples/libsmbclient/teststat2.c: scope_hint: In function ‘gettime’
samba-4.22.1/examples/libsmbclient/teststat2.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, 0);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/teststat2.c:1: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   40|           char a_time[32];
#   41|   
#   42|->         smbc_init(get_auth_data_fn, 0);
#   43|   
#   44|           if (smbc_stat(pUrl, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def702]
samba-4.22.1/examples/libsmbclient/teststat3.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/teststat3.c:29:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   29 |         smbc_init(get_auth_data_fn, 0);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/teststat3.c:1: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   27|   
#   28|   
#   29|->         smbc_init(get_auth_data_fn, 0);
#   30|   
#   31|           if (smbc_stat(pUrl, &st1) < 0)

Error: COMPILER_WARNING (CWE-477): [#def703]
samba-4.22.1/examples/libsmbclient/teststatvfs.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/teststatvfs.c:20:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   20 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/teststatvfs.c:8: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   18|   	struct statvfs  statvfsbuf;
#   19|   
#   20|-> 	smbc_init(get_auth_data_fn, debug);
#   21|   
#   22|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def704]
samba-4.22.1/examples/libsmbclient/testtruncate.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testtruncate.c:27:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   27 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testtruncate.c:6: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   25|   	}
#   26|   
#   27|-> 	smbc_init(get_auth_data_fn, debug);
#   28|   
#   29|   	if ((fd = smbc_open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0)) < 0)

Error: COMPILER_WARNING (CWE-477): [#def705]
samba-4.22.1/examples/libsmbclient/testutime.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testutime.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testutime.c:6: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   40|   	}
#   41|   
#   42|-> 	smbc_init(get_auth_data_fn, debug);
#   43|   
#   44|   	if (smbc_stat(pSmbPath, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def706]
samba-4.22.1/examples/libsmbclient/testwrite.c: scope_hint: In function ‘main’
samba-4.22.1/examples/libsmbclient/testwrite.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   21 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.22.1/examples/libsmbclient/testwrite.c:7: included_from: Included from here.
samba-4.22.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   19|   	char *          p;
#   20|   
#   21|-> 	smbc_init(get_auth_data_fn, debug);
#   22|   
#   23|   	printf("CAUTION: This program will overwrite a file.  "

Error: CPPCHECK_WARNING (CWE-457): [#def707]
samba-4.22.1/lib/compression/lzxpress_huffman.c:219: warning[uninitvar]: Uninitialized variable: row
#  217|   		}
#  218|   		for (j = 0; j < depth; j++) {
#  219|-> 			switch (row[j]) {
#  220|   			case -3:
#  221|   				code[j] = '1';

Error: CPPCHECK_WARNING (CWE-786): [#def708]
samba-4.22.1/lib/dbwrap/dbwrap.c:184: error[negativeIndex]: Array 'locked_dbs[4]' accessed at index -1, which is out of bounds.
#  182|   
#  183|   	for (idx=lock_order-1; idx<DBWRAP_LOCK_ORDER_MAX; idx++) {
#  184|-> 		if (locked_dbs[idx] != NULL) {
#  185|   			DBG_ERR("Lock order violation: Trying %s at %d while "
#  186|   				"%s at %d is locked\n",

Error: COMPILER_WARNING (CWE-563): [#def709]
samba-4.22.1/lib/krb5_wrap/krb5_samba.h:209:24: warning[-Wunused-but-set-variable]: variable ‘key’ set but not used
#  209 |         krb5_keyblock *key = NULL;
#      |                        ^~~
#  207|   	char tmp[2 * MAX_KEYLEN + 1] = { 0, };
#  208|   	krb5_enctype enctype = 0;
#  209|-> 	krb5_keyblock *key = NULL;
#  210|   	TALLOC_CTX *frame = talloc_stackframe();
#  211|   	krb5_error_code code;

Error: COMPILER_WARNING (CWE-563): [#def710]
samba-4.22.1/lib/krb5_wrap/krb5_samba.h:212:24: warning[-Wunused-variable]: unused variable ‘ptr’
#  212 |         const uint8_t *ptr = NULL;
#      |                        ^~~
#  210|   	TALLOC_CTX *frame = talloc_stackframe();
#  211|   	krb5_error_code code;
#  212|-> 	const uint8_t *ptr = NULL;
#  213|   	unsigned len, i;
#  214|   

Error: COMPILER_WARNING (CWE-563): [#def711]
samba-4.22.1/lib/krb5_wrap/krb5_samba.h:213:18: warning[-Wunused-variable]: unused variable ‘len’
#  213 |         unsigned len, i;
#      |                  ^~~
#  211|   	krb5_error_code code;
#  212|   	const uint8_t *ptr = NULL;
#  213|-> 	unsigned len, i;
#  214|   
#  215|   	code = smb_krb5_unparse_name(frame,

Error: COMPILER_WARNING (CWE-563): [#def712]
samba-4.22.1/lib/krb5_wrap/krb5_samba.c:25: included_from: Included from here.
samba-4.22.1/lib/krb5_wrap/krb5_samba.h: scope_hint: In function ‘samba_trace_keytab_entry’
samba-4.22.1/lib/krb5_wrap/krb5_samba.h:213:23: warning[-Wunused-variable]: unused variable ‘i’
#  213 |         unsigned len, i;
#      |                       ^
#  211|   	krb5_error_code code;
#  212|   	const uint8_t *ptr = NULL;
#  213|-> 	unsigned len, i;
#  214|   
#  215|   	code = smb_krb5_unparse_name(frame,

Error: COMPILER_WARNING (CWE-477): [#def713]
samba-4.22.1/lib/ldb/common/ldb.c: scope_hint: In function ‘ldb_init’
samba-4.22.1/lib/ldb/common/ldb.c:121:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  121 |                 tevent_loop_allow_nesting(ev_ctx);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/lib/ldb/include/ldb.h:51: included_from: Included from here.
samba-4.22.1/lib/ldb/include/ldb_private.h:43: included_from: Included from here.
samba-4.22.1/lib/ldb/common/ldb.c:36: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  119|   		tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb);
#  120|   		tevent_set_max_debug_level(ev_ctx, TEVENT_DEBUG_TRACE);
#  121|-> 		tevent_loop_allow_nesting(ev_ctx);
#  122|   	}
#  123|   

Error: COMPILER_WARNING (CWE-477): [#def714]
samba-4.22.1/lib/ldb/common/ldb.c: scope_hint: In function ‘ldb_handle_new’
samba-4.22.1/lib/ldb/common/ldb.c:761:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  761 |                 tevent_loop_allow_nesting(h->event_context);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  759|   		tevent_set_debug(h->event_context, ldb_tevent_debug, ldb);
#  760|   		tevent_set_max_debug_level(h->event_context, TEVENT_DEBUG_TRACE);
#  761|-> 		tevent_loop_allow_nesting(h->event_context);
#  762|   	}
#  763|   

Error: CPPCHECK_WARNING (CWE-457): [#def715]
samba-4.22.1/lib/ldb/common/ldb_pack.c:1167: warning[uninitvar]: Uninitialized variable: i
# 1165|   		}
# 1166|   		return 0;
# 1167|-> 	} else if (i == 0) {
# 1168|   		return 0;
# 1169|   

Error: COMPILER_WARNING (CWE-477): [#def716]
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_search_against_transaction’
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c:1646:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1646 |         tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c:25: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1644|   	struct ldb_dn *base_search_dn;
# 1645|   
# 1646|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 1647|   
# 1648|   	base_search_dn

Error: COMPILER_WARNING (CWE-477): [#def717]
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_during_search’
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c:1965:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1965 |         tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1963|   	}
# 1964|   
# 1965|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 1966|   
# 1967|   	ctx.basedn

Error: COMPILER_WARNING (CWE-477): [#def718]
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_during_whole_search’
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c:2205:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2205 |         tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 2203|   	struct ldb_result *res2;
# 2204|   
# 2205|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 2206|   
# 2207|   	ctx.basedn

Error: COMPILER_WARNING (CWE-477): [#def719]
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_callback_modify_during_search’
samba-4.22.1/lib/ldb/tests/ldb_mod_op_test.c:2689:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2689 |         tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 2687|   	}
# 2688|   
# 2689|-> 	tevent_loop_allow_nesting(search_test_ctx->ldb_test_ctx->ev);
# 2690|   
# 2691|   	ctx.basedn

Error: CPPCHECK_WARNING (CWE-476): [#def720]
samba-4.22.1/lib/replace/tests/testsuite.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: x
#  170|   	x = strdup("bla");
#  171|   
#  172|-> 	cmp = strcmp("bla", x);
#  173|   	if (cmp != 0) {
#  174|   		printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n",

Error: COMPILER_WARNING (CWE-477): [#def721]
samba-4.22.1/lib/talloc/testsuite.c: scope_hint: In function ‘test_memlimit’
samba-4.22.1/lib/talloc/testsuite.c:1680:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1680 |         torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
#      |         ^~~~~~~~~~~~~~
samba-4.22.1/lib/talloc/testsuite.c:28: included_from: Included from here.
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1678|   
# 1679|   	printf("==== talloc_set_memlimit(l1, 2048)\n");
# 1680|-> 	torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
# 1681|   		"failed: setting memlimit should never fail\n");
# 1682|   

Error: COMPILER_WARNING (CWE-477): [#def722]
samba-4.22.1/lib/talloc/testsuite.c:1740:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1740 |         torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
#      |         ^~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1738|   
# 1739|   	printf("==== talloc_set_memlimit(l3, 1024)\n");
# 1740|-> 	torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
# 1741|   		"failed: setting memlimit should never fail\n");
# 1742|   

Error: COMPILER_WARNING (CWE-477): [#def723]
samba-4.22.1/lib/talloc/testsuite.c:1753:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1753 |         torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
#      |         ^~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1751|   
# 1752|   	printf("==== talloc_set_memlimit(l4, 512)\n");
# 1753|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
# 1754|   		"failed: setting memlimit should never fail\n");
# 1755|   

Error: COMPILER_WARNING (CWE-477): [#def724]
samba-4.22.1/lib/talloc/testsuite.c:1787:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1787 |         torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
#      |         ^~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1785|   
# 1786|   	printf("==== talloc_set_memlimit(l4, 512)\n");
# 1787|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
# 1788|   		"failed: setting memlimit should never fail\n");
# 1789|   

Error: COMPILER_WARNING (CWE-477): [#def725]
samba-4.22.1/lib/talloc/testsuite.c:1820:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1820 |         talloc_set_memlimit(pool, 10*1024);
#      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1818|   
# 1819|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
# 1820|-> 	talloc_set_memlimit(pool, 10*1024);
# 1821|   	for (i = 0; i < 9; i++) {
# 1822|   		printf("==== talloc_size(pool, 1024) %i/10\n", i + 1);

Error: COMPILER_WARNING (CWE-477): [#def726]
samba-4.22.1/lib/talloc/testsuite.c:1873:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1873 |         talloc_set_memlimit(pool, 11*1024);
#      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1871|   	/* Increase the memlimit */
# 1872|   	printf("==== talloc_set_memlimit(pool, 11*1024)\n");
# 1873|-> 	talloc_set_memlimit(pool, 11*1024);
# 1874|   
# 1875|   	/* The final realloc should still fail

Error: COMPILER_WARNING (CWE-477): [#def727]
samba-4.22.1/lib/talloc/testsuite.c:1885:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1885 |         talloc_set_memlimit(pool, 21*1024);
#      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1883|   
# 1884|   	printf("==== talloc_set_memlimit(pool, 21*1024)\n");
# 1885|-> 	talloc_set_memlimit(pool, 21*1024);
# 1886|   
# 1887|   	/* There's now sufficient space to move the chunk out of the pool */

Error: COMPILER_WARNING (CWE-477): [#def728]
samba-4.22.1/lib/talloc/testsuite.c:1923:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1923 |         talloc_set_memlimit(pool, 1024);
#      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1921|   
# 1922|   	printf("==== talloc_set_memlimit(pool, 1024)\n");
# 1923|-> 	talloc_set_memlimit(pool, 1024);
# 1924|   
# 1925|   	/* We should still be able to allocate up to the pool limit

Error: COMPILER_WARNING (CWE-477): [#def729]
samba-4.22.1/lib/talloc/testsuite.c:1944:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
# 1944 |         talloc_set_memlimit(pool, 10*1024);
#      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:1951:14: note: declared here
# 1951 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
#      |              ^~~~~~~~~~~~~~~~~~~
# 1942|   
# 1943|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
# 1944|-> 	talloc_set_memlimit(pool, 10*1024);
# 1945|   
# 1946|   	printf("==== talloc_size(pool, 1024)\n");

Error: COMPILER_WARNING (CWE-477): [#def730]
samba-4.22.1/lib/tevent/testsuite.c: scope_hint: In function ‘test_wrapper’
samba-4.22.1/lib/tevent/testsuite.c:1716:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
# 1716 |         wrap_ev = tevent_context_wrapper_create(
#      |         ^~~~~~~
samba-4.22.1/lib/tevent/testsuite.c:29: included_from: Included from here.
samba-4.22.1/lib/tevent/tevent.h:2875:24: note: declared here
# 2875 | struct tevent_context *_tevent_context_wrapper_create(struct tevent_context *main_ev,
#      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1714|   	torture_comment(tctx, "tevent backend '%s'\n", backend);
# 1715|   
# 1716|-> 	wrap_ev = tevent_context_wrapper_create(
# 1717|   		ev, ev,	&test_wrapper_ops, &state, struct test_wrapper_state);
# 1718|   	torture_assert_not_null_goto(tctx, wrap_ev, ok, done,

Error: COMPILER_WARNING (CWE-477): [#def731]
samba-4.22.1/lib/tevent/testsuite.c:1760:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
# 1760 |         ret2 = tevent_context_push_use(wrap_ev);
#      |         ^~~~
samba-4.22.1/lib/tevent/tevent.h:2954:6: note: declared here
# 2954 | bool _tevent_context_push_use(struct tevent_context *ev,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~
# 1758|   				  state);
# 1759|   
# 1760|-> 	ret2 = tevent_context_push_use(wrap_ev);
# 1761|   	torture_assert_goto(tctx, ret2, ok, done, "tevent_context_push_use(wrap_ev) failed\n");
# 1762|   	ret2 = tevent_context_push_use(ev);

Error: COMPILER_WARNING (CWE-477): [#def732]
samba-4.22.1/lib/tevent/testsuite.c:1762:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
# 1762 |         ret2 = tevent_context_push_use(ev);
#      |         ^~~~
samba-4.22.1/lib/tevent/tevent.h:2954:6: note: declared here
# 2954 | bool _tevent_context_push_use(struct tevent_context *ev,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~
# 1760|   	ret2 = tevent_context_push_use(wrap_ev);
# 1761|   	torture_assert_goto(tctx, ret2, ok, done, "tevent_context_push_use(wrap_ev) failed\n");
# 1762|-> 	ret2 = tevent_context_push_use(ev);
# 1763|   	torture_assert_goto(tctx, ret2, ok, pop_use, "tevent_context_push_use(ev) failed\n");
# 1764|   	tevent_context_pop_use(ev);

Error: COMPILER_WARNING (CWE-477): [#def733]
samba-4.22.1/lib/tevent/testsuite.c:1764:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1764 |         tevent_context_pop_use(ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/lib/tevent/tevent.h:2983:6: note: declared here
# 2983 | void _tevent_context_pop_use(struct tevent_context *ev,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~
# 1762|   	ret2 = tevent_context_push_use(ev);
# 1763|   	torture_assert_goto(tctx, ret2, ok, pop_use, "tevent_context_push_use(ev) failed\n");
# 1764|-> 	tevent_context_pop_use(ev);
# 1765|   	tevent_context_pop_use(wrap_ev);
# 1766|   

Error: COMPILER_WARNING (CWE-477): [#def734]
samba-4.22.1/lib/tevent/testsuite.c:1765:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1765 |         tevent_context_pop_use(wrap_ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/lib/tevent/tevent.h:2983:6: note: declared here
# 2983 | void _tevent_context_pop_use(struct tevent_context *ev,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~
# 1763|   	torture_assert_goto(tctx, ret2, ok, pop_use, "tevent_context_push_use(ev) failed\n");
# 1764|   	tevent_context_pop_use(ev);
# 1765|-> 	tevent_context_pop_use(wrap_ev);
# 1766|   
# 1767|   	ret = tevent_loop_wait(ev);

Error: COMPILER_WARNING (CWE-477): [#def735]
samba-4.22.1/lib/tevent/testsuite.c:1794:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1794 |         tevent_context_pop_use(wrap_ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/lib/tevent/tevent.h:2983:6: note: declared here
# 2983 | void _tevent_context_pop_use(struct tevent_context *ev,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~
# 1792|   	return ok;
# 1793|   pop_use:
# 1794|-> 	tevent_context_pop_use(wrap_ev);
# 1795|   	goto done;
# 1796|   }

Error: COMPILER_WARNING (CWE-477): [#def736]
samba-4.22.1/lib/tevent/testsuite.c: scope_hint: In function ‘test_free_wrapper’
samba-4.22.1/lib/tevent/testsuite.c:1889:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
# 1889 |         wrap_ev = tevent_context_wrapper_create(
#      |         ^~~~~~~
samba-4.22.1/lib/tevent/tevent.h:2875:24: note: declared here
# 2875 | struct tevent_context *_tevent_context_wrapper_create(struct tevent_context *main_ev,
#      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1887|   	torture_comment(tctx, "tevent backend '%s'\n", backend);
# 1888|   
# 1889|-> 	wrap_ev = tevent_context_wrapper_create(
# 1890|   		ev, ev,	&test_wrapper_ops, &state, struct test_wrapper_state);
# 1891|   	torture_assert_not_null_goto(tctx, wrap_ev, ok, done,

Error: CPPCHECK_WARNING (CWE-457): [#def737]
samba-4.22.1/lib/util/charset/util_unistr_w.c:47: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&c))[0]=((const unsigned char*)(src))[0],((unsigned char*)(&c))[1]=((const unsigned char*)(src))[1],&c))
#   45|   	smb_ucs2_t c;
#   46|   
#   47|-> 	for(len = 0; *(COPY_UCS2_CHAR(&c,src)); src++, len++) {
#   48|   		;
#   49|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def738]
samba-4.22.1/lib/util/charset/util_unistr_w.c:63: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&c))[0]=((const unsigned char*)(src))[0],((unsigned char*)(&c))[1]=((const unsigned char*)(src))[1],&c))
#   61|   	smb_ucs2_t c;
#   62|   
#   63|-> 	for(len = 0; (len < max) && *(COPY_UCS2_CHAR(&c,src)); src++, len++) {
#   64|   		;
#   65|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def739]
samba-4.22.1/lib/util/charset/util_unistr_w.c:77: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp))
#   75|   {
#   76|   	smb_ucs2_t cp;
#   77|-> 	while (*(COPY_UCS2_CHAR(&cp,s))) {
#   78|   		if (c == cp) {
#   79|   			return discard_const_p(smb_ucs2_t, s);

Error: CPPCHECK_WARNING (CWE-457): [#def740]
samba-4.22.1/lib/util/charset/util_unistr_w.c:110: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cp))[0]=((const unsigned char*)(p))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(p))[1],&cp))
#  108|   	p += (len - 1);
#  109|   	do {
#  110|-> 		if (c == *(COPY_UCS2_CHAR(&cp,p))) {
#  111|   			return discard_const_p(smb_ucs2_t, p);
#  112|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def741]
samba-4.22.1/lib/util/charset/util_unistr_w.c:155: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp))
#  153|   	bool ret = false;
#  154|   
#  155|-> 	while (*(COPY_UCS2_CHAR(&cp,s))) {
#  156|   		smb_ucs2_t v = tolower_m(cp);
#  157|   		if (v != cp) {

Error: CPPCHECK_WARNING (CWE-457): [#def742]
samba-4.22.1/lib/util/charset/util_unistr_w.c:177: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp))
#  175|   	smb_ucs2_t cp;
#  176|   	bool ret = false;
#  177|-> 	while (*(COPY_UCS2_CHAR(&cp,s))) {
#  178|   		smb_ucs2_t v = toupper_m(cp);
#  179|   		if (v != cp) {

Error: CPPCHECK_WARNING (CWE-457): [#def743]
samba-4.22.1/lib/util/charset/util_unistr_w.c:193: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cpa))[0]=((const unsigned char*)(a))[0],((unsigned char*)(&cpa))[1]=((const unsigned char*)(a))[1],&cpa))
#  191|   	size_t n = 0;
#  192|   
#  193|-> 	while ((n < len) && (*(COPY_UCS2_CHAR(&cpb,b))) && (*(COPY_UCS2_CHAR(&cpa,a)) == cpb)) {
#  194|   		a++;
#  195|   		b++;

Error: CPPCHECK_WARNING (CWE-457): [#def744]
samba-4.22.1/lib/util/charset/util_unistr_w.c:193: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cpb))[0]=((const unsigned char*)(b))[0],((unsigned char*)(&cpb))[1]=((const unsigned char*)(b))[1],&cpb))
#  191|   	size_t n = 0;
#  192|   
#  193|-> 	while ((n < len) && (*(COPY_UCS2_CHAR(&cpb,b))) && (*(COPY_UCS2_CHAR(&cpa,a)) == cpb)) {
#  194|   		a++;
#  195|   		b++;

Error: CPPCHECK_WARNING (CWE-457): [#def745]
samba-4.22.1/lib/util/charset/util_unistr_w.c:228: error[uninitvar]: Uninitialized variable: ret
#  226|   	/* native to LE. */
#  227|   	SSVAL(&ret,0,cp);
#  228|-> 	return ret;
#  229|   }

Error: CPPCHECK_WARNING (CWE-476): [#def746]
samba-4.22.1/lib/util/tests/dlinklist.c:73: warning[nullPointer]: Possible null pointer dereference: el2
#   71|   	torture_comment(tctx, "check DLIST_HEAD\n");
#   72|   	el = DLIST_TAIL(l1);
#   73|-> 	DLIST_HEAD(el, el2);
#   74|   	torture_assert(tctx, el2 == l1, "should find head");
#   75|   

Error: CPPCHECK_WARNING (CWE-457): [#def747]
samba-4.22.1/lib/util/tests/genrandperf.c:37: warning[uninitvar]: Uninitialized variable: val
#   35|   		generate_random_buffer((uint8_t *)&val, sizeof(val));
#   36|   	}
#   37|-> 	printf("%"PRIu64"\n", val);
#   38|   	return 0;
#   39|   }

Error: COMPILER_WARNING (CWE-563): [#def748]
samba-4.22.1/libcli/auth/smbencrypt.c: scope_hint: In function ‘decode_pw_buffer’
samba-4.22.1/libcli/auth/smbencrypt.c:948:13: warning[-Wunused-variable]: unused variable ‘byte_len’
#  948 |         int byte_len=0;
#      |             ^~~~~~~~
#  946|   {
#  947|   	DATA_BLOB new_password;
#  948|-> 	int byte_len=0;
#  949|   	bool ok;
#  950|   

Error: CPPCHECK_WARNING (CWE-562): [#def749]
samba-4.22.1/libcli/security/sddl_conditional_ace.c:2642: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2640|   
# 2641|   	comp->target = token.data.composite.tokens;
# 2642|-> 	comp->target_len = &token.data.composite.n_members;
# 2643|   
# 2644|   	/*

Error: CPPCHECK_WARNING (CWE-562): [#def750]
samba-4.22.1/libcli/security/sddl_conditional_ace.c:3014: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3012|   
# 3013|   	comp->target = composite.data.composite.tokens;
# 3014|-> 	comp->target_len = &composite.data.composite.n_members;
# 3015|   
# 3016|   	/*

Error: CPPCHECK_WARNING (CWE-457): [#def751]
samba-4.22.1/libcli/smb/smbXcli_base.c:4873: error[uninitvar]: Uninitialized variable: val
# 4871|   		SSVAL(val, 0, smb2cli_prots[i].smb2_dialect);
# 4872|   
# 4873|-> 		ok = data_blob_append(state, &dyn, val, sizeof(val));
# 4874|   		if (!ok) {
# 4875|   			return NULL;

Error: COMPILER_WARNING (CWE-477): [#def752]
samba-4.22.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_make_remark’
samba-4.22.1/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
#  735 |                 _pam_drop_reply(resp, 1);
#      |                 ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.h:104: included_from: Included from here.
samba-4.22.1/nsswitch/pam_winbind.c:13: included_from: Included from here.
samba-4.22.1/nsswitch/pam_winbind.c:735:17: note: declared here
#  735 |                 _pam_drop_reply(resp, 1);
#      |                 ^~~~~~~~~~~~~~~
#  733|   
#  734|   	if (resp) {
#  735|-> 		_pam_drop_reply(resp, 1);
#  736|   	}
#  737|   	return retval;

Error: COMPILER_WARNING (CWE-477): [#def753]
samba-4.22.1/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
#  735 |                 _pam_drop_reply(resp, 1);
#      |                 ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:735:17: note: declared here
#  735 |                 _pam_drop_reply(resp, 1);
#      |                 ^~~~~~~~~~~~~~~
#  733|   
#  734|   	if (resp) {
#  735|-> 		_pam_drop_reply(resp, 1);
#  736|   	}
#  737|   	return retval;

Error: COMPILER_WARNING (CWE-477): [#def754]
samba-4.22.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_pam_winbind_change_pwd’
samba-4.22.1/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
#  906 |         _pam_drop_reply(resp, 1);
#      |         ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:906:9: note: declared here
#  906 |         _pam_drop_reply(resp, 1);
#      |         ^~~~~~~~~~~~~~~
#  904|   	}
#  905|   
#  906|-> 	_pam_drop_reply(resp, 1);
#  907|   	return retval;
#  908|   }

Error: COMPILER_WARNING (CWE-477): [#def755]
samba-4.22.1/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
#  906 |         _pam_drop_reply(resp, 1);
#      |         ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:906:9: note: declared here
#  906 |         _pam_drop_reply(resp, 1);
#      |         ^~~~~~~~~~~~~~~
#  904|   	}
#  905|   
#  906|-> 	_pam_drop_reply(resp, 1);
#  907|   	return retval;
#  908|   }

Error: COMPILER_WARNING (CWE-477): [#def756]
samba-4.22.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_pam_delete’
samba-4.22.1/nsswitch/pam_winbind.c:2159:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2159 |         _pam_overwrite(xx);
#      |         ^~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:2159:9: note: declared here
# 2159 |         _pam_overwrite(xx);
#      |         ^~~~~~~~~~~~~~
# 2157|   static char *_pam_delete(register char *xx)
# 2158|   {
# 2159|-> 	_pam_overwrite(xx);
# 2160|   	_pam_drop(xx);
# 2161|   	return NULL;

Error: COMPILER_WARNING (CWE-477): [#def757]
samba-4.22.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_winbind_read_password’
samba-4.22.1/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
# 2269 |                         _pam_drop_reply(resp, i);
#      |                         ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:2269:25: note: declared here
# 2269 |                         _pam_drop_reply(resp, i);
#      |                         ^~~~~~~~~~~~~~~
# 2267|   		}
# 2268|   		if (retval != PAM_SUCCESS) {
# 2269|-> 			_pam_drop_reply(resp, i);
# 2270|   			goto done;
# 2271|   		}

Error: COMPILER_WARNING (CWE-477): [#def758]
samba-4.22.1/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2269 |                         _pam_drop_reply(resp, i);
#      |                         ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:2269:25: note: declared here
# 2269 |                         _pam_drop_reply(resp, i);
#      |                         ^~~~~~~~~~~~~~~
# 2267|   		}
# 2268|   		if (retval != PAM_SUCCESS) {
# 2269|-> 			_pam_drop_reply(resp, i);
# 2270|   			goto done;
# 2271|   		}

Error: COMPILER_WARNING (CWE-477): [#def759]
samba-4.22.1/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
# 2299 |                 _pam_drop_reply(resp, i);
#      |                 ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:2299:17: note: declared here
# 2299 |                 _pam_drop_reply(resp, i);
#      |                 ^~~~~~~~~~~~~~~
# 2297|   		 * -- what is it for anyway? AGM
# 2298|   		 */
# 2299|-> 		_pam_drop_reply(resp, i);
# 2300|   	}
# 2301|   

Error: COMPILER_WARNING (CWE-477): [#def760]
samba-4.22.1/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2299 |                 _pam_drop_reply(resp, i);
#      |                 ^~~~~~~~~~~~~~~
samba-4.22.1/nsswitch/pam_winbind.c:2299:17: note: declared here
# 2299 |                 _pam_drop_reply(resp, i);
#      |                 ^~~~~~~~~~~~~~~
# 2297|   		 * -- what is it for anyway? AGM
# 2298|   		 */
# 2299|-> 		_pam_drop_reply(resp, i);
# 2300|   	}
# 2301|   

Error: CPPCHECK_WARNING (CWE-457): [#def761]
samba-4.22.1/source3/lib/dbwrap/dbwrap_watch.c:564: error[uninitvar]: Uninitialized variable: instance_buf
#  562|   		watcher->pid,
#  563|   		MSG_DBWRAP_MODIFIED,
#  564|-> 		instance_buf,
#  565|   		sizeof(instance_buf));
#  566|   	if (!NT_STATUS_IS_OK(status)) {

Error: CPPCHECK_WARNING (CWE-457): [#def762]
samba-4.22.1/source3/lib/messages.c:1396: warning[uninitvar]: Uninitialized variable: fds
# 1394|   		ret = messaging_post_self(
# 1395|   			msg_ctx, rec->src, rec->dest, rec->msg_type,
# 1396|-> 			&iov, 1, fds, rec->num_fds);
# 1397|   		if (ret == 0) {
# 1398|   			return;

Error: CPPCHECK_WARNING (CWE-476): [#def763]
samba-4.22.1/source3/lib/netapi/examples/common.c:44: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: puser
#   42|   			char *p = NULL;
#   43|   
#   44|-> 			if ((p = strchr(puser,'%'))) {
#   45|   				size_t len;
#   46|   				*p = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def764]
samba-4.22.1/source3/lib/netapi/tests/common.c:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: puser
#   51|   			char *p = NULL;
#   52|   
#   53|-> 			if ((p = strchr(puser,'%'))) {
#   54|   				size_t len;
#   55|   				*p = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def765]
samba-4.22.1/source3/lib/smbldap.c:363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mods
#  361|   			/* notreached. */
#  362|   		}
#  363|-> 		mods[0] = NULL;
#  364|   	}
#  365|   

Error: CPPCHECK_WARNING (CWE-476): [#def766]
samba-4.22.1/source3/lib/smbldap.c:366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mods
#  364|   	}
#  365|   
#  366|-> 	for (i = 0; mods[i] != NULL; ++i) {
#  367|   		if (mods[i]->mod_op == modop && strequal(mods[i]->mod_type, attribute))
#  368|   			break;

Error: CPPCHECK_WARNING (CWE-768): [#def767]
samba-4.22.1/source3/libsmb/libsmb_dir.c:2144: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_nsec=((1l<<30)-2l)},access_time,write_time,(struct timespec){.tv_nsec=((1l<<30)-2l)}' depends on order of evaluation of side effects
# 2142|   		(struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT },
# 2143|   		access_time,
# 2144|-> 		write_time,
# 2145|   		(struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT },
# 2146|   		0);

Error: CPPCHECK_WARNING (CWE-768): [#def768]
samba-4.22.1/source3/libsmb/libsmb_xattr.c:1855: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_sec=dad->create_time},(struct timespec){.tv_sec=dad->access_time}' depends on order of evaluation of side effects
# 1853|   				path,
# 1854|   				(struct timespec) {
# 1855|-> 					.tv_sec = dad->create_time },
# 1856|   				(struct timespec) {
# 1857|   					.tv_sec = dad->access_time },

Error: CPPCHECK_WARNING (CWE-768): [#def769]
samba-4.22.1/source3/libsmb/libsmb_xattr.c:1857: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_sec=dad->create_time},(struct timespec){.tv_sec=dad->access_time},(struct timespec){.tv_sec=dad->write_time}' depends on order of evaluation of side effects
# 1855|   					.tv_sec = dad->create_time },
# 1856|   				(struct timespec) {
# 1857|-> 					.tv_sec = dad->access_time },
# 1858|   				(struct timespec) {
# 1859|   					.tv_sec = dad->write_time },

Error: CPPCHECK_WARNING (CWE-768): [#def770]
samba-4.22.1/source3/libsmb/libsmb_xattr.c:1859: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_sec=dad->create_time},(struct timespec){.tv_sec=dad->access_time},(struct timespec){.tv_sec=dad->write_time},(struct timespec){.tv_sec=dad->change_time}' depends on order of evaluation of side effects
# 1857|   					.tv_sec = dad->access_time },
# 1858|   				(struct timespec) {
# 1859|-> 					.tv_sec = dad->write_time },
# 1860|   				(struct timespec) {
# 1861|   					.tv_sec = dad->change_time },

Error: CPPCHECK_WARNING (CWE-768): [#def771]
samba-4.22.1/source3/libsmb/libsmb_xattr.c:2013: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_sec=dad->create_time},(struct timespec){.tv_sec=dad->access_time}' depends on order of evaluation of side effects
# 2011|   					path,
# 2012|   					(struct timespec) {
# 2013|-> 						.tv_sec = dad->create_time },
# 2014|   					(struct timespec) {
# 2015|   						.tv_sec = dad->access_time },

Error: CPPCHECK_WARNING (CWE-768): [#def772]
samba-4.22.1/source3/libsmb/libsmb_xattr.c:2015: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_sec=dad->create_time},(struct timespec){.tv_sec=dad->access_time},(struct timespec){.tv_sec=dad->write_time}' depends on order of evaluation of side effects
# 2013|   						.tv_sec = dad->create_time },
# 2014|   					(struct timespec) {
# 2015|-> 						.tv_sec = dad->access_time },
# 2016|   					(struct timespec) {
# 2017|   						.tv_sec = dad->write_time },

Error: CPPCHECK_WARNING (CWE-768): [#def773]
samba-4.22.1/source3/libsmb/libsmb_xattr.c:2017: error[unknownEvaluationOrder]: Expression 'context,srv,path,(struct timespec){.tv_sec=dad->create_time},(struct timespec){.tv_sec=dad->access_time},(struct timespec){.tv_sec=dad->write_time},(struct timespec){.tv_sec=dad->change_time}' depends on order of evaluation of side effects
# 2015|   						.tv_sec = dad->access_time },
# 2016|   					(struct timespec) {
# 2017|-> 						.tv_sec = dad->write_time },
# 2018|   					(struct timespec) {
# 2019|   						.tv_sec = dad->change_time },

Error: COMPILER_WARNING (CWE-477): [#def774]
samba-4.22.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_state_setup_mt_ev’
samba-4.22.1/source3/libsmb/pylibsmb.c:274:9: warning[-Wdeprecated-declarations]: ‘PyEval_InitThreads’ is deprecated
#  274 |         PyEval_InitThreads();
#      |         ^~~~~~~~~~~~~~~~~~
/usr/include/python3.13/Python.h:124: included_from: Included from here.
samba-4.22.1/lib/replace/system/python.h:27: included_from: Included from here.
samba-4.22.1/source3/libsmb/pylibsmb.c:48: included_from: Included from here.
/usr/include/python3.13/ceval.h:114:37: note: declared here
#  114 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
#      |                                     ^~~~~~~~~~~~~~~~~~
#  272|   	}
#  273|   
#  274|-> 	PyEval_InitThreads();
#  275|   
#  276|   	ret = pthread_create(&t->id, NULL, py_cli_state_poll_thread, self);

Error: CPPCHECK_WARNING (CWE-457): [#def775]
samba-4.22.1/source3/modules/vfs_fruit.c:853: error[uninitvar]: Uninitialized variable: p
#  851|   	SIVAL(p, 4, 0);
#  852|   	SBVAL(p, 8, req_bitmap);
#  853|-> 	ok = data_blob_append(req, &blob, p, 16);
#  854|   	if (!ok) {
#  855|   		return NT_STATUS_UNSUCCESSFUL;

Error: COMPILER_WARNING: [#def776]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_set_quota’
samba-4.22.1/source3/modules/vfs_full_audit.c:834:61: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  834 |         do_log(SMB_VFS_OP_SET_QUOTA, (result >= 0), handle, "");
#      |                                                             ^~
#  832|   	result = SMB_VFS_NEXT_SET_QUOTA(handle, qtype, id, qt);
#  833|   
#  834|-> 	do_log(SMB_VFS_OP_SET_QUOTA, (result >= 0), handle, "");
#  835|   
#  836|   	return result;

Error: COMPILER_WARNING: [#def777]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_shadow_copy_data’
samba-4.22.1/source3/modules/vfs_full_audit.c:848:72: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  848 |         do_log(SMB_VFS_OP_GET_SHADOW_COPY_DATA, (result >= 0), handle, "");
#      |                                                                        ^~
#  846|   	result = SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data, labels);
#  847|   
#  848|-> 	do_log(SMB_VFS_OP_GET_SHADOW_COPY_DATA, (result >= 0), handle, "");
#  849|   
#  850|   	return result;

Error: COMPILER_WARNING: [#def778]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_statvfs’
samba-4.22.1/source3/modules/vfs_full_audit.c:861:59: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  861 |         do_log(SMB_VFS_OP_STATVFS, (result >= 0), handle, "");
#      |                                                           ^~
#  859|   	result = SMB_VFS_NEXT_STATVFS(handle, smb_fname, statbuf);
#  860|   
#  861|-> 	do_log(SMB_VFS_OP_STATVFS, (result >= 0), handle, "");
#  862|   
#  863|   	return result;

Error: COMPILER_WARNING: [#def779]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fs_capabilities’
samba-4.22.1/source3/modules/vfs_full_audit.c:872:58: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  872 |         do_log(SMB_VFS_OP_FS_CAPABILITIES, true, handle, "");
#      |                                                          ^~
#  870|   	result = SMB_VFS_NEXT_FS_CAPABILITIES(handle, p_ts_res);
#  871|   
#  872|-> 	do_log(SMB_VFS_OP_FS_CAPABILITIES, true, handle, "");
#  873|   
#  874|   	return result;

Error: COMPILER_WARNING: [#def780]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_dfs_referrals’
samba-4.22.1/source3/modules/vfs_full_audit.c:886:24: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  886 |                handle, "");
#      |                        ^~
#  884|   
#  885|   	do_log(SMB_VFS_OP_GET_DFS_REFERRALS, NT_STATUS_IS_OK(status),
#  886|-> 	       handle, "");
#  887|   
#  888|   	return status;

Error: COMPILER_WARNING: [#def781]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_check_path’
samba-4.22.1/source3/modules/vfs_full_audit.c:967:24: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  967 |                handle, "");
#      |                        ^~
#  965|   					      base_volume);
#  966|   	do_log(SMB_VFS_OP_SNAP_CHECK_PATH, NT_STATUS_IS_OK(status),
#  967|-> 	       handle, "");
#  968|   
#  969|   	return status;

Error: COMPILER_WARNING: [#def782]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_create’
samba-4.22.1/source3/modules/vfs_full_audit.c:984:73: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  984 |         do_log(SMB_VFS_OP_SNAP_CREATE, NT_STATUS_IS_OK(status), handle, "");
#      |                                                                         ^~
#  982|   	status = SMB_VFS_NEXT_SNAP_CREATE(handle, mem_ctx, base_volume, tstamp,
#  983|   					  rw, base_path, snap_path);
#  984|-> 	do_log(SMB_VFS_OP_SNAP_CREATE, NT_STATUS_IS_OK(status), handle, "");
#  985|   
#  986|   	return status;

Error: COMPILER_WARNING: [#def783]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_delete’
samba-4.22.1/source3/modules/vfs_full_audit.c:998:73: warning[-Wformat-zero-length]: zero-length gnu_printf format string
#  998 |         do_log(SMB_VFS_OP_SNAP_DELETE, NT_STATUS_IS_OK(status), handle, "");
#      |                                                                         ^~
#  996|   	status = SMB_VFS_NEXT_SNAP_DELETE(handle, mem_ctx, base_path,
#  997|   					  snap_path);
#  998|-> 	do_log(SMB_VFS_OP_SNAP_DELETE, NT_STATUS_IS_OK(status), handle, "");
#  999|   
# 1000|   	return status;

Error: COMPILER_WARNING: [#def784]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_readdir’
samba-4.22.1/source3/modules/vfs_full_audit.c:1027:50: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1027 |         do_log(SMB_VFS_OP_READDIR, True, handle, "");
#      |                                                  ^~
# 1025|   	 * (End of dir is also failure), so always succeed.
# 1026|   	 */
# 1027|-> 	do_log(SMB_VFS_OP_READDIR, True, handle, "");
# 1028|   
# 1029|   	return result;

Error: COMPILER_WARNING: [#def785]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_rewinddir’
samba-4.22.1/source3/modules/vfs_full_audit.c:1037:52: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1037 |         do_log(SMB_VFS_OP_REWINDDIR, True, handle, "");
#      |                                                    ^~
# 1035|   	SMB_VFS_NEXT_REWINDDIR(handle, dirp);
# 1036|   
# 1037|-> 	do_log(SMB_VFS_OP_REWINDDIR, True, handle, "");
# 1038|   }
# 1039|   

Error: COMPILER_WARNING: [#def786]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_closedir’
samba-4.22.1/source3/modules/vfs_full_audit.c:1079:60: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1079 |         do_log(SMB_VFS_OP_CLOSEDIR, (result >= 0), handle, "");
#      |                                                            ^~
# 1077|   	result = SMB_VFS_NEXT_CLOSEDIR(handle, dirp);
# 1078|   
# 1079|-> 	do_log(SMB_VFS_OP_CLOSEDIR, (result >= 0), handle, "");
# 1080|   
# 1081|   	return result;

Error: COMPILER_WARNING: [#def787]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_translate_name’
samba-4.22.1/source3/modules/vfs_full_audit.c:2174:76: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2174 |         do_log(SMB_VFS_OP_TRANSLATE_NAME, NT_STATUS_IS_OK(result), handle, "");
#      |                                                                            ^~
# 2172|   					     mapped_name);
# 2173|   
# 2174|-> 	do_log(SMB_VFS_OP_TRANSLATE_NAME, NT_STATUS_IS_OK(result), handle, "");
# 2175|   
# 2176|   	return result;

Error: COMPILER_WARNING: [#def788]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fsctl’
samba-4.22.1/source3/modules/vfs_full_audit.c:2225:67: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2225 |         do_log(SMB_VFS_OP_FSCTL, NT_STATUS_IS_OK(result), handle, "");
#      |                                                                   ^~
# 2223|   				out_len);
# 2224|   
# 2225|-> 	do_log(SMB_VFS_OP_FSCTL, NT_STATUS_IS_OK(result), handle, "");
# 2226|   
# 2227|   	return result;

Error: COMPILER_WARNING: [#def789]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_read_send’
samba-4.22.1/source3/modules/vfs_full_audit.c:2245:59: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2245 |         do_log(SMB_VFS_OP_OFFLOAD_READ_SEND, req, handle, "");
#      |                                                           ^~
# 2243|   					     fsctl, ttl, offset, to_copy);
# 2244|   
# 2245|-> 	do_log(SMB_VFS_OP_OFFLOAD_READ_SEND, req, handle, "");
# 2246|   
# 2247|   	return req;

Error: COMPILER_WARNING: [#def790]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_read_recv’
samba-4.22.1/source3/modules/vfs_full_audit.c:2263:79: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2263 |         do_log(SMB_VFS_OP_OFFLOAD_READ_RECV, NT_STATUS_IS_OK(status), handle, "");
#      |                                                                               ^~
# 2261|   						flags, xferlen, _token_blob);
# 2262|   
# 2263|-> 	do_log(SMB_VFS_OP_OFFLOAD_READ_RECV, NT_STATUS_IS_OK(status), handle, "");
# 2264|   
# 2265|   	return status;

Error: COMPILER_WARNING: [#def791]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_write_send’
samba-4.22.1/source3/modules/vfs_full_audit.c:2284:60: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2284 |         do_log(SMB_VFS_OP_OFFLOAD_WRITE_SEND, req, handle, "");
#      |                                                            ^~
# 2282|   					   dest_fsp, dest_off, num);
# 2283|   
# 2284|-> 	do_log(SMB_VFS_OP_OFFLOAD_WRITE_SEND, req, handle, "");
# 2285|   
# 2286|   	return req;

Error: COMPILER_WARNING: [#def792]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_write_recv’
samba-4.22.1/source3/modules/vfs_full_audit.c:2297:80: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2297 |         do_log(SMB_VFS_OP_OFFLOAD_WRITE_RECV, NT_STATUS_IS_OK(result), handle, "");
#      |                                                                                ^~
# 2295|   	result = SMB_VFS_NEXT_OFFLOAD_WRITE_RECV(handle, req, copied);
# 2296|   
# 2297|-> 	do_log(SMB_VFS_OP_OFFLOAD_WRITE_RECV, NT_STATUS_IS_OK(result), handle, "");
# 2298|   
# 2299|   	return result;

Error: COMPILER_WARNING: [#def793]
samba-4.22.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_durable_reconnect’
samba-4.22.1/source3/modules/vfs_full_audit.c:2904:25: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2904 |                         "");
#      |                         ^~
# 2902|   			NT_STATUS_IS_OK(result),
# 2903|   			handle,
# 2904|-> 			"");
# 2905|   
# 2906|   	return result;

Error: COMPILER_WARNING: [#def794]
samba-4.22.1/source3/nmbd/nmbd_become_lmb.c: scope_hint: In function ‘become_local_master_browser’
samba-4.22.1/source3/nmbd/nmbd_become_lmb.c:549:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
#  549 |         strlcpy(userdata->data, work->work_group, size - sizeof(*userdata));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source3/nmbd/nmbd_become_lmb.c:24: included_from: Included from here.
samba-4.22.1/source3/nmbd/nmbd.h:212:14: note: destination object ‘data’ of size 16
#  212 |         char data[16]; /* 16 is to ensure alignment/padding on all systems */
#      |              ^~~~
/usr/include/features.h:524: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdio.h:28: included_from: Included from here.
samba-4.22.1/lib/replace/replace.h:48: included_from: Included from here.
samba-4.22.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.22.1/source3/nmbd/nmbd_become_lmb.c:23: included_from: Included from here.
/usr/include/bits/string_fortified.h:161:1: note: in a call to function ‘strlcpy’ declared with attribute ‘access (write_only, 1, 3)’
#  161 | __NTH (strlcpy (__fortify_clang_overload_arg (char *, __restrict, __dest),
#      | ^~~~~
#  547|   	userdata->free_fn = NULL;
#  548|   	userdata->userdata_len = strlen(work->work_group)+1;
#  549|-> 	strlcpy(userdata->data, work->work_group, size - sizeof(*userdata));
#  550|   
#  551|   	/* Register the special browser group name. */

Error: COMPILER_WARNING: [#def795]
samba-4.22.1/source3/nmbd/nmbd_browsesync.c: scope_hint: In function ‘find_domain_master_name_query_success’
samba-4.22.1/source3/nmbd/nmbd_browsesync.c:337:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
#  337 |         strlcpy(userdata->data, work->work_group, size - sizeof(*userdata));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source3/nmbd/nmbd_browsesync.c:24: included_from: Included from here.
samba-4.22.1/source3/nmbd/nmbd.h:212:14: note: destination object ‘data’ of size 16
#  212 |         char data[16]; /* 16 is to ensure alignment/padding on all systems */
#      |              ^~~~
/usr/include/features.h:524: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdio.h:28: included_from: Included from here.
samba-4.22.1/lib/replace/replace.h:48: included_from: Included from here.
samba-4.22.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.22.1/source3/nmbd/nmbd_browsesync.c:23: included_from: Included from here.
/usr/include/bits/string_fortified.h:161:1: note: in a call to function ‘strlcpy’ declared with attribute ‘access (write_only, 1, 3)’
#  161 | __NTH (strlcpy (__fortify_clang_overload_arg (char *, __restrict, __dest),
#      | ^~~~~
#  335|   	userdata->free_fn = NULL;
#  336|   	userdata->userdata_len = strlen(work->work_group)+1;
#  337|-> 	strlcpy(userdata->data, work->work_group, size - sizeof(*userdata));
#  338|   
#  339|   	node_status( subrec, &nmbname, answer_ip, 

Error: CPPCHECK_WARNING (CWE-590): [#def796]
samba-4.22.1/source3/nmbd/nmbd_namelistdb.c:541: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (.) results in undefined behaviour.
#  539|   
#  540|   	if(iplist != &subrec->myip) {
#  541|-> 		SAFE_FREE(iplist);
#  542|   	}
#  543|   }

Error: CPPCHECK_WARNING (CWE-590): [#def797]
samba-4.22.1/source3/nmbd/nmbd_winsproxy.c:89: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (ip) results in undefined behaviour.
#   87|   
#   88|   	if(iplist != &ip) {
#   89|-> 		SAFE_FREE(iplist);
#   90|   	}
#   91|   

Error: CPPCHECK_WARNING (CWE-457): [#def798]
samba-4.22.1/source3/passdb/pdb_samba_dsdb.c:1086: error[uninitvar]: Uninitialized variable: id_map.sid
# 1084|   		return status;
# 1085|   	}
# 1086|-> 	status = pdb_samba_dsdb_getgrsid(m, map, *id_map.sid);
# 1087|   	talloc_free(tmp_ctx);
# 1088|   	return status;

Error: CPPCHECK_WARNING (CWE-457): [#def799]
samba-4.22.1/source3/rpcclient/cmd_spotlight.c:225: error[uninitvar]: Uninitialized variable: share_path
#  223|   				    argv[2],
#  224|   				    argv[1],
#  225|-> 				    share_path,
#  226|   				    &share_handle);
#  227|   	if (!NT_STATUS_IS_OK(status)) {

Error: CPPCHECK_WARNING (CWE-768): [#def800]
samba-4.22.1/source3/smbd/durable.c:559: error[unknownEvaluationOrder]: Expression '.pid={.pid=0,}' depends on order of evaluation of side effects
#  557|   	if (state->e->share_file_id == id) {
#  558|   		DBG_INFO("Found more than one entry, invalidating previous\n");
#  559|-> 		*state->e = (struct share_mode_entry) { .pid = { .pid = 0, }};
#  560|   		return true;	/* end the loop through share mode entries */
#  561|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def801]
samba-4.22.1/source3/smbd/open.c:2961: error[unknownEvaluationOrder]: Expression 'req,NULL,(struct timeval){.tv_usec=timeout_usecs},(struct timeval){.tv_usec=200000}' depends on order of evaluation of side effects
# 2959|   		req,
# 2960|   		NULL,
# 2961|-> 		(struct timeval) { .tv_usec = timeout_usecs },
# 2962|   		(struct timeval) { .tv_usec = 200000 });
# 2963|   	return ok;

Error: CPPCHECK_WARNING (CWE-457): [#def802]
samba-4.22.1/source3/smbd/server.c:316: error[uninitvar]: Uninitialized variable: buf
#  314|   		SIVAL(buf, 0, am_parent->num_children);
#  315|   		messaging_send_buf(ctx, srv_id, MSG_SMB_NUM_CHILDREN,
#  316|-> 				   buf, sizeof(buf));
#  317|   	}
#  318|   }

Error: CPPCHECK_WARNING (CWE-457): [#def803]
samba-4.22.1/source3/smbd/smb1_reply.c:2822: error[uninitvar]: Uninitialized variable: header
# 2820|   
# 2821|   	smbd_lock_socket(xconn);
# 2822|-> 	if (write_data(xconn->transport.sock,header,4) != 4) {
# 2823|   		int saved_errno = errno;
# 2824|   		/*

Error: CPPCHECK_WARNING (CWE-457): [#def804]
samba-4.22.1/source3/smbd/smb1_reply.c:2891: error[uninitvar]: Uninitialized variable: header
# 2889|   
# 2890|   		_smb_setlen(header,nread);
# 2891|-> 		header_blob = data_blob_const(header, 4);
# 2892|   
# 2893|   		sendfile_read = SMB_VFS_SENDFILE(xconn->transport.sock, fsp,

Error: CPPCHECK_WARNING (CWE-457): [#def805]
samba-4.22.1/source3/smbd/smb2_create.c:1730: error[uninitvar]: Uninitialized variable: p
# 1728|   			uint8_t p[8];
# 1729|   			uint32_t max_access_granted;
# 1730|-> 			DATA_BLOB blob = data_blob_const(p, sizeof(p));
# 1731|   
# 1732|   			status = smbd_calculate_access_mask_fsp(

Error: CPPCHECK_WARNING (CWE-457): [#def806]
samba-4.22.1/source3/smbd/smb2_create.c:1840: error[uninitvar]: Uninitialized variable: p
# 1838|   			&state->result->fsp_name->st;
# 1839|   		uint64_t file_id = SMB_VFS_FS_FILE_ID(conn, base_sp);
# 1840|-> 		DATA_BLOB blob = data_blob_const(p, sizeof(p));
# 1841|   
# 1842|   		ZERO_STRUCT(p);

Error: CPPCHECK_WARNING (CWE-457): [#def807]
samba-4.22.1/source3/smbd/smb2_negprot.c:602: error[uninitvar]: Uninitialized variable: buf
#  600|   			&out_c,
#  601|   			SMB2_ENCRYPTION_CAPABILITIES,
#  602|-> 			buf,
#  603|   			sizeof(buf));
#  604|   		if (!NT_STATUS_IS_OK(status)) {

Error: CPPCHECK_WARNING (CWE-457): [#def808]
samba-4.22.1/source3/smbd/smb2_negprot.c:682: error[uninitvar]: Uninitialized variable: buf
#  680|   				&out_c,
#  681|   				SMB2_SIGNING_CAPABILITIES,
#  682|-> 				buf,
#  683|   				sizeof(buf));
#  684|   			if (!NT_STATUS_IS_OK(status)) {

Error: CPPCHECK_WARNING (CWE-457): [#def809]
samba-4.22.1/source3/smbd/smbXsrv_open.c:1057: error[uninitvar]: Uninitialized variable: data
# 1055|   		uint8_t data[SMBXSRV_OPEN_REPLAY_CACHE_FIXED_SIZE];
# 1056|   
# 1057|-> 		blob = data_blob_const(data, ARRAY_SIZE(data));
# 1058|   		ndr_err = ndr_push_struct_into_fixed_blob(&blob, &rc,
# 1059|   			(ndr_push_flags_fn_t)ndr_push_smbXsrv_open_replay_cache);

Error: CPPCHECK_WARNING (CWE-457): [#def810]
samba-4.22.1/source3/smbd/smbXsrv_session.c:122: warning[uninitvar]: Uninitialized variable: key_buf
#  120|   	RSIVAL(key_buf, 0, id);
#  121|   
#  122|-> 	key = make_tdb_data(key_buf, SMBXSRV_SESSION_GLOBAL_TDB_KEY_SIZE);
#  123|   
#  124|   	return key;

Error: CPPCHECK_WARNING (CWE-457): [#def811]
samba-4.22.1/source3/smbd/smbXsrv_session.c:153: warning[uninitvar]: Uninitialized variable: key_buf
#  151|   	RSIVAL(key_buf, 0, id);
#  152|   
#  153|-> 	key = make_tdb_data(key_buf, SMBXSRV_SESSION_LOCAL_TDB_KEY_SIZE);
#  154|   
#  155|   	return key;

Error: CPPCHECK_WARNING (CWE-457): [#def812]
samba-4.22.1/source3/smbd/smbXsrv_tcon.c:102: warning[uninitvar]: Uninitialized variable: key_buf
#  100|   	RSIVAL(key_buf, 0, id);
#  101|   
#  102|-> 	key = make_tdb_data(key_buf, SMBXSRV_TCON_GLOBAL_TDB_KEY_SIZE);
#  103|   
#  104|   	return key;

Error: CPPCHECK_WARNING (CWE-457): [#def813]
samba-4.22.1/source3/smbd/smbXsrv_tcon.c:133: warning[uninitvar]: Uninitialized variable: key_buf
#  131|   	RSIVAL(key_buf, 0, id);
#  132|   
#  133|-> 	key = make_tdb_data(key_buf, SMBXSRV_TCON_LOCAL_TDB_KEY_SIZE);
#  134|   
#  135|   	return key;

Error: CPPCHECK_WARNING (CWE-476): [#def814]
samba-4.22.1/source3/utils/log2pcaphex.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  142|   	p.len = length;
#  143|   	fwrite(&p, sizeof(struct tcpdump_packet), 1, out);
#  144|-> 	fwrite(data, sizeof(unsigned char), caplen, out);
#  145|   }
#  146|   

Error: CPPCHECK_WARNING (CWE-682): [#def815]
samba-4.22.1/source3/utils/log2pcaphex.c:174: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  172|   
#  173|   	memcpy(newdata+offset, &HDR_IP, sizeof(HDR_IP));offset+=sizeof(HDR_IP);
#  174|-> 	memcpy(newdata+offset, &HDR_TCP, sizeof(HDR_TCP));offset+=sizeof(HDR_TCP);
#  175|   	memcpy(newdata+offset,data,length);
#  176|   

Error: CPPCHECK_WARNING (CWE-682): [#def816]
samba-4.22.1/source3/utils/log2pcaphex.c:175: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  173|   	memcpy(newdata+offset, &HDR_IP, sizeof(HDR_IP));offset+=sizeof(HDR_IP);
#  174|   	memcpy(newdata+offset, &HDR_TCP, sizeof(HDR_TCP));offset+=sizeof(HDR_TCP);
#  175|-> 	memcpy(newdata+offset,data,length);
#  176|   
#  177|   	print_pcap_packet(out, newdata, newlen, actual_length+offset);

Error: CPPCHECK_WARNING (CWE-476): [#def817]
samba-4.22.1/source3/utils/log2pcaphex.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  215|   	assert(fscanf(in, " size=%hu\n", buffersize)); line_num++;
#  216|   	buffer = (unsigned char *)malloc(*buffersize+4); /* +4 for NBSS Header */
#  217|-> 	memset(buffer, 0, *buffersize+4);
#  218|   	/* NetBIOS Session Service */
#  219|   	buffer[0] = 0x00;

Error: CPPCHECK_WARNING (CWE-476): [#def818]
samba-4.22.1/source3/utils/log2pcaphex.c:219: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  217|   	memset(buffer, 0, *buffersize+4);
#  218|   	/* NetBIOS Session Service */
#  219|-> 	buffer[0] = 0x00;
#  220|   	buffer[1] = 0x00;
#  221|   	memcpy(buffer+2, &buffersize, 2); /* TODO: need to copy as little-endian regardless of platform */

Error: CPPCHECK_WARNING (CWE-476): [#def819]
samba-4.22.1/source3/utils/log2pcaphex.c:220: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  218|   	/* NetBIOS Session Service */
#  219|   	buffer[0] = 0x00;
#  220|-> 	buffer[1] = 0x00;
#  221|   	memcpy(buffer+2, &buffersize, 2); /* TODO: need to copy as little-endian regardless of platform */
#  222|   	/* SMB Packet */

Error: CPPCHECK_WARNING (CWE-682): [#def820]
samba-4.22.1/source3/utils/log2pcaphex.c:221: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  219|   	buffer[0] = 0x00;
#  220|   	buffer[1] = 0x00;
#  221|-> 	memcpy(buffer+2, &buffersize, 2); /* TODO: need to copy as little-endian regardless of platform */
#  222|   	/* SMB Packet */
#  223|   	buffer[4] = 0xFF;

Error: CPPCHECK_WARNING (CWE-476): [#def821]
samba-4.22.1/source3/utils/log2pcaphex.c:223: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  221|   	memcpy(buffer+2, &buffersize, 2); /* TODO: need to copy as little-endian regardless of platform */
#  222|   	/* SMB Packet */
#  223|-> 	buffer[4] = 0xFF;
#  224|   	buffer[5] = 'S';
#  225|   	buffer[6] = 'M';

Error: CPPCHECK_WARNING (CWE-476): [#def822]
samba-4.22.1/source3/utils/log2pcaphex.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  222|   	/* SMB Packet */
#  223|   	buffer[4] = 0xFF;
#  224|-> 	buffer[5] = 'S';
#  225|   	buffer[6] = 'M';
#  226|   	buffer[7] = 'B';

Error: CPPCHECK_WARNING (CWE-476): [#def823]
samba-4.22.1/source3/utils/log2pcaphex.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  223|   	buffer[4] = 0xFF;
#  224|   	buffer[5] = 'S';
#  225|-> 	buffer[6] = 'M';
#  226|   	buffer[7] = 'B';
#  227|   	assert(fscanf(in, "  smb_com=0x%x\n", &tmp)); buffer[smb_com] = tmp; line_num++;

Error: CPPCHECK_WARNING (CWE-476): [#def824]
samba-4.22.1/source3/utils/log2pcaphex.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  224|   	buffer[5] = 'S';
#  225|   	buffer[6] = 'M';
#  226|-> 	buffer[7] = 'B';
#  227|   	assert(fscanf(in, "  smb_com=0x%x\n", &tmp)); buffer[smb_com] = tmp; line_num++;
#  228|   	assert(fscanf(in, "  smb_rcls=%d\n", &tmp)); buffer[smb_rcls] = tmp; line_num++;

Error: CPPCHECK_WARNING (CWE-476): [#def825]
samba-4.22.1/source3/utils/log2pcaphex.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  225|   	buffer[6] = 'M';
#  226|   	buffer[7] = 'B';
#  227|-> 	assert(fscanf(in, "  smb_com=0x%x\n", &tmp)); buffer[smb_com] = tmp; line_num++;
#  228|   	assert(fscanf(in, "  smb_rcls=%d\n", &tmp)); buffer[smb_rcls] = tmp; line_num++;
#  229|   	assert(fscanf(in, "  smb_reh=%d\n", &tmp)); buffer[smb_reh] = tmp; line_num++;

Error: CPPCHECK_WARNING (CWE-476): [#def826]
samba-4.22.1/source3/utils/log2pcaphex.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  226|   	buffer[7] = 'B';
#  227|   	assert(fscanf(in, "  smb_com=0x%x\n", &tmp)); buffer[smb_com] = tmp; line_num++;
#  228|-> 	assert(fscanf(in, "  smb_rcls=%d\n", &tmp)); buffer[smb_rcls] = tmp; line_num++;
#  229|   	assert(fscanf(in, "  smb_reh=%d\n", &tmp)); buffer[smb_reh] = tmp; line_num++;
#  230|   	assert(fscanf(in, "  smb_err=%d\n", &tmp)); memcpy(buffer+smb_err, &tmp, 2); line_num++;

Error: CPPCHECK_WARNING (CWE-476): [#def827]
samba-4.22.1/source3/utils/log2pcaphex.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  227|   	assert(fscanf(in, "  smb_com=0x%x\n", &tmp)); buffer[smb_com] = tmp; line_num++;
#  228|   	assert(fscanf(in, "  smb_rcls=%d\n", &tmp)); buffer[smb_rcls] = tmp; line_num++;
#  229|-> 	assert(fscanf(in, "  smb_reh=%d\n", &tmp)); buffer[smb_reh] = tmp; line_num++;
#  230|   	assert(fscanf(in, "  smb_err=%d\n", &tmp)); memcpy(buffer+smb_err, &tmp, 2); line_num++;
#  231|   	assert(fscanf(in, "  smb_flg=%d\n", &tmp)); buffer[smb_flg] = tmp; line_num++;

Error: CPPCHECK_WARNING (CWE-682): [#def828]
samba-4.22.1/source3/utils/log2pcaphex.c:230: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  228|   	assert(fscanf(in, "  smb_rcls=%d\n", &tmp)); buffer[smb_rcls] = tmp; line_num++;
#  229|   	assert(fscanf(in, "  smb_reh=%d\n", &tmp)); buffer[smb_reh] = tmp; line_num++;
#  230|-> 	assert(fscanf(in, "  smb_err=%d\n", &tmp)); memcpy(buffer+smb_err, &tmp, 2); line_num++;
#  231|   	assert(fscanf(in, "  smb_flg=%d\n", &tmp)); buffer[smb_flg] = tmp; line_num++;
#  232|   	assert(fscanf(in, "  smb_flg2=%d\n", &tmp)); memcpy(buffer+smb_flg2, &tmp, 2); line_num++;

Error: CPPCHECK_WARNING (CWE-476): [#def829]
samba-4.22.1/source3/utils/log2pcaphex.c:231: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  229|   	assert(fscanf(in, "  smb_reh=%d\n", &tmp)); buffer[smb_reh] = tmp; line_num++;
#  230|   	assert(fscanf(in, "  smb_err=%d\n", &tmp)); memcpy(buffer+smb_err, &tmp, 2); line_num++;
#  231|-> 	assert(fscanf(in, "  smb_flg=%d\n", &tmp)); buffer[smb_flg] = tmp; line_num++;
#  232|   	assert(fscanf(in, "  smb_flg2=%d\n", &tmp)); memcpy(buffer+smb_flg2, &tmp, 2); line_num++;
#  233|   	assert(fscanf(in, "  smb_tid=%d\n", &tmp)); memcpy(buffer+smb_tid, &tmp, 2); line_num++;

Error: CPPCHECK_WARNING (CWE-682): [#def830]
samba-4.22.1/source3/utils/log2pcaphex.c:232: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  230|   	assert(fscanf(in, "  smb_err=%d\n", &tmp)); memcpy(buffer+smb_err, &tmp, 2); line_num++;
#  231|   	assert(fscanf(in, "  smb_flg=%d\n", &tmp)); buffer[smb_flg] = tmp; line_num++;
#  232|-> 	assert(fscanf(in, "  smb_flg2=%d\n", &tmp)); memcpy(buffer+smb_flg2, &tmp, 2); line_num++;
#  233|   	assert(fscanf(in, "  smb_tid=%d\n", &tmp)); memcpy(buffer+smb_tid, &tmp, 2); line_num++;
#  234|   	assert(fscanf(in, "  smb_pid=%d\n", &tmp)); memcpy(buffer+smb_pid, &tmp, 2); line_num++;

Error: CPPCHECK_WARNING (CWE-682): [#def831]
samba-4.22.1/source3/utils/log2pcaphex.c:233: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  231|   	assert(fscanf(in, "  smb_flg=%d\n", &tmp)); buffer[smb_flg] = tmp; line_num++;
#  232|   	assert(fscanf(in, "  smb_flg2=%d\n", &tmp)); memcpy(buffer+smb_flg2, &tmp, 2); line_num++;
#  233|-> 	assert(fscanf(in, "  smb_tid=%d\n", &tmp)); memcpy(buffer+smb_tid, &tmp, 2); line_num++;
#  234|   	assert(fscanf(in, "  smb_pid=%d\n", &tmp)); memcpy(buffer+smb_pid, &tmp, 2); line_num++;
#  235|   	assert(fscanf(in, "  smb_uid=%d\n", &tmp)); memcpy(buffer+smb_uid, &tmp, 2); line_num++;

Error: CPPCHECK_WARNING (CWE-682): [#def832]
samba-4.22.1/source3/utils/log2pcaphex.c:234: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  232|   	assert(fscanf(in, "  smb_flg2=%d\n", &tmp)); memcpy(buffer+smb_flg2, &tmp, 2); line_num++;
#  233|   	assert(fscanf(in, "  smb_tid=%d\n", &tmp)); memcpy(buffer+smb_tid, &tmp, 2); line_num++;
#  234|-> 	assert(fscanf(in, "  smb_pid=%d\n", &tmp)); memcpy(buffer+smb_pid, &tmp, 2); line_num++;
#  235|   	assert(fscanf(in, "  smb_uid=%d\n", &tmp)); memcpy(buffer+smb_uid, &tmp, 2); line_num++;
#  236|   	assert(fscanf(in, "  smb_mid=%d\n", &tmp)); memcpy(buffer+smb_mid, &tmp, 2); line_num++;

Error: CPPCHECK_WARNING (CWE-682): [#def833]
samba-4.22.1/source3/utils/log2pcaphex.c:235: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  233|   	assert(fscanf(in, "  smb_tid=%d\n", &tmp)); memcpy(buffer+smb_tid, &tmp, 2); line_num++;
#  234|   	assert(fscanf(in, "  smb_pid=%d\n", &tmp)); memcpy(buffer+smb_pid, &tmp, 2); line_num++;
#  235|-> 	assert(fscanf(in, "  smb_uid=%d\n", &tmp)); memcpy(buffer+smb_uid, &tmp, 2); line_num++;
#  236|   	assert(fscanf(in, "  smb_mid=%d\n", &tmp)); memcpy(buffer+smb_mid, &tmp, 2); line_num++;
#  237|   	assert(fscanf(in, "  smt_wct=%d\n", &tmp)); buffer[smb_wct] = tmp; line_num++;

Error: CPPCHECK_WARNING (CWE-682): [#def834]
samba-4.22.1/source3/utils/log2pcaphex.c:236: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  234|   	assert(fscanf(in, "  smb_pid=%d\n", &tmp)); memcpy(buffer+smb_pid, &tmp, 2); line_num++;
#  235|   	assert(fscanf(in, "  smb_uid=%d\n", &tmp)); memcpy(buffer+smb_uid, &tmp, 2); line_num++;
#  236|-> 	assert(fscanf(in, "  smb_mid=%d\n", &tmp)); memcpy(buffer+smb_mid, &tmp, 2); line_num++;
#  237|   	assert(fscanf(in, "  smt_wct=%d\n", &tmp)); buffer[smb_wct] = tmp; line_num++;
#  238|   	for(i = 0; i < buffer[smb_wct]; i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def835]
samba-4.22.1/source3/utils/log2pcaphex.c:237: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  235|   	assert(fscanf(in, "  smb_uid=%d\n", &tmp)); memcpy(buffer+smb_uid, &tmp, 2); line_num++;
#  236|   	assert(fscanf(in, "  smb_mid=%d\n", &tmp)); memcpy(buffer+smb_mid, &tmp, 2); line_num++;
#  237|-> 	assert(fscanf(in, "  smt_wct=%d\n", &tmp)); buffer[smb_wct] = tmp; line_num++;
#  238|   	for(i = 0; i < buffer[smb_wct]; i++) {
#  239|   		assert(fscanf(in, "  smb_vwv[%*3d]=%*5d (0x%X)\n", &tmp)); line_num++;

Error: CPPCHECK_WARNING (CWE-476): [#def836]
samba-4.22.1/source3/utils/log2pcaphex.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  236|   	assert(fscanf(in, "  smb_mid=%d\n", &tmp)); memcpy(buffer+smb_mid, &tmp, 2); line_num++;
#  237|   	assert(fscanf(in, "  smt_wct=%d\n", &tmp)); buffer[smb_wct] = tmp; line_num++;
#  238|-> 	for(i = 0; i < buffer[smb_wct]; i++) {
#  239|   		assert(fscanf(in, "  smb_vwv[%*3d]=%*5d (0x%X)\n", &tmp)); line_num++;
#  240|   		memcpy(buffer+smb_vwv+i*2, &tmp, 2);

Error: CPPCHECK_WARNING (CWE-682): [#def837]
samba-4.22.1/source3/utils/log2pcaphex.c:240: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  238|   	for(i = 0; i < buffer[smb_wct]; i++) {
#  239|   		assert(fscanf(in, "  smb_vwv[%*3d]=%*5d (0x%X)\n", &tmp)); line_num++;
#  240|-> 		memcpy(buffer+smb_vwv+i*2, &tmp, 2);
#  241|   	}
#  242|   

Error: CPPCHECK_WARNING (CWE-476): [#def838]
samba-4.22.1/source3/utils/log2pcaphex.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  241|   	}
#  242|   
#  243|-> 	*data_offset = smb_vwv+buffer[smb_wct]*2;
#  244|   	assert(fscanf(in, "  smb_bcc=%ld\n", data_length)); buffer[(*data_offset)] = *data_length; line_num++;
#  245|   	(*data_offset)+=2;

Error: CPPCHECK_WARNING (CWE-476): [#def839]
samba-4.22.1/source3/utils/log2pcaphex.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#  242|   
#  243|   	*data_offset = smb_vwv+buffer[smb_wct]*2;
#  244|-> 	assert(fscanf(in, "  smb_bcc=%ld\n", data_length)); buffer[(*data_offset)] = *data_length; line_num++;
#  245|   	(*data_offset)+=2;
#  246|   	*_buffer = buffer;

Error: CPPCHECK_WARNING (CWE-476): [#def840]
samba-4.22.1/source3/utils/net_rap.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sharename
#  244|   
#  245|   	sharename = SMB_STRDUP(argv[0]);
#  246|-> 	p = strchr(sharename, '=');
#  247|   	if (p == NULL) {
#  248|   		d_printf(_("Server path not specified\n"));

Error: CPPCHECK_WARNING (CWE-457): [#def841]
samba-4.22.1/source3/utils/regedit_treeview.c:312: warning[uninitvar]: Uninitialized variable: rv.w
#  310|   	talloc_free(array);
#  311|   
#  312|-> 	return rv;
#  313|   }
#  314|   

Error: CPPCHECK_WARNING (CWE-457): [#def842]
samba-4.22.1/source3/utils/regedit_valuelist.c:378: warning[uninitvar]: Uninitialized variable: rv.w
#  376|   	vl->values = new_items;
#  377|   
#  378|-> 	return rv;
#  379|   }
#  380|   

Error: CPPCHECK_WARNING (CWE-476): [#def843]
samba-4.22.1/source3/utils/smbget.c:351: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
#  349|   	}
#  350|   
#  351|-> 	fprintf(stderr, "\r[%s] %s", filename, status);
#  352|   
#  353|   	free(filename);

Error: CPPCHECK_WARNING (CWE-476): [#def844]
samba-4.22.1/source3/winbindd/idmap.c:182: error[ctunullpointer]: Null pointer dereference: buf
#  180|   static int idmap_config_name(const char *domname, char *buf, size_t buflen)
#  181|   {
#  182|-> 	int len = snprintf(buf, buflen, "idmap config %s", domname);
#  183|   	SMB_ASSERT(len > 0);
#  184|   	return len + 1;

Error: CPPCHECK_WARNING (CWE-476): [#def845]
samba-4.22.1/source3/winbindd/idmap.c:182: warning[nullPointer]: Possible null pointer dereference: buf
#  180|   static int idmap_config_name(const char *domname, char *buf, size_t buflen)
#  181|   {
#  182|-> 	int len = snprintf(buf, buflen, "idmap config %s", domname);
#  183|   	SMB_ASSERT(len > 0);
#  184|   	return len + 1;

Error: CPPCHECK_WARNING (CWE-457): [#def846]
samba-4.22.1/source3/winbindd/winbindd_cache.c:527: error[uninitvar]: Uninitialized variable: buf
#  525|   	SIVAL(buf, 4, last_seq_check);
#  526|   
#  527|-> 	ret = tdb_store(wcache->tdb, key, make_tdb_data(buf, sizeof(buf)),
#  528|   			TDB_REPLACE);
#  529|   	if (ret != 0) {

Error: CPPCHECK_WARNING (CWE-457): [#def847]
samba-4.22.1/source4/dsdb/common/util_links.c:40: error[uninitvar]: Uninitialized variable: v2_data
#   38|   	struct ldb_val v1 = data_blob_const(v1_data, sizeof(v1_data));
#   39|   	uint8_t v2_data[16];
#   40|-> 	struct ldb_val v2 = data_blob_const(v2_data, sizeof(v2_data));
#   41|   
#   42|   	/* This can't fail */

Error: CPPCHECK_WARNING (CWE-457): [#def848]
samba-4.22.1/source4/dsdb/samdb/ldb_modules/repl_meta_data.c:1305: error[uninitvar]: Uninitialized variable: guid_data
# 1303|   		guid = GUID_random();
# 1304|   
# 1305|-> 		guid_blob_stack = data_blob_const(guid_data, sizeof(guid_data));
# 1306|   
# 1307|   		/* This can't fail */

Error: COMPILER_WARNING (CWE-477): [#def849]
samba-4.22.1/source4/kdc/mit_samba.c: scope_hint: In function ‘mit_samba_context_init’
samba-4.22.1/source4/kdc/mit_samba.c:94:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#   94 |         tevent_loop_allow_nesting(base_ctx.ev_ctx);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/bin/default/include/public/ldb.h:51: included_from: Included from here.
samba-4.22.1/source4/dsdb/samdb/samdb.h:55: included_from: Included from here.
samba-4.22.1/source4/kdc/mit_samba.c:26: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#   92|   		goto done;
#   93|   	}
#   94|-> 	tevent_loop_allow_nesting(base_ctx.ev_ctx);
#   95|   	base_ctx.lp_ctx = loadparm_init_global(false);
#   96|   	if (!base_ctx.lp_ctx) {

Error: COMPILER_WARNING (CWE-477): [#def850]
samba-4.22.1/source4/lib/events/tevent_s4.c: scope_hint: In function ‘s4_event_context_init’
samba-4.22.1/source4/lib/events/tevent_s4.c:37:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#   37 |                 tevent_loop_allow_nesting(ev);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source4/lib/events/events.h:3: included_from: Included from here.
samba-4.22.1/source4/lib/events/tevent_s4.c:21: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 2676 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#   35|   	if (ev) {
#   36|   		samba_tevent_set_debug(ev, "s4_tevent");
#   37|-> 		tevent_loop_allow_nesting(ev);
#   38|   	}
#   39|   	return ev;

Error: COMPILER_WARNING (CWE-477): [#def851]
samba-4.22.1/source4/lib/messaging/tests/irpc.c: scope_hint: In function ‘test_addone’
samba-4.22.1/source4/lib/messaging/tests/irpc.c:109:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#  109 |         dcerpc_binding_handle_set_sync_ev(irpc_handle, data->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.22.1/bin/default/librpc/gen_ndr/ndr_echo_c.h:1: included_from: Included from here.
samba-4.22.1/source4/lib/messaging/tests/irpc.c:26: included_from: Included from here.
samba-4.22.1/librpc/rpc/rpc_common.h:257:19: note: declared here
#  257 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h,
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  107|   	 * as client and server use the same loop.
#  108|   	 */
#  109|-> 	dcerpc_binding_handle_set_sync_ev(irpc_handle, data->ev);
#  110|   	status = dcerpc_echo_AddOne_r(irpc_handle, test, &r);
#  111|   	test_debug = false;

Error: COMPILER_WARNING (CWE-477): [#def852]
samba-4.22.1/source4/lib/messaging/tests/irpc.c: scope_hint: In function ‘test_echodata’
samba-4.22.1/source4/lib/messaging/tests/irpc.c:148:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#  148 |         dcerpc_binding_handle_set_sync_ev(irpc_handle, data->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/librpc/rpc/rpc_common.h:257:19: note: declared here
#  257 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h,
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  146|   	 * as client and server use the same loop.
#  147|   	 */
#  148|-> 	dcerpc_binding_handle_set_sync_ev(irpc_handle, data->ev);
#  149|   	status = dcerpc_echo_EchoData_r(irpc_handle, mem_ctx, &r);
#  150|   	torture_assert_ntstatus_ok(tctx, status, "EchoData failed");

Error: CPPCHECK_WARNING (CWE-457): [#def853]
samba-4.22.1/source4/lib/registry/patchfile_preg.c:78: error[uninitvar]: Uninitialized variable: &buf
#   76|   	preg_write_utf16(data->fd, ";");
#   77|   	SIVAL(&buf, 0, value_type);
#   78|-> 	sys_write_v(data->fd, &buf, sizeof(uint32_t));
#   79|   	preg_write_utf16(data->fd, ";");
#   80|   	SIVAL(&buf, 0, value_data.length);

Error: CPPCHECK_WARNING (CWE-457): [#def854]
samba-4.22.1/source4/lib/registry/tests/registry.c:375: error[uninitvar]: Uninitialized variable: data
#  373|   
#  374|   	error = reg_val_set(subkey, "Answer", REG_DWORD,
#  375|-> 			    data_blob_talloc(tctx, data, sizeof(data)));
#  376|   	torture_assert_werr_ok (tctx, error, "setting value");
#  377|   

Error: CPPCHECK_WARNING (CWE-457): [#def855]
samba-4.22.1/source4/lib/registry/tests/registry.c:536: error[uninitvar]: Uninitialized variable: value
#  534|   
#  535|   	error = reg_val_set(subkey, "bar", REG_DWORD,
#  536|-> 			    data_blob_talloc(tctx, value, sizeof(value)));
#  537|   	torture_assert_werr_ok (tctx, error, "setting value");
#  538|   

Error: CPPCHECK_WARNING (CWE-476): [#def856]
samba-4.22.1/source4/libcli/clideltree.c:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: n
#   41|   
#   42|   	n = strdup(name);
#   43|-> 	n[strlen(n)-1] = 0;
#   44|   	if (asprintf(&s, "%s%s", n, finfo->name) < 0) {
#   45|   		free(n);

Error: CPPCHECK_WARNING (CWE-476): [#def857]
samba-4.22.1/source4/libcli/clifile.c:699: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path2
#  697|   	path2 = strdup(path);
#  698|   	trim_string(path2,NULL,"\\");
#  699|-> 	if (!*path2) {
#  700|   		free(path2);
#  701|   		path2 = strdup("\\");

Error: CPPCHECK_WARNING (CWE-457): [#def858]
samba-4.22.1/source4/libcli/smb2/create.c:93: error[uninitvar]: Uninitialized variable: data
#   91|   		SBVAL(data, 0, io->in.alloc_size);
#   92|   		status = smb2_create_blob_add(req, &blobs,
#   93|-> 					      SMB2_CREATE_TAG_ALSI, data_blob_const(data, 8));
#   94|   		if (!NT_STATUS_IS_OK(status)) {
#   95|   			talloc_free(req);

Error: CPPCHECK_WARNING (CWE-457): [#def859]
samba-4.22.1/source4/libcli/smb2/create.c:169: error[uninitvar]: Uninitialized variable: data
#  167|   		SBVAL(data, 0, io->in.timewarp);		
#  168|   		status = smb2_create_blob_add(req, &blobs,
#  169|-> 					      SMB2_CREATE_TAG_TWRP, data_blob_const(data, 8));
#  170|   		if (!NT_STATUS_IS_OK(status)) {
#  171|   			talloc_free(req);

Error: COMPILER_WARNING (CWE-477): [#def860]
samba-4.22.1/source4/librpc/rpc/dcerpc.c: scope_hint: In function ‘dcerpc_pipe_binding_handle’
samba-4.22.1/source4/librpc/rpc/dcerpc.c:747:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#  747 |         dcerpc_binding_handle_set_sync_ev(h, p->conn->event_ctx);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.22.1/source4/librpc/rpc/dcerpc.c:30: included_from: Included from here.
samba-4.22.1/librpc/rpc/rpc_common.h:257:19: note: declared here
#  257 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h,
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  745|   	hs->p = p;
#  746|   
#  747|-> 	dcerpc_binding_handle_set_sync_ev(h, p->conn->event_ctx);
#  748|   
#  749|   	return h;

Error: COMPILER_WARNING (CWE-477): [#def861]
samba-4.22.1/source4/librpc/rpc/pyrpc_util.c: scope_hint: In function ‘pyrpc_irpc_connect’
samba-4.22.1/source4/librpc/rpc/pyrpc_util.c:94:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#   94 |         dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.22.1/source4/librpc/rpc/pyrpc_util.c:30: included_from: Included from here.
samba-4.22.1/librpc/rpc/rpc_common.h:257:19: note: declared here
#  257 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h,
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   92|   	 * but as there's no top level event loop it's not that critical.
#   93|   	 */
#   94|-> 	dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
#   95|   
#   96|   	return NT_STATUS_OK;

Error: CPPCHECK_WARNING (CWE-457): [#def862]
samba-4.22.1/source4/rpc_server/drsuapi/getncchanges.c:2086: warning[uninitvar]: Uninitialized variable: source_guid.length
# 2084|   
# 2085|   		if (!NT_STATUS_IS_OK(status)
# 2086|-> 				|| source_guid.length != sizeof(guid_array[0].source_guid)) {
# 2087|   			DEBUG(0,(__location__ ": Bad la guid in sort\n"));
# 2088|   			TALLOC_FREE(frame);

Error: CPPCHECK_WARNING (CWE-457): [#def863]
samba-4.22.1/source4/rpc_server/samr/dcesrv_samr.c:2099: warning[uninitvar]: Uninitialized variables: res.dn, res.num_elements, res.elements
# 2097|   		struct dom_sid *alias_sid;
# 2098|   
# 2099|-> 		alias_sid = samdb_result_dom_sid(mem_ctx, res[i], "objectSid");
# 2100|   		if (alias_sid == NULL) {
# 2101|   			return NT_STATUS_INTERNAL_DB_CORRUPTION;

Error: CPPCHECK_WARNING (CWE-457): [#def864]
samba-4.22.1/source4/rpc_server/samr/dcesrv_samr.c:4448: warning[uninitvar]: Uninitialized variable: res_memberof
# 4446|   
# 4447|   		group_sid = samdb_result_dom_sid(mem_ctx,
# 4448|-> 						 res_memberof->msgs[i],
# 4449|   						 "objectSid");
# 4450|   		if (group_sid == NULL) {

Error: COMPILER_WARNING (CWE-477): [#def865]
samba-4.22.1/source4/samba/service_task.c: scope_hint: In function ‘task_server_terminate’
samba-4.22.1/source4/samba/service_task.c:49:25: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#   49 |                         dcerpc_binding_handle_set_sync_ev(irpc_handle, event_ctx);
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.22.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.22.1/bin/default/source4/librpc/gen_ndr/ndr_irpc_c.h:1: included_from: Included from here.
samba-4.22.1/source4/samba/service_task.c:26: included_from: Included from here.
samba-4.22.1/librpc/rpc/rpc_common.h:257:19: note: declared here
#  257 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h,
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   47|   		if (irpc_handle != NULL) {
#   48|   			/* Note: this makes use of nested event loops... */
#   49|-> 			dcerpc_binding_handle_set_sync_ev(irpc_handle, event_ctx);
#   50|   			r.in.reason = reason;
#   51|   			dcerpc_samba_terminate_r(irpc_handle, task, &r);

Error: CPPCHECK_WARNING (CWE-457): [#def866]
samba-4.22.1/source4/torture/basic/utable.c:56: error[uninitvar]: Uninitialized variable: c2
#   54|   		len = 0;
#   55|   		if (!convert_string(CH_UTF16, CH_UNIX,
#   56|-> 				     c2, 2, 
#   57|   				     p, sizeof(fname)-strlen(fname), &len)) {
#   58|   			torture_comment(tctx, "convert_string failed [%s]\n",

Error: CPPCHECK_WARNING (CWE-457): [#def867]
samba-4.22.1/source4/torture/basic/utable.c:120: error[uninitvar]: Uninitialized variable: c2
#  118|   
#  119|   	if (!convert_string(CH_UTF16, CH_UNIX,
#  120|-> 			     c2, 2, 
#  121|   			     p, sizeof(fname)-strlen(fname), &len)) {
#  122|   		return NULL;

Error: CPPCHECK_WARNING (CWE-628): [#def868]
samba-4.22.1/source4/torture/basic/utable.c:149: warning[invalidFunctionArg]: Invalid isprint() argument nr 1. The value is 65535 but the valid values are '0:255'.
#  147|   		if (c == '.' || c == '\\') continue;
#  148|   
#  149|-> 		torture_comment(tctx, "%04x (%c)\n", c, isprint(c)?c:'.');
#  150|   
#  151|   		fname = form_name(c);

Error: CPPCHECK_WARNING (CWE-457): [#def869]
samba-4.22.1/source4/torture/locktest.c:569: error[uninitvar]: Uninitialized variable: &seed
#  567|   	struct poptOption long_options[] = {
#  568|   		POPT_AUTOHELP
#  569|-> 		{"seed",	  0, POPT_ARG_INT,  &seed, 	0,	"Seed to use for randomizer", 	NULL},
#  570|   		{"num-ops",	  0, POPT_ARG_INT,  &numops, 	0, 	"num ops",	NULL},
#  571|   		{"lockrange",     0, POPT_ARG_INT,  &lock_range,0,      "locking range", NULL},

Error: CPPCHECK_WARNING (CWE-457): [#def870]
samba-4.22.1/source4/torture/masktest.c:309: error[uninitvar]: Uninitialized variable: &seed
#  307|   	struct poptOption long_options[] = {
#  308|   		POPT_AUTOHELP
#  309|-> 		{"seed",	  0, POPT_ARG_INT,  &seed, 	0,	"Seed to use for randomizer", 	NULL},
#  310|   		{"num-ops",	  0, POPT_ARG_INT,  &NumLoops, 	0, 	"num ops",	NULL},
#  311|   		{"maxlength",	  0, POPT_ARG_INT,  &max_length,0, 	"maximum length",	NULL},

Error: CPPCHECK_WARNING (CWE-476): [#def871]
samba-4.22.1/source4/torture/nbench/nbio.c:553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  551|   
#  552|   	buf = malloc(size);
#  553|-> 	memset(buf, 0xab, size);
#  554|   
#  555|   	io.writex.level = RAW_WRITE_WRITEX;

Error: CPPCHECK_WARNING (CWE-476): [#def872]
samba-4.22.1/source4/torture/nbench/nbio.c:595: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  593|   	buf = malloc(size);
#  594|   
#  595|-> 	memset(buf, 0x12, size);
#  596|   
#  597|   	io.write.level = RAW_WRITE_WRITE;

Error: CPPCHECK_WARNING (CWE-457): [#def873]
samba-4.22.1/source4/torture/raw/lockbench.c:374: warning[uninitvar]: Uninitialized variables: cli.options, cli.sock, cli.transport, cli.session, cli.tree, cli.substitute, cli.lsa
#  372|   	num_connected = i;
#  373|   
#  374|-> 	if (!torture_setup_dir(cli, BASEDIR)) {
#  375|   		goto failed;
#  376|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def874]
samba-4.22.1/source4/torture/raw/offline.c:434: warning[uninitvar]: Uninitialized variables: cli.options, cli.sock, cli.transport, cli.session, cli.tree, cli.substitute, cli.lsa
#  432|   	num_connected = i;
#  433|   
#  434|-> 	if (!torture_setup_dir(cli, BASEDIR)) {
#  435|   		goto failed;
#  436|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def875]
samba-4.22.1/source4/torture/raw/search.c:344: error[uninitvar]: Uninitialized variable: params
#  342|   	SSVAL(params, 0, 0);
#  343|   	SSVAL(params, 2, SMB_SET_CIFS_UNIX_INFO);
#  344|-> 	tp.in.params = data_blob_talloc(tctx, params, 4);
#  345|   	tp.in.data = data_blob_talloc(tctx, data, 12);
#  346|   	return smb_raw_trans2(cli_unix->tree, tctx, &tp);

Error: CPPCHECK_WARNING (CWE-457): [#def876]
samba-4.22.1/source4/torture/raw/search.c:345: error[uninitvar]: Uninitialized variable: data
#  343|   	SSVAL(params, 2, SMB_SET_CIFS_UNIX_INFO);
#  344|   	tp.in.params = data_blob_talloc(tctx, params, 4);
#  345|-> 	tp.in.data = data_blob_talloc(tctx, data, 12);
#  346|   	return smb_raw_trans2(cli_unix->tree, tctx, &tp);
#  347|   }

Error: CPPCHECK_WARNING (CWE-823): [#def877]
samba-4.22.1/source4/torture/smb2/lease.c:1521: error[arrayIndexOutOfBounds]: Array 'levels[4]' accessed at index 7, which is out of bounds.
# 1519|   	for (i = 0; i < sizeof(levels); i++) {
# 1520|   		c = (struct smb2_create) {
# 1521|-> 			.in.oplock_level = levels[i],
# 1522|   			.in.desired_access = SEC_RIGHTS_DIR_READ,
# 1523|   			.in.create_options = NTCREATEX_OPTIONS_DIRECTORY,

Error: CPPCHECK_WARNING (CWE-476): [#def878]
samba-4.22.1/source4/torture/smbtorture.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: secret
#  256|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  257|   
#  258|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  259|   
#  260|   }

Error: CPPCHECK_WARNING (CWE-457): [#def879]
samba-4.22.1/source4/torture/unix/unix_info2.c:100: error[uninitvar]: Uninitialized variable: params
#   98|   	SSVAL(params, 0, 0);
#   99|   	SSVAL(params, 2, SMB_SET_CIFS_UNIX_INFO);
#  100|-> 	tp.in.params = data_blob_talloc(tctx, params, 4);
#  101|   	tp.in.data = data_blob_talloc(tctx, data, 12);
#  102|   

Error: CPPCHECK_WARNING (CWE-457): [#def880]
samba-4.22.1/source4/torture/unix/unix_info2.c:101: error[uninitvar]: Uninitialized variable: data
#   99|   	SSVAL(params, 2, SMB_SET_CIFS_UNIX_INFO);
#  100|   	tp.in.params = data_blob_talloc(tctx, params, 4);
#  101|-> 	tp.in.data = data_blob_talloc(tctx, data, 12);
#  102|   
#  103|   	status = smb_raw_trans2(cli->tree, tctx, &tp);

Error: CPPCHECK_WARNING (CWE-457): [#def881]
samba-4.22.1/source4/torture/unix/whoami.c:169: error[uninitvar]: Uninitialized variable: &info_level
#  167|   	tp.in.trans_name = NULL;
#  168|   	SSVAL(&info_level, 0, SMB_QFS_POSIX_WHOAMI);
#  169|-> 	tp.in.params = data_blob_talloc(mem_ctx, &info_level, 2);
#  170|   	tp.in.data = data_blob_talloc(mem_ctx, NULL, 0);
#  171|   

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-108.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesamba-4.22.1-1.fc43
store-results-to/tmp/tmpi0d7tb73/samba-4.22.1-1.fc43.tar.xz
time-created2025-04-25 16:13:44
time-finished2025-04-25 16:55:02
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpi0d7tb73/samba-4.22.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpi0d7tb73/samba-4.22.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9