samba-4.21.1-9.fc42

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: GCC_ANALYZER_WARNING (CWE-476): [#def10]
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec.c: scope_hint: In function ‘gensec_final_auth_type’
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec.c:201:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gensec_security’
#  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): [#def11]
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec.c: scope_hint: In function ‘gensec_update’
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec.c:382:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  382 |         tevent_loop_allow_nesting(ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def12]
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c: scope_hint: In function ‘gensec_start_mech_by_ops’
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c:849:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gensec_security’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c:23: included_from: Included from here.
#  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): [#def13]
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c: scope_hint: In function ‘gensec_start_mech_by_sasl_name’
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c:954:30: warning[-Wanalyzer-null-dereference]: 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): [#def14]
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c: scope_hint: In function ‘gensec_start_mech_by_name’
samba-4.21.1-build/samba-4.21.1/auth/gensec/gensec_start.c:1003:30: warning[-Wanalyzer-null-dereference]: 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): [#def15]
samba-4.21.1-build/samba-4.21.1/auth/kerberos/kerberos_pac.c: scope_hint: In function ‘kerberos_pac_logon_info’
samba-4.21.1-build/samba-4.21.1/auth/kerberos/kerberos_pac.c:468:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pac_data’
#  466|   
#  467|   	*logon_info = NULL;
#  468|-> 	for (i=0; i < pac_data->num_buffers; i++) {
#  469|   		if (pac_data->buffers[i].type != PAC_TYPE_LOGON_INFO) {
#  470|   			continue;

Error: CPPCHECK_WARNING (CWE-758): [#def16]
samba-4.21.1-build/samba-4.21.1/bin/.conf_check_f8e5fef43e8f679fd0f8691c64e32ea6/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): [#def17]
samba-4.21.1-build/samba-4.21.1/bin/.conf_check_f8e5fef43e8f679fd0f8691c64e32ea6/libdir/liblc1.c:2: error[resourceLeak]: Resource leak: f

Error: COMPILER_WARNING (CWE-563): [#def18]
samba-4.21.1-build/samba-4.21.1/bin/.conf_check_f8e5fef43e8f679fd0f8691c64e32ea6/libdir/liblc1.c: scope_hint: In function ‘lib_func’
samba-4.21.1-build/samba-4.21.1/bin/.conf_check_f8e5fef43e8f679fd0f8691c64e32ea6/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): [#def19]
samba-4.21.1-build/samba-4.21.1/bin/.conf_check_f8e5fef43e8f679fd0f8691c64e32ea6/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-688): [#def20]
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2343:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5111:25: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5530:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5111:25: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5111:25: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5111:25: note: in expansion of macro ‘TYPESAFE_QSORT’
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
# 2341|   do { \
# 2342|   	if (numel > 1) { \
# 2343|-> 		qsort(base, numel, sizeof((base)[0]), (int (*)(const void *, const void *))comparison); \
# 2344|   		if (0) { \
# 2345|   			comparison(&((base)[0]), &((base)[1])); \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘dsdb_load_udv_v2’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2343:17: warning[-Wanalyzer-null-argument]: use of NULL ‘v2’ where non-null expected
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5103:17: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5530:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2342:13: note: in definition of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5103:17: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5103:17: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5103:17: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5103:17: note: in expansion of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:49: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
# 2341|   do { \
# 2342|   	if (numel > 1) { \
# 2343|-> 		qsort(base, numel, sizeof((base)[0]), (int (*)(const void *, const void *))comparison); \
# 2344|   		if (0) { \
# 2345|   			comparison(&((base)[0]), &((base)[1])); \

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:53: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:27: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_search_against_transaction_callback1’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb_errors.h:69:49: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:1520:24: note: in expansion of macro ‘LDB_SUCCESS’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:1520:24: note: in expansion of macro ‘LDB_SUCCESS’
#   67|      successfully.
#   68|   */
#   69|-> #define LDB_SUCCESS				0
#   70|   
#   71|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_lexer.c: scope_hint: In function ‘yy_create_buffer’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1649:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64, yyscanner)’
# 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): [#def24]
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_lexer.c: scope_hint: In function ‘yy_init_buffer’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1691:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
# 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): [#def25]
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_lexer.c: scope_hint: In function ‘yy_scan_buffer’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_lexer.c:1909:25: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(n,  yyscanner)’
# 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): [#def26]
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c: scope_hint: In function ‘yyparse’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:437:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:88:40: note: in definition of macro ‘YY_CAST’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:423:25: note: in expansion of macro ‘YYMALLOC’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1085:20: note: in expansion of macro ‘YYSTACK_ALLOC’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1155:17: note: in expansion of macro ‘YYTRANSLATE’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:88:40: note: in definition of macro ‘YY_CAST’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:423:25: note: in expansion of macro ‘YYMALLOC’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1085:20: note: in expansion of macro ‘YYSTACK_ALLOC’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:88:40: note: in definition of macro ‘YY_CAST’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:423:25: note: in expansion of macro ‘YYMALLOC’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1085:20: note: in expansion of macro ‘YYSTACK_ALLOC’
#  435|   #  endif
#  436|   #  ifndef YYMALLOC
#  437|-> #   define YYMALLOC malloc
#  438|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  439|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def27]
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:497:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  495|   #  if defined __GNUC__ && 1 < __GNUC__
#  496|   #   define YYCOPY(Dst, Src, Count) \
#  497|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  498|   #  else
#  499|   #   define YYCOPY(Dst, Src, Count)              \

Error: COMPILER_WARNING (CWE-1164): [#def28]
samba-4.21.1-build/samba-4.21.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): [#def29]
samba-4.21.1-build/samba-4.21.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): [#def30]
samba-4.21.1-build/samba-4.21.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): [#def31]
samba-4.21.1-build/samba-4.21.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): [#def32]
samba-4.21.1-build/samba-4.21.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): [#def33]
samba-4.21.1-build/samba-4.21.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): [#def34]
samba-4.21.1-build/samba-4.21.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): [#def35]
samba-4.21.1-build/samba-4.21.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): [#def36]
samba-4.21.1-build/samba-4.21.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): [#def37]
samba-4.21.1-build/samba-4.21.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): [#def38]
samba-4.21.1-build/samba-4.21.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): [#def39]
samba-4.21.1-build/samba-4.21.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): [#def40]
samba-4.21.1-build/samba-4.21.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): [#def41]
samba-4.21.1-build/samba-4.21.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): [#def42]
samba-4.21.1-build/samba-4.21.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): [#def43]
samba-4.21.1-build/samba-4.21.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): [#def44]
samba-4.21.1-build/samba-4.21.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): [#def45]
samba-4.21.1-build/samba-4.21.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): [#def46]
samba-4.21.1-build/samba-4.21.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): [#def47]
samba-4.21.1-build/samba-4.21.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): [#def48]
samba-4.21.1-build/samba-4.21.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): [#def49]
samba-4.21.1-build/samba-4.21.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): [#def50]
samba-4.21.1-build/samba-4.21.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): [#def51]
samba-4.21.1-build/samba-4.21.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): [#def52]
samba-4.21.1-build/samba-4.21.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): [#def53]
samba-4.21.1-build/samba-4.21.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): [#def54]
samba-4.21.1-build/samba-4.21.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): [#def55]
samba-4.21.1-build/samba-4.21.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): [#def56]
samba-4.21.1-build/samba-4.21.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): [#def57]
samba-4.21.1-build/samba-4.21.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): [#def58]
samba-4.21.1-build/samba-4.21.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): [#def59]
samba-4.21.1-build/samba-4.21.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): [#def60]
samba-4.21.1-build/samba-4.21.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): [#def61]
samba-4.21.1-build/samba-4.21.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): [#def62]
samba-4.21.1-build/samba-4.21.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): [#def63]
samba-4.21.1-build/samba-4.21.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): [#def64]
samba-4.21.1-build/samba-4.21.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): [#def65]
samba-4.21.1-build/samba-4.21.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): [#def66]
samba-4.21.1-build/samba-4.21.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): [#def67]
samba-4.21.1-build/samba-4.21.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): [#def68]
samba-4.21.1-build/samba-4.21.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): [#def69]
samba-4.21.1-build/samba-4.21.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): [#def70]
samba-4.21.1-build/samba-4.21.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): [#def71]
samba-4.21.1-build/samba-4.21.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): [#def72]
samba-4.21.1-build/samba-4.21.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): [#def73]
samba-4.21.1-build/samba-4.21.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): [#def74]
samba-4.21.1-build/samba-4.21.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): [#def75]
samba-4.21.1-build/samba-4.21.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): [#def76]
samba-4.21.1-build/samba-4.21.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): [#def77]
samba-4.21.1-build/samba-4.21.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): [#def78]
samba-4.21.1-build/samba-4.21.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): [#def79]
samba-4.21.1-build/samba-4.21.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): [#def80]
samba-4.21.1-build/samba-4.21.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): [#def81]
samba-4.21.1-build/samba-4.21.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): [#def82]
samba-4.21.1-build/samba-4.21.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): [#def83]
samba-4.21.1-build/samba-4.21.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): [#def84]
samba-4.21.1-build/samba-4.21.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): [#def85]
samba-4.21.1-build/samba-4.21.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): [#def86]
samba-4.21.1-build/samba-4.21.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): [#def87]
samba-4.21.1-build/samba-4.21.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): [#def88]
samba-4.21.1-build/samba-4.21.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): [#def89]
samba-4.21.1-build/samba-4.21.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): [#def90]
samba-4.21.1-build/samba-4.21.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): [#def91]
samba-4.21.1-build/samba-4.21.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): [#def92]
samba-4.21.1-build/samba-4.21.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): [#def93]
samba-4.21.1-build/samba-4.21.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): [#def94]
samba-4.21.1-build/samba-4.21.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): [#def95]
samba-4.21.1-build/samba-4.21.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): [#def96]
samba-4.21.1-build/samba-4.21.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): [#def97]
samba-4.21.1-build/samba-4.21.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): [#def98]
samba-4.21.1-build/samba-4.21.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): [#def99]
samba-4.21.1-build/samba-4.21.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): [#def100]
samba-4.21.1-build/samba-4.21.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): [#def101]
samba-4.21.1-build/samba-4.21.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): [#def102]
samba-4.21.1-build/samba-4.21.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): [#def103]
samba-4.21.1-build/samba-4.21.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): [#def104]
samba-4.21.1-build/samba-4.21.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): [#def105]
samba-4.21.1-build/samba-4.21.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): [#def106]
samba-4.21.1-build/samba-4.21.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): [#def107]
samba-4.21.1-build/samba-4.21.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): [#def108]
samba-4.21.1-build/samba-4.21.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): [#def109]
samba-4.21.1-build/samba-4.21.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): [#def110]
samba-4.21.1-build/samba-4.21.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): [#def111]
samba-4.21.1-build/samba-4.21.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): [#def112]
samba-4.21.1-build/samba-4.21.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): [#def113]
samba-4.21.1-build/samba-4.21.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): [#def114]
samba-4.21.1-build/samba-4.21.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): [#def115]
samba-4.21.1-build/samba-4.21.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): [#def116]
samba-4.21.1-build/samba-4.21.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): [#def117]
samba-4.21.1-build/samba-4.21.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): [#def118]
samba-4.21.1-build/samba-4.21.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): [#def119]
samba-4.21.1-build/samba-4.21.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): [#def120]
samba-4.21.1-build/samba-4.21.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): [#def121]
samba-4.21.1-build/samba-4.21.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): [#def122]
samba-4.21.1-build/samba-4.21.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): [#def123]
samba-4.21.1-build/samba-4.21.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): [#def124]
samba-4.21.1-build/samba-4.21.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): [#def125]
samba-4.21.1-build/samba-4.21.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): [#def126]
samba-4.21.1-build/samba-4.21.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): [#def127]
samba-4.21.1-build/samba-4.21.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): [#def128]
samba-4.21.1-build/samba-4.21.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): [#def129]
samba-4.21.1-build/samba-4.21.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): [#def130]
samba-4.21.1-build/samba-4.21.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): [#def131]
samba-4.21.1-build/samba-4.21.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): [#def132]
samba-4.21.1-build/samba-4.21.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): [#def133]
samba-4.21.1-build/samba-4.21.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): [#def134]
samba-4.21.1-build/samba-4.21.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): [#def135]
samba-4.21.1-build/samba-4.21.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): [#def136]
samba-4.21.1-build/samba-4.21.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): [#def137]
samba-4.21.1-build/samba-4.21.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): [#def138]
samba-4.21.1-build/samba-4.21.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): [#def139]
samba-4.21.1-build/samba-4.21.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): [#def140]
samba-4.21.1-build/samba-4.21.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): [#def141]
samba-4.21.1-build/samba-4.21.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): [#def142]
samba-4.21.1-build/samba-4.21.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): [#def143]
samba-4.21.1-build/samba-4.21.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): [#def144]
samba-4.21.1-build/samba-4.21.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): [#def145]
samba-4.21.1-build/samba-4.21.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): [#def146]
samba-4.21.1-build/samba-4.21.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): [#def147]
samba-4.21.1-build/samba-4.21.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): [#def148]
samba-4.21.1-build/samba-4.21.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): [#def149]
samba-4.21.1-build/samba-4.21.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): [#def150]
samba-4.21.1-build/samba-4.21.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): [#def151]
samba-4.21.1-build/samba-4.21.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): [#def152]
samba-4.21.1-build/samba-4.21.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): [#def153]
samba-4.21.1-build/samba-4.21.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): [#def154]
samba-4.21.1-build/samba-4.21.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): [#def155]
samba-4.21.1-build/samba-4.21.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): [#def156]
samba-4.21.1-build/samba-4.21.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): [#def157]
samba-4.21.1-build/samba-4.21.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): [#def158]
samba-4.21.1-build/samba-4.21.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): [#def159]
samba-4.21.1-build/samba-4.21.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): [#def160]
samba-4.21.1-build/samba-4.21.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): [#def161]
samba-4.21.1-build/samba-4.21.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): [#def162]
samba-4.21.1-build/samba-4.21.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): [#def163]
samba-4.21.1-build/samba-4.21.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): [#def164]
samba-4.21.1-build/samba-4.21.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): [#def165]
samba-4.21.1-build/samba-4.21.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): [#def166]
samba-4.21.1-build/samba-4.21.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): [#def167]
samba-4.21.1-build/samba-4.21.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): [#def168]
samba-4.21.1-build/samba-4.21.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): [#def169]
samba-4.21.1-build/samba-4.21.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): [#def170]
samba-4.21.1-build/samba-4.21.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): [#def171]
samba-4.21.1-build/samba-4.21.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): [#def172]
samba-4.21.1-build/samba-4.21.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: CPPCHECK_WARNING (CWE-476): [#def173]
samba-4.21.1-build/samba-4.21.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): [#def174]
samba-4.21.1-build/samba-4.21.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): [#def175]
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c: scope_hint: In function ‘mdsyylparse’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:496:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:481:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1289:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:481:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1289:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:481:9: note: in expansion of macro ‘YYCOPY’
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1289:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  494|   #  if defined __GNUC__ && 1 < __GNUC__
#  495|   #   define YYCOPY(Dst, Src, Count) \
#  496|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  497|   #  else
#  498|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def176]
samba-4.21.1-build/samba-4.21.1/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1416:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.sval’
# 1414|        unconditionally makes the parser a bit smaller, and it avoids a
# 1415|        GCC warning that YYVAL may be used uninitialized.  */
# 1416|->   yyval = yyvsp[1-yylen];
# 1417|   
# 1418|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def177]
samba-4.21.1-build/samba-4.21.1/ctdb/common/ctdb_ltdb.c: scope_hint: In function ‘ctdb_trackingdb_add_pnn’
samba-4.21.1-build/samba-4.21.1/ctdb/common/ctdb_ltdb.c:359:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  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: GCC_ANALYZER_WARNING (CWE-457): [#def178]
samba-4.21.1-build/samba-4.21.1/ctdb/conf/conf_tool.c: scope_hint: In function ‘conf_tool_get’
samba-4.21.1-build/samba-4.21.1/ctdb/conf/conf_tool.c:147:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i_val’
#  145|   
#  146|   	case CONF_INTEGER:
#  147|-> 		printf("%d\n", i_val);
#  148|   		break;
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
samba-4.21.1-build/samba-4.21.1/ctdb/conf/conf_tool.c:151:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_val’
#  149|   
#  150|   	case CONF_BOOLEAN:
#  151|-> 		printf("%s\n", b_val ? "true" : "false");
#  152|   		break;
#  153|   	}

Error: GCC_ANALYZER_WARNING: [#def180]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_cluster_mutex.c: scope_hint: In function ‘ctdb_cluster_mutex’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_cluster_mutex.c:333:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_cluster_mutex.c:33: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_cluster_mutex.c:286:9: note: in expansion of macro ‘set_close_on_exec’
#  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): [#def181]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘ux_socket_bind’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:1228:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*ctdb.daemon.sd’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:36: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:1195:9: note: in expansion of macro ‘set_close_on_exec’
# 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: COMPILER_WARNING (CWE-477): [#def182]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘ctdb_start_daemon’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.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): [#def183]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘switch_from_server_to_client’
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-775): [#def184]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_lock.c: scope_hint: In function ‘ctdb_lock_schedule’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_lock.c:779:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#  777|   	lock_ctx->child = -1;
#  778|   	ret = pipe(lock_ctx->fd);
#  779|-> 	if (ret != 0) {
#  780|   		DEBUG(DEBUG_ERR, ("Failed to create pipe in ctdb_lock_schedule\n"));
#  781|   		return;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_logging.c: scope_hint: In function ‘ctdb_set_child_logging’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_logging.c:132:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
#  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): [#def186]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_logging.c:132:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
#  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): [#def187]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_logging.c:147:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 1)’
#  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): [#def188]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_logging.c:147:43: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(p[1], 2)’
#  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): [#def189]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_recovery_helper.c: scope_hint: In function ‘node_list_add’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_recovery_helper.c:120:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nlist’
#  118|   	unsigned int i;
#  119|   
#  120|-> 	if (nlist->count == nlist->size) {
#  121|   		return false;
#  122|   	}

Error: COMPILER_WARNING (CWE-477): [#def190]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdbd.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdbd.c:188:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
#  188 |         tevent_loop_allow_nesting(ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def191]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ipalloc_deterministic.c: scope_hint: In function ‘ipalloc_deterministic’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ipalloc_deterministic.c:160:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hn’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ipalloc_deterministic.c:31: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/ctdb/server/ipalloc_deterministic.c:128:9: note: in expansion of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/ctdb/common/logging.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/ctdb/server/ipalloc_deterministic.c:26: included_from: Included from here.
#  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): [#def192]
samba-4.21.1-build/samba-4.21.1/ctdb/tcp/tcp_connect.c: scope_hint: In function ‘ctdb_tcp_listen’
samba-4.21.1-build/samba-4.21.1/ctdb/tcp/tcp_connect.c:582:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.listen_fd’
samba-4.21.1-build/samba-4.21.1/ctdb/tcp/tcp_connect.c:30: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/ctdb/tcp/tcp_connect.c:570:9: note: in expansion of macro ‘set_close_on_exec’
#  580|   	}
#  581|   
#  582|-> 	if (listen(ctcp->listen_fd, 10) == -1) {
#  583|   		goto failed;
#  584|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
samba-4.21.1-build/samba-4.21.1/ctdb/tools/ctdb.c: scope_hint: In function ‘get_nodemap.part.0’
samba-4.21.1-build/samba-4.21.1/ctdb/tools/ctdb.c:204:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/ctdb/tools/ctdb.c: scope_hint: In function ‘get_nodemap.part.0’
#  202|   
#  203|   	node = get_node_by_pnn(nodemap, current_node);
#  204|-> 	if (node->flags & NODE_FLAGS_BANNED) {
#  205|   		/* Pick next node */
#  206|   		do {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
samba-4.21.1-build/samba-4.21.1/ctdb/tools/ctdb.c:209:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/ctdb/tools/ctdb.c: scope_hint: In function ‘get_nodemap.part.0’
samba-4.21.1-build/samba-4.21.1/ctdb/tools/ctdb.c: scope_hint: In function ‘get_nodemap.part.0’
#  207|   			current_node = (current_node + 1) % nodemap->num;
#  208|   			node = get_node_by_pnn(nodemap, current_node);
#  209|-> 			if (! (node->flags &
#  210|   			      (NODE_FLAGS_DELETED|NODE_FLAGS_DISCONNECTED))) {
#  211|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
samba-4.21.1-build/samba-4.21.1/ctdb/utils/tdb/tdb_mutex_check.c: scope_hint: In function ‘get_hash_chain’
samba-4.21.1-build/samba-4.21.1/ctdb/utils/tdb/tdb_mutex_check.c:69:24: warning[-Wanalyzer-malloc-leak]: leak of ‘key.dptr’
#   67|   	key.dptr = hex_decode(hex_key, &key.dsize);
#   68|   	if (key.dptr == NULL || key.dsize == 0) {
#   69|-> 		return -1;
#   70|   	}
#   71|   	hash = tdb_jenkins_hash(&key);

Error: COMPILER_WARNING (CWE-477): [#def196]
samba-4.21.1-build/samba-4.21.1/ctdb/utils/tdb/tdb_mutex_check.c: scope_hint: In function ‘check_one’
samba-4.21.1-build/samba-4.21.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
/usr/include/features.h:511: 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.21.1-build/samba-4.21.1/ctdb/utils/tdb/tdb_mutex_check.c:20: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include-fixed/pthread.h:868:12: note: declared here
#   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): [#def197]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testacl.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/examples/libsmbclient/testacl.c:5: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def198]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testacl2.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/examples/libsmbclient/testacl2.c:5: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def199]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testacl3.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testacl3.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   21 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testacl3.c:7: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-401): [#def200]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testacl3.c:46:27: warning[-Wanalyzer-malloc-leak]: leak of ‘the_acl’
#   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): [#def201]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testchmod.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testchmod.c:37:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testchmod.c:5: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   35|   	}
#   36|   
#   37|-> 	smbc_init(get_auth_data_fn, debug);
#   38|   
#   39|   	if (smbc_stat(pSmbPath, &st) < 0)

Error: COMPILER_WARNING (CWE-477): [#def202]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testfstatvfs.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testfstatvfs.c:22:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   22 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testfstatvfs.c:8: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def203]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testnotify.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testnotify.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testnotify.c:7: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def204]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testread.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testread.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   21 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testread.c:7: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def205]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testsmbc.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/examples/libsmbclient/testsmbc.c:29: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def206]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/teststat2.c: scope_hint: In function ‘gettime’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/teststat2.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, 0);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/teststat2.c:1: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def207]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/teststat3.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/teststat3.c:29:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/teststat3.c:1: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   27|   
#   28|   
#   29|->         smbc_init(get_auth_data_fn, 0);
#   30|   
#   31|           if (smbc_stat(pUrl, &st1) < 0)

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

Error: COMPILER_WARNING (CWE-477): [#def209]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testtruncate.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testtruncate.c:27:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   27 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testtruncate.c:6: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def210]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testutime.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testutime.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testutime.c:6: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def211]
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testwrite.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testwrite.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.21.1-build/samba-4.21.1/examples/libsmbclient/testwrite.c:7: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   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): [#def212]
samba-4.21.1-build/samba-4.21.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): [#def213]
samba-4.21.1-build/samba-4.21.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): [#def214]
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/krb5_samba.h:204:24: warning[-Wunused-but-set-variable]: variable ‘key’ set but not used
#  204 |         krb5_keyblock *key = NULL;
#      |                        ^~~
#  202|   	char tmp[2 * MAX_KEYLEN + 1] = { 0, };
#  203|   	krb5_enctype enctype = 0;
#  204|-> 	krb5_keyblock *key = NULL;
#  205|   	TALLOC_CTX *frame = talloc_stackframe();
#  206|   	krb5_error_code code;

Error: COMPILER_WARNING (CWE-563): [#def215]
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/krb5_samba.h:207:24: warning[-Wunused-variable]: unused variable ‘ptr’
#  207 |         const uint8_t *ptr = NULL;
#      |                        ^~~
#  205|   	TALLOC_CTX *frame = talloc_stackframe();
#  206|   	krb5_error_code code;
#  207|-> 	const uint8_t *ptr = NULL;
#  208|   	unsigned len;
#  209|   	int i;

Error: COMPILER_WARNING (CWE-563): [#def216]
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/krb5_samba.h:208:18: warning[-Wunused-variable]: unused variable ‘len’
#  208 |         unsigned len;
#      |                  ^~~
#  206|   	krb5_error_code code;
#  207|   	const uint8_t *ptr = NULL;
#  208|-> 	unsigned len;
#  209|   	int i;
#  210|   

Error: COMPILER_WARNING (CWE-563): [#def217]
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/gss_samba.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/gss_samba.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/krb5_samba.h: scope_hint: In function ‘samba_trace_keytab_entry’
samba-4.21.1-build/samba-4.21.1/lib/krb5_wrap/krb5_samba.h:209:13: warning[-Wunused-variable]: unused variable ‘i’
#  209 |         int i;
#      |             ^
#  207|   	const uint8_t *ptr = NULL;
#  208|   	unsigned len;
#  209|-> 	int i;
#  210|   
#  211|   	code = smb_krb5_unparse_name(frame,

Error: COMPILER_WARNING (CWE-477): [#def218]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb.c: scope_hint: In function ‘ldb_init’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb.c:121:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb.h:51: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb_private.h:43: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb.c:36: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
#  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): [#def219]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb.c: scope_hint: In function ‘ldb_handle_new’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb.c:761:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
/usr/include/tevent.h:2676:6: note: declared here
#  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): [#def220]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:731:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:562:33: note: in expansion of macro ‘PULL_LE_U32’
#  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): [#def221]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c: scope_hint: In function ‘ldb_unpack_data_flags_v1’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:731:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:562:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb.h:50: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb_private.h:43: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:34: included_from: Included from here.
#  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): [#def222]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c: scope_hint: In function ‘ldb_unpack_data_flags_v2’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:973:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:973:61: note: in expansion of macro ‘PULL_LE_U8’
#  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): [#def223]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:973:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:973:61: note: in expansion of macro ‘PULL_LE_U8’
#  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): [#def224]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:978:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:978:61: note: in expansion of macro ‘PULL_LE_U16’
#  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): [#def225]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:978:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:978:61: note: in expansion of macro ‘PULL_LE_U16’
#  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): [#def226]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:983:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:983:61: note: in expansion of macro ‘PULL_LE_U32’
#  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): [#def227]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:983:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:983:61: note: in expansion of macro ‘PULL_LE_U32’
#  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): [#def228]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:992:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*element.values’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
#  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): [#def229]
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:992:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:794:33: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:826:15: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:885:17: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:64:10: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:66:20: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:69:21: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/ldb/common/ldb_pack.c:903:28: note: in expansion of macro ‘PULL_LE_U32’
#  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: CPPCHECK_WARNING (CWE-457): [#def230]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def231]
samba-4.21.1-build/samba-4.21.1/lib/ldb/ldb_map/ldb_map_outbound.c: scope_hint: In function ‘map_attrs_collect_remote’
samba-4.21.1-build/samba-4.21.1/lib/ldb/ldb_map/ldb_map_outbound.c:96:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attrs’
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb.h:50: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb_module.h:36: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/ldb_map/ldb_map.h:29: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/ldb_map/ldb_map_outbound.c:31: included_from: Included from here.
#   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): [#def232]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_write_transaction_isolation’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1122:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
# 1120|   
# 1121|   		struct ldb_context *ldb = NULL;
# 1122|-> 		close(to_child[1]);
# 1123|   		close(to_parent[0]);
# 1124|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def233]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1123:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
# 1121|   		struct ldb_context *ldb = NULL;
# 1122|   		close(to_child[1]);
# 1123|-> 		close(to_parent[0]);
# 1124|   
# 1125|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def234]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1320:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
# 1318|   		exit(0);
# 1319|   	}
# 1320|-> 	close(to_child[0]);
# 1321|   	close(to_parent[1]);
# 1322|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def235]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1321:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
# 1319|   	}
# 1320|   	close(to_child[0]);
# 1321|-> 	close(to_parent[1]);
# 1322|   
# 1323|   	/*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def236]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_write_transaction_isolation’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1373:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_child[1]’
# 1371|   
# 1372|   	TALLOC_FREE(tmp_ctx);
# 1373|-> }
# 1374|   
# 1375|   /*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1373:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_parent[0]’
# 1371|   
# 1372|   	TALLOC_FREE(tmp_ctx);
# 1373|-> }
# 1374|   
# 1375|   /*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def238]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_delete_transaction_isolation’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1448:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
# 1446|   
# 1447|   		struct ldb_context *ldb = NULL;
# 1448|-> 		close(to_child[1]);
# 1449|   		close(to_parent[0]);
# 1450|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def239]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1449:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
# 1447|   		struct ldb_context *ldb = NULL;
# 1448|   		close(to_child[1]);
# 1449|-> 		close(to_parent[0]);
# 1450|   
# 1451|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def240]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1632:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
# 1630|   		exit(0);
# 1631|   	}
# 1632|-> 	close(to_child[0]);
# 1633|   	close(to_parent[1]);
# 1634|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def241]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1633:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
# 1631|   	}
# 1632|   	close(to_child[0]);
# 1633|-> 	close(to_parent[1]);
# 1634|   
# 1635|   	/*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def242]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c: scope_hint: In function ‘test_delete_transaction_isolation’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1681:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_child[1]’
# 1679|   
# 1680|   	TALLOC_FREE(tmp_ctx);
# 1681|-> }
# 1682|   
# 1683|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_kv_ops_test.c:1681:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘to_parent[0]’
# 1679|   
# 1680|   	TALLOC_FREE(tmp_ctx);
# 1681|-> }
# 1682|   
# 1683|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def244]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c: scope_hint: In function ‘test_free_list_no_read_lock’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:254:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
#  252|   
#  253|   		struct ldb_context *ldb = NULL;
#  254|-> 		close(to_child[1]);
#  255|   		close(to_parent[0]);
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def245]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:255:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
#  253|   		struct ldb_context *ldb = NULL;
#  254|   		close(to_child[1]);
#  255|-> 		close(to_parent[0]);
#  256|   
#  257|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def246]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:303:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
#  301|   	}
#  302|   
#  303|-> 	close(to_child[0]);
#  304|   	close(to_parent[1]);
#  305|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def247]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:304:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
#  302|   
#  303|   	close(to_child[0]);
#  304|-> 	close(to_parent[1]);
#  305|   
#  306|   	/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def248]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c: scope_hint: In function ‘test_free_list_read_lock’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:397:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
#  395|   
#  396|   		struct ldb_context *ldb = NULL;
#  397|-> 		close(to_child[1]);
#  398|   		close(to_parent[0]);
#  399|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def249]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:398:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
#  396|   		struct ldb_context *ldb = NULL;
#  397|   		close(to_child[1]);
#  398|-> 		close(to_parent[0]);
#  399|   
#  400|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def250]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:465:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
#  463|   	}
#  464|   
#  465|-> 	close(to_child[0]);
#  466|   	close(to_parent[1]);
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def251]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:466:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
#  464|   
#  465|   	close(to_child[0]);
#  466|-> 	close(to_parent[1]);
#  467|   
#  468|   	/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def252]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c: scope_hint: In function ‘test_free_list_stale_reader’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:546:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[1]’
#  544|   
#  545|   		struct ldb_context *ldb = NULL;
#  546|-> 		close(to_child[1]);
#  547|   		close(to_parent[0]);
#  548|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def253]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:547:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[0]’
#  545|   		struct ldb_context *ldb = NULL;
#  546|   		close(to_child[1]);
#  547|-> 		close(to_parent[0]);
#  548|   
#  549|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def254]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:579:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_child[0]’
#  577|   	}
#  578|   
#  579|-> 	close(to_child[0]);
#  580|   	close(to_parent[1]);
#  581|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def255]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_free_list_test.c:580:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘to_parent[1]’
#  578|   
#  579|   	close(to_child[0]);
#  580|-> 	close(to_parent[1]);
#  581|   
#  582|   	/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def256]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_test.c:514:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
#  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): [#def257]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_test.c:540:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
#  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): [#def258]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_lmdb_test.c:550:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
#  548|   
#  549|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
#  550|-> }
#  551|   
#  552|   int main(int argc, const char **argv)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def259]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:1598:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 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): [#def260]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_search_against_transaction’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:1646:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:25: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
# 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-457): [#def261]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:1915:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 1913|   	 */
# 1914|   
# 1915|-> 	close(pipes[1]);
# 1916|   	ret = read(pipes[0], buf, 2);
# 1917|   	assert_int_equal(ret, 2);

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def263]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:2153:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 2151|   	}
# 2152|   
# 2153|-> 	close(pipes[1]);
# 2154|   	ret = read(pipes[0], buf, 2);
# 2155|   	assert_int_equal(ret, 2);

Error: COMPILER_WARNING (CWE-477): [#def264]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_during_whole_search’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:2205:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
/usr/include/tevent.h:2676:6: note: declared here
# 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): [#def265]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_before_ldb_wait’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:2366:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:22: included_from: Included from 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): [#def266]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:2435:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 2433|   		exit(ret);
# 2434|   	}
# 2435|-> 	close(pipes[1]);
# 2436|   
# 2437|   	ret = read(pipes[0], buf, 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def267]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_ldb_modify_before_ldb_wait’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:2490:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
# 2488|   	/* We got the result */
# 2489|   	assert_int_equal(res2->count, 1);
# 2490|-> }
# 2491|   
# 2492|   /*

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def269]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4149:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
# 4147|   		struct MDB_env *env = NULL;
# 4148|   		struct MDB_envinfo stat;
# 4149|-> 		close(pipes[0]);
# 4150|   
# 4151|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def270]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4198:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 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): [#def271]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_start_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4279:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
# 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): [#def272]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4298:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 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): [#def273]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_start_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4308:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
# 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): [#def274]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_commit_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4337:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
# 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): [#def275]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4357:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 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): [#def276]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_transaction_commit_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4367:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
# 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): [#def277]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_lock_read_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4396:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
# 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): [#def278]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4425:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 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): [#def279]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4491:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
# 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): [#def280]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4508:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
# 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): [#def281]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_mod_op_test.c:4518:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
# 4516|   
# 4517|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
# 4518|-> }
# 4519|   
# 4520|   int main(int argc, const char **argv)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def282]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c:246:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
#  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): [#def283]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c:272:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
#  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): [#def284]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c:282:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
#  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): [#def285]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork_triggers_reopen’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c:331:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’
#  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): [#def286]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c:359:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[1]’
#  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): [#def287]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c: scope_hint: In function ‘test_multiple_opens_across_fork_triggers_reopen’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tests/ldb_tdb_test.c:369:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
#  367|   
#  368|   	assert_int_equal(WEXITSTATUS(wstatus), 0);
#  369|-> }
#  370|   
#  371|   int main(int argc, const char **argv)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tools/ldbtest.c: scope_hint: In function ‘start_test_index’
samba-4.21.1-build/samba-4.21.1/lib/ldb/tools/ldbtest.c:335:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("uid")’
#  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): [#def289]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tools/ldbtest.c:346:39: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
#  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): [#def290]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tools/ldbtest.c:347:40: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("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"));
#  349|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tools/ldbtest.c:348:48: warning[-Wanalyzer-malloc-leak]: leak of ‘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|   
#  350|   	if (ldb_add(*ldb, msg) != LDB_SUCCESS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
samba-4.21.1-build/samba-4.21.1/lib/ldb/tools/ldbtest.c:350:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("OpenLDAPperson")’
#  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: [#def293]
samba-4.21.1-build/samba-4.21.1/lib/pthreadpool/pthreadpool_pipe.c: scope_hint: In function ‘pthreadpool_pipe_reinit’
samba-4.21.1-build/samba-4.21.1/lib/pthreadpool/pthreadpool_pipe.c:134:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘signal_fd’
#  132|   	}
#  133|   
#  134|-> 	ret = dup2(pool->pipe_fds[0], signal_fd);
#  135|   	if (ret != 0) {
#  136|   		return errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
samba-4.21.1-build/samba-4.21.1/lib/pthreadpool/pthreadpool_pipe.c:139:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*pool.pipe_fds[0]’
#  137|   	}
#  138|   
#  139|-> 	pool->pipe_fds[0] = signal_fd;
#  140|   	pool->num_jobs = 0;
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
samba-4.21.1-build/samba-4.21.1/source4/torture/masktest.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/masktest.c: scope_hint: In function ‘reg_match_one’
samba-4.21.1-build/samba-4.21.1/lib/replace/system/dir.h:65:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file’
samba-4.21.1-build/samba-4.21.1/source4/torture/masktest.c:50:13: note: in expansion of macro ‘ISDOTDOT’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/masktest.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/torture/masktest.c:410:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/torture/masktest.c:50:13: note: in expansion of macro ‘ISDOTDOT’
#   63|   #ifndef ISDOTDOT
#   64|   #define ISDOTDOT(path)	( \
#   65|-> 			    *((const char *)(path)) == '.' && \
#   66|   			    *(((const char *)(path)) + 1) == '.' && \
#   67|   			    *(((const char *)(path)) + 2) == '\0' \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def296]
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/os2_delete.c: scope_hint: In function ‘test_readdir_os2_delete’
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/lib/replace/tests/os2_delete.c:11: included_from: Included from here.
/usr/include/dirent.h:164:23: note: argument 1 of ‘readdir’ must be non-null
#  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): [#def297]
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strdup’
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c:172:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c:26: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  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): [#def298]
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strndup’
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c:271:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘x’
#  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): [#def299]
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c:279:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  277|   
#  278|   	x = strndup("bla", 2);
#  279|-> 	cmp = strcmp(x, "bl");
#  280|   	free(x);
#  281|   	if (cmp != 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_closefrom’
samba-4.21.1-build/samba-4.21.1/lib/replace/tests/testsuite.c:1114:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
# 1112|   		if (fd >= 1000) {
# 1113|   			printf("fd=%d\n", fd);
# 1114|-> 			closefrom(3);
# 1115|   			return false;
# 1116|   		}

Error: COMPILER_WARNING (CWE-477): [#def301]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c: scope_hint: In function ‘test_memlimit’
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1628:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:28: included_from: Included from here.
/usr/include/talloc.h:1951:14: note: declared here
# 1626|   
# 1627|   	printf("==== talloc_set_memlimit(l1, 2048)\n");
# 1628|-> 	torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
# 1629|   		"failed: setting memlimit should never fail\n");
# 1630|   

Error: COMPILER_WARNING (CWE-477): [#def302]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1688:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1686|   
# 1687|   	printf("==== talloc_set_memlimit(l3, 1024)\n");
# 1688|-> 	torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
# 1689|   		"failed: setting memlimit should never fail\n");
# 1690|   

Error: COMPILER_WARNING (CWE-477): [#def303]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1701:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1699|   
# 1700|   	printf("==== talloc_set_memlimit(l4, 512)\n");
# 1701|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
# 1702|   		"failed: setting memlimit should never fail\n");
# 1703|   

Error: COMPILER_WARNING (CWE-477): [#def304]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1735:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1733|   
# 1734|   	printf("==== talloc_set_memlimit(l4, 512)\n");
# 1735|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
# 1736|   		"failed: setting memlimit should never fail\n");
# 1737|   

Error: COMPILER_WARNING (CWE-477): [#def305]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1768:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1766|   
# 1767|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
# 1768|-> 	talloc_set_memlimit(pool, 10*1024);
# 1769|   	for (i = 0; i < 9; i++) {
# 1770|   		printf("==== talloc_size(pool, 1024) %i/10\n", i + 1);

Error: COMPILER_WARNING (CWE-477): [#def306]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1821:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1819|   	/* Increase the memlimit */
# 1820|   	printf("==== talloc_set_memlimit(pool, 11*1024)\n");
# 1821|-> 	talloc_set_memlimit(pool, 11*1024);
# 1822|   
# 1823|   	/* The final realloc should still fail

Error: COMPILER_WARNING (CWE-477): [#def307]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1833:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1831|   
# 1832|   	printf("==== talloc_set_memlimit(pool, 21*1024)\n");
# 1833|-> 	talloc_set_memlimit(pool, 21*1024);
# 1834|   
# 1835|   	/* There's now sufficient space to move the chunk out of the pool */

Error: COMPILER_WARNING (CWE-477): [#def308]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1871:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1869|   
# 1870|   	printf("==== talloc_set_memlimit(pool, 1024)\n");
# 1871|-> 	talloc_set_memlimit(pool, 1024);
# 1872|   
# 1873|   	/* We should still be able to allocate up to the pool limit

Error: COMPILER_WARNING (CWE-477): [#def309]
samba-4.21.1-build/samba-4.21.1/lib/talloc/testsuite.c:1892:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
# 1890|   
# 1891|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
# 1892|-> 	talloc_set_memlimit(pool, 10*1024);
# 1893|   
# 1894|   	printf("==== talloc_size(pool, 1024)\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[0]’
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c: scope_hint: In function ‘tdb_runtime_check_for_robust_mutexes’
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
samba-4.21.1-build/samba-4.21.1/ctdb/utils/tdb/tdb_mutex_check.c:31: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c: scope_hint: In function ‘tdb_runtime_check_for_robust_mutexes’
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[1]’
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/tdb_private.h:34: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/ctdb/utils/tdb/tdb_mutex_check.c:30: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c: scope_hint: In function ‘tdb_runtime_check_for_robust_mutexes’
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[0]’
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c: scope_hint: In function ‘tdb_runtime_check_for_robust_mutexes’
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def313]
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[1]’
samba-4.21.1-build/samba-4.21.1/lib/tdb/common/mutex.c: scope_hint: In function ‘tdb_runtime_check_for_robust_mutexes’
#  843|   
#  844|   	if (initialized) {
#  845|-> 		return tdb_mutex_locking_cached;
#  846|   	}
#  847|   

Error: COMPILER_WARNING (CWE-477): [#def314]
samba-4.21.1-build/samba-4.21.1/lib/tevent/testsuite.c: scope_hint: In function ‘test_wrapper’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/lib/tevent/testsuite.c:29: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def315]
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.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): [#def316]
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.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): [#def317]
samba-4.21.1-build/samba-4.21.1/lib/tevent/testsuite.c:1764:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
# 1764 |         tevent_context_pop_use(ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def318]
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.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): [#def319]
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.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): [#def320]
samba-4.21.1-build/samba-4.21.1/lib/tevent/testsuite.c: scope_hint: In function ‘test_free_wrapper’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-457): [#def321]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c: scope_hint: In function ‘test_ioctl_compress_file_flag’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:274:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:2413:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:2399:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:2403:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:2411:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:2413:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/ioctl.c:2413:9: note: in expansion of macro ‘torture_assert’
#  272|   
#  273|   #define torture_assert(torture_ctx,expr,cmt) do { \
#  274|-> 	if (!(expr)) { \
#  275|   		torture_result(torture_ctx, TORTURE_FAIL, __location__": Expression `%s' failed: %s", __STRING(expr), cmt); \
#  276|   		return false; \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def322]
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c: scope_hint: In function ‘test_delayed_write_update’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:663:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo2.basic_info.out.write_time’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:103:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:53:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:56:9: note: in expansion of macro ‘torture_assert_int_not_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:64:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:70:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:103:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:103:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
#  661|   
#  662|   #define torture_assert_u64_not_equal(torture_ctx,got,not_expected,cmt)\
#  663|-> 	do { uint64_t __got = (got), __not_expected = (not_expected); \
#  664|   	if (__got == __not_expected) { \
#  665|   		torture_result(torture_ctx, TORTURE_FAIL, \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def323]
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c: scope_hint: In function ‘test_delayed_write_update1’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:663:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:260:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:137:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:140:9: note: in expansion of macro ‘torture_assert_int_not_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:159:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:161:9: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:161:9: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:173:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:183:17: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:185:17: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:185:17: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:204:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:207:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:207:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:218:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:258:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:260:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/delaywrite.c:260:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
#  661|   
#  662|   #define torture_assert_u64_not_equal(torture_ctx,got,not_expected,cmt)\
#  663|-> 	do { uint64_t __got = (got), __not_expected = (not_expected); \
#  664|   	if (__got == __not_expected) { \
#  665|   		torture_result(torture_ctx, TORTURE_FAIL, \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c: scope_hint: In function ‘regf_set_value’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:1885:41: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:116:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:43: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:1885:41: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:1885:41: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:1885:41: note: in expansion of macro ‘IVAL’
#   24|   
#   25|   #define _DATA_BYTE_CONST(data, pos) \
#   26|->     ((uint8_t)(((const uint8_t *)(data))[(pos)]))
#   27|   
#   28|   #define _DATA_BYTE(data, pos) \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def325]
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c: scope_hint: In function ‘prs_uint32’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:115:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data32’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:105:41: note: in definition of macro ‘PUSH_BE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:115:6: note: in expansion of macro ‘PUSH_BE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:158:29: note: in expansion of macro ‘PUSH_BE_U32’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:386:25: note: in expansion of macro ‘RSIVAL’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:105:41: note: in definition of macro ‘PUSH_BE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:115:6: note: in expansion of macro ‘PUSH_BE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:158:29: note: in expansion of macro ‘PUSH_BE_U32’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:386:25: note: in expansion of macro ‘RSIVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:105:41: note: in definition of macro ‘PUSH_BE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:115:6: note: in expansion of macro ‘PUSH_BE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:158:29: note: in expansion of macro ‘PUSH_BE_U32’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:386:25: note: in expansion of macro ‘RSIVAL’
#  113|   
#  114|   #define PUSH_BE_U32(data, pos, val) \
#  115|->     (PUSH_BE_U16(data, pos, (uint32_t)(val) >> 16), PUSH_BE_U16(data, (pos) + 2, (uint32_t)(val) & 0xffff))
#  116|   #define PUSH_BE_I32(data, pos, val) \
#  117|       PUSH_BE_U32(data, pos, val)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/codepoints.c: scope_hint: In function ‘charset_name’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/codepoints.c:16548:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/charset/codepoints.c:24: included_from: Included from here.
#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): [#def327]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/codepoints.c:16549:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
#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): [#def328]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/codepoints.c: scope_hint: In function ‘get_conv_handle.part.0’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/codepoints.c:16643:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
#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): [#def329]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/tests/iconv.c: scope_hint: In function ‘iconv_untestable’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/tests/iconv.c:40:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-16LE", "UCS-4LE")’
#   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): [#def330]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/tests/iconv.c:45:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-16LE", "CP850")’
#   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): [#def331]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/tests/iconv.c: scope_hint: In function ‘gen_codepoint_utf16’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/tests/iconv.c:65:28: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
#   63|   		cd = iconv_open("UTF-16LE", "UCS-4LE");
#   64|   		if (cd == (iconv_t)-1) {
#   65|-> 			cd = NULL;
#   66|   			return -1;
#   67|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def332]
samba-4.21.1-build/samba-4.21.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): [#def333]
samba-4.21.1-build/samba-4.21.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): [#def334]
samba-4.21.1-build/samba-4.21.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): [#def335]
samba-4.21.1-build/samba-4.21.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): [#def336]
samba-4.21.1-build/samba-4.21.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): [#def337]
samba-4.21.1-build/samba-4.21.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): [#def338]
samba-4.21.1-build/samba-4.21.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): [#def339]
samba-4.21.1-build/samba-4.21.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): [#def340]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING: [#def341]
samba-4.21.1-build/samba-4.21.1/lib/util/close_low_fd.c: scope_hint: In function ‘close_low_fd’
samba-4.21.1-build/samba-4.21.1/lib/util/close_low_fd.c:68:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
#   66|   	}
#   67|   
#   68|-> 	ret = dup2(dev_null, fd);
#   69|   	if (ret == -1) {
#   70|   		int err = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def342]
samba-4.21.1-build/samba-4.21.1/lib/util/close_low_fd.c:74:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
#   72|   		return err;
#   73|   	}
#   74|-> 	close(dev_null);
#   75|   	return 0;
#   76|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def343]
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:199:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*ctdb.daemon.sd’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:304:33: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:1234:9: note: in expansion of macro ‘D_NOTICE’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:1195:9: note: in expansion of macro ‘set_close_on_exec’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:304:33: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:1234:9: note: in expansion of macro ‘D_NOTICE’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:304:33: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/ctdb/server/ctdb_daemon.c:1234:9: note: in expansion of macro ‘D_NOTICE’
#  197|   #define DEBUG( level, body ) \
#  198|     (void)( ((level) <= MAX_DEBUG_LEVEL) && \
#  199|->        unlikely(debuglevel_get_class(DBGC_CLASS) >= (level))             \
#  200|          && (dbghdrclass( level, DBGC_CLASS, __location__, __FUNCTION__ )) \
#  201|          && (dbgtext body) )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:61: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_set_password_sid’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:2782:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:2782:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:2782:17: note: in expansion of macro ‘DEBUG’
#  199|          unlikely(debuglevel_get_class(DBGC_CLASS) >= (level))             \
#  200|          && (dbghdrclass( level, DBGC_CLASS, __location__, __FUNCTION__ )) \
#  201|->        && (dbgtext body) )
#  202|   
#  203|   /**

Error: GCC_ANALYZER_WARNING (CWE-476): [#def345]
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c: scope_hint: In function ‘winreg_get_printer’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:1705:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:254: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:1704:14: note: in expansion of macro ‘W_ERROR_IS_OK’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:1705:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:1705:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:1705:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/cli_winreg_spoolss.c:1705:17: note: in expansion of macro ‘DEBUG’
#  199|          unlikely(debuglevel_get_class(DBGC_CLASS) >= (level))             \
#  200|          && (dbghdrclass( level, DBGC_CLASS, __location__, __FUNCTION__ )) \
#  201|->        && (dbgtext body) )
#  202|   
#  203|   /**

Error: GCC_ANALYZER_WARNING (CWE-476): [#def346]
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
#  248|   		&& (dbghdrclass(level, DBGC_CLASS, __location__, __func__ )) \
#  249|   		&& (dbgtext("%s: ", __func__))				\
#  250|-> 		&& (dbgtext body) )
#  251|   
#  252|   /* Prefix messages with the function name - class specific */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c: scope_hint: In function ‘gensec_gse_client_prepare_ccache’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ccache’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:1001:9: note: in expansion of macro ‘DBG_INFO’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:1001:9: note: in expansion of macro ‘DBG_INFO’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:1001:9: note: in expansion of macro ‘DBG_INFO’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:1001:9: note: in expansion of macro ‘DBG_INFO’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:1001:9: note: in expansion of macro ‘DBG_INFO’
#  248|   		&& (dbghdrclass(level, DBGC_CLASS, __location__, __func__ )) \
#  249|   		&& (dbgtext("%s: ", __func__))				\
#  250|-> 		&& (dbgtext body) )
#  251|   
#  252|   /* Prefix messages with the function name - class specific */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def348]
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c: scope_hint: In function ‘smbXsrv_open_global_verify_record’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘global0’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:291:9: note: in expansion of macro ‘DBG_WARNING’
#  248|   		&& (dbghdrclass(level, DBGC_CLASS, __location__, __func__ )) \
#  249|   		&& (dbgtext("%s: ", __func__))				\
#  250|-> 		&& (dbgtext body) )
#  251|   
#  252|   /* Prefix messages with the function name - class specific */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def349]
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘global’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:1454:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:1454:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:1454:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:1454:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:1454:17: note: in expansion of macro ‘DBG_DEBUG’
#  248|   		&& (dbghdrclass(level, DBGC_CLASS, __location__, __func__ )) \
#  249|   		&& (dbgtext("%s: ", __func__))				\
#  250|-> 		&& (dbgtext body) )
#  251|   
#  252|   /* Prefix messages with the function name - class specific */

Error: GCC_ANALYZER_WARNING (CWE-121): [#def350]
samba-4.21.1-build/samba-4.21.1/lib/util/idtree.c: scope_hint: In function ‘sub_remove’
samba-4.21.1-build/samba-4.21.1/lib/util/idtree.c:261:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/lib/util/idtree.c:261:24: note: write of 8 bytes to beyond the end of ‘pa’
samba-4.21.1-build/samba-4.21.1/lib/util/idtree.c:261:24: note: valid subscripts for ‘pa’ are ‘[0]’ to ‘[7]’
#  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-465): [#def351]
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c: scope_hint: In function ‘remove_dirplus’
samba-4.21.1-build/samba-4.21.1/lib/util/memory.h:31:30: warning[-Wanalyzer-deref-before-check]: check of ‘*d.smb_finfo’ for NULL after already dereferencing it
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:55:17: note: in expansion of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:54:17: note: in expansion of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:55:17: note: in expansion of macro ‘SAFE_FREE’
#   29|    * always be ignored.
#   30|    **/
#   31|-> #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0)
#   32|   #endif
#   33|   

Error: GCC_ANALYZER_WARNING (CWE-465): [#def352]
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_cred_cache.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_cred_cache.c: scope_hint: In function ‘delete_memory_creds’
samba-4.21.1-build/samba-4.21.1/lib/util/memory.h:31:30: warning[-Wanalyzer-deref-before-check]: check of ‘*memcredp.nt_hash’ for NULL after already dereferencing it
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_cred_cache.c:878:9: note: in expansion of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_cred_cache.c:878:9: note: in expansion of macro ‘SAFE_FREE’
#   29|    * always be ignored.
#   30|    **/
#   31|-> #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0)
#   32|   #endif
#   33|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def353]
samba-4.21.1-build/samba-4.21.1/lib/util/pidfile.c: scope_hint: In function ‘pidfile_fd_close’
samba-4.21.1-build/samba-4.21.1/lib/util/pidfile.c:146:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
#  144|   
#  145|   	do {
#  146|-> 		ret = close(fd);
#  147|   	} while ((ret == -1) && (errno == EINTR));
#  148|   }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def354]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c: scope_hint: In function ‘cli_print_queue’
samba-4.21.1-build/samba-4.21.1/lib/util/string_wrappers.h:31:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.21.1-build/samba-4.21.1/lib/util/string_wrappers.h:31:9: note: write of 2 bytes to beyond the end of ‘param’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.21.1-build/samba-4.21.1/lib/util/string_wrappers.h:31:9: note: valid subscripts for ‘param’ are ‘[0]’ to ‘[1023]’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cliprint.c:20: included_from: Included from here.
/usr/include/string.h:506:15: note: parameter 1 of ‘strlcpy’ marked with attribute ‘access (write_only, 1, 3)’
#   29|   do { \
#   30|   	const char *_strlcpy_base_src = (const char *)src; \
#   31|-> 	strlcpy((dest), _strlcpy_base_src? _strlcpy_base_src : "", (size)-PTR_DIFF((dest),(base))); \
#   32|   } while (0)
#   33|   

Error: CPPCHECK_WARNING (CWE-476): [#def355]
samba-4.21.1-build/samba-4.21.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): [#def356]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-688): [#def357]
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c: scope_hint: In function ‘test_strv_split_some’
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c:130:40: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c:121:17: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c:122:17: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c:129:25: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/tests/strv_util.c:22: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  128|   			t = strv_next(strv, t);
#  129|   			torture_assert(tctx,
#  130|-> 				       strcmp(t, d->out[i]) == 0,
#  131|   				       "strv_split() failed");
#  132|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
samba-4.21.1-build/samba-4.21.1/lib/util/tiniparser.c:255:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  253|   
#  254|   	entry->next_entry = section->entry_list;
#  255|-> 	section->entry_list = entry;
#  256|   	return true;
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
samba-4.21.1-build/samba-4.21.1/lib/util/tiniparser.c: scope_hint: In function ‘value_parser’
samba-4.21.1-build/samba-4.21.1/lib/util/tiniparser.c:255:29: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
#  253|   
#  254|   	entry->next_entry = section->entry_list;
#  255|-> 	section->entry_list = entry;
#  256|   	return true;
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def360]
samba-4.21.1-build/samba-4.21.1/lib/util/util.c: scope_hint: In function ‘dump_data_diff_cb’
samba-4.21.1-build/samba-4.21.1/lib/util/util.c:677:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf1’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/util.c:26: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
#  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): [#def361]
samba-4.21.1-build/samba-4.21.1/lib/util/util.c:677:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf2’ where non-null expected
/usr/include/string.h:64:12: note: argument 2 of ‘memcmp’ must be non-null
#  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): [#def362]
samba-4.21.1-build/samba-4.21.1/lib/util/util_file.c: scope_hint: In function ‘fd_load’
samba-4.21.1-build/samba-4.21.1/lib/util/util_file.c:218:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
#  216|   	}
#  217|   
#  218|-> 	p[size] = '\0';
#  219|   
#  220|   	if (psize != NULL) {

Error: GCC_ANALYZER_WARNING: [#def363]
samba-4.21.1-build/samba-4.21.1/lib/util/util_runcmd.c: scope_hint: In function ‘samba_runcmd_send’
samba-4.21.1-build/samba-4.21.1/lib/util/util_runcmd.c:235:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
samba-4.21.1-build/samba-4.21.1/lib/util/util_runcmd.c:31: included_from: Included from here.
#  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: [#def364]
samba-4.21.1-build/samba-4.21.1/lib/util/util_runcmd.c:236:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
#  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: [#def365]
samba-4.21.1-build/samba-4.21.1/lib/util/util_runcmd.c:237:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
#  235|   	dup2(p3[0], 0);
#  236|   	dup2(p1[1], 1);
#  237|-> 	dup2(p2[1], 2);
#  238|   
#  239|   	close(p1[1]);

Error: COMPILER_WARNING (CWE-563): [#def366]
samba-4.21.1-build/samba-4.21.1/libcli/auth/smbencrypt.c: scope_hint: In function ‘decode_pw_buffer’
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-457): [#def367]
samba-4.21.1-build/samba-4.21.1/libcli/drsuapi/repl_decrypt.c: scope_hint: In function ‘drsuapi_decrypt_attribute’
samba-4.21.1-build/samba-4.21.1/libcli/drsuapi/repl_decrypt.c:211:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘plain_data’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/drsuapi/repl_decrypt.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/drsuapi/repl_decrypt.c:208:9: note: in expansion of macro ‘W_ERROR_NOT_OK_RETURN’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from 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): [#def368]
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namequery.c: scope_hint: In function ‘nbt_name_query_recv’
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namequery.c:83:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#   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): [#def369]
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namequery.c: scope_hint: In function ‘nbt_name_status_recv’
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namequery.c:187:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#  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): [#def370]
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namerefresh.c: scope_hint: In function ‘nbt_name_refresh_recv’
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namerefresh.c:98:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#   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): [#def371]
samba-4.21.1-build/samba-4.21.1/libcli/nbt/nameregister.c: scope_hint: In function ‘nbt_name_register_recv’
samba-4.21.1-build/samba-4.21.1/libcli/nbt/nameregister.c:106:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#  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): [#def372]
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namerelease.c: scope_hint: In function ‘nbt_name_release_recv’
samba-4.21.1-build/samba-4.21.1/libcli/nbt/namerelease.c:95:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#   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: CPPCHECK_WARNING (CWE-562): [#def373]
samba-4.21.1-build/samba-4.21.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): [#def374]
samba-4.21.1-build/samba-4.21.1/libcli/security/sddl_conditional_ace.c:3016: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3014|   
# 3015|   	comp->target = composite.data.composite.tokens;
# 3016|-> 	comp->target_len = &composite.data.composite.n_members;
# 3017|   
# 3018|   	/*

Error: CPPCHECK_WARNING (CWE-457): [#def375]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-401): [#def376]
samba-4.21.1-build/samba-4.21.1/libcli/smbreadline/smbreadline.c: scope_hint: In function ‘smb_readline_replacement’
samba-4.21.1-build/samba-4.21.1/libcli/smbreadline/smbreadline.c:100:32: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smbreadline/smbreadline.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/libcli/smbreadline/smbreadline.c:91:17: note: in expansion of macro ‘ZERO_STRUCT’
#   98|   				SAFE_FREE(line);
#   99|   			}
#  100|-> 			return ret;
#  101|   		}
#  102|   		if (callback) {

Error: COMPILER_WARNING (CWE-477): [#def377]
samba-4.21.1-build/samba-4.21.1/libcli/smbreadline/smbreadline.c: scope_hint: In function ‘smb_readline’
samba-4.21.1-build/samba-4.21.1/libcli/smbreadline/smbreadline.c:139:17: warning[-Wdeprecated-declarations]: ‘CPPFunction’ is deprecated
#  139 |                 rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  137|   		works in all of them to date, but we get compiler
#  138|   		warnings in some.  */
#  139|-> 		rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
#  140|   
#  141|   		/*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def378]
samba-4.21.1-build/samba-4.21.1/libcli/wsp/wsp_aqs.c: scope_hint: In function ‘create_restriction’
samba-4.21.1-build/samba-4.21.1/libcli/wsp/wsp_aqs.c:394:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘query’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/wsp/wsp_aqs.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:60: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/wsp/wsp_aqs.c:469:17: note: in expansion of macro ‘SMB_ASSERT’
#  392|   	}
#  393|   
#  394|-> 	restr = query->basic_restriction;
#  395|   	src = restr->values;
#  396|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def379]
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c: scope_hint: In function ‘ndr_pull_time_t’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:951:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tt’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:950:9: note: in expansion of macro ‘NDR_CHECK’
#  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): [#def380]
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c: scope_hint: In function ‘ndr_pull_ipv6address’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:1060:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr[i]’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:1057:9: note: in expansion of macro ‘NDR_ERR_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:518:9: note: in expansion of macro ‘NDR_PULL_CHECK_FLAGS’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_basic.c:1058:9: note: in expansion of macro ‘NDR_CHECK’
# 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): [#def381]
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_string.c: scope_hint: In function ‘ndr_pull_string_array’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_string.c:715:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_string.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_string.c:688:9: note: in expansion of macro ‘NDR_ERR_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.21.1-build/samba-4.21.1/librpc/ndr/ndr_string.c:708:25: note: in expansion of macro ‘NDR_CHECK’
#  713|   				break;
#  714|   			}
#  715|-> 			if (strcmp("", s)==0) {
#  716|   				a[count] = NULL;
#  717|   				break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def382]
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/dcerpc_server.h:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/lsa.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c: scope_hint: In function ‘dcesrv_lsa_DeleteObject’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:570:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:581:46: note: in expansion of macro ‘DCESRV_FAULT’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:263:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:2435:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:2435:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/lsa.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:263:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:581:46: note: in expansion of macro ‘DCESRV_FAULT’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:263:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:581:46: note: in expansion of macro ‘DCESRV_FAULT’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/lsa/dcesrv_lsa.c:263:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
#  568|   #define DCESRV_FAULT(code) do { \
#  569|   	dce_call->fault_code = code; \
#  570|-> 	return r->out.result; \
#  571|   } while(0)
#  572|   

Error: COMPILER_WARNING (CWE-477): [#def383]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_make_remark’
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
#  735 |                 _pam_drop_reply(resp, 1);
#      |                 ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.h:104: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:13: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def384]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
#  735 |                 _pam_drop_reply(resp, 1);
#      |                 ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def385]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_pam_winbind_change_pwd’
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
#  906 |         _pam_drop_reply(resp, 1);
#      |         ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def386]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
#  906 |         _pam_drop_reply(resp, 1);
#      |         ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def387]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_pam_delete’
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:2159:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2159 |         _pam_overwrite(xx);
#      |         ^~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def388]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c: scope_hint: In function ‘_winbind_read_password’
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
# 2269 |                         _pam_drop_reply(resp, i);
#      |                         ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def389]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2269 |                         _pam_drop_reply(resp, i);
#      |                         ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def390]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
# 2299 |                 _pam_drop_reply(resp, i);
#      |                 ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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): [#def391]
samba-4.21.1-build/samba-4.21.1/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
# 2299 |                 _pam_drop_reply(resp, i);
#      |                 ^~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def392]
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_generic.c: scope_hint: In function ‘auth3_generate_session_info_pac’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_generic.c:335:43: warning[-Wanalyzer-null-dereference]: 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): [#def393]
samba-4.21.1-build/samba-4.21.1/libcli/security/dom_sid.h:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c: scope_hint: In function ‘copy_session_info_serverinfo_guest’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:1700:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:1700:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:1411:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:287:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:2167:25: note: in expansion of macro ‘DBG_NOTICE’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:1700:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/auth/auth_util.c:1700:9: note: in expansion of macro ‘SMB_ASSERT’
# 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): [#def394]
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passcheck’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:447:19: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv,  user,  password, 0)’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:444:34: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passcheck’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:91:24: note: in expansion of macro ‘False’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passcheck’
#  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): [#def395]
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_accountcheck’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:447:19: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv,  user, 0, 0)’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:444:34: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_accountcheck’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:91:24: note: in expansion of macro ‘False’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_accountcheck’
#  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): [#def396]
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passchange’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:447:19: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_passchange_conv,  user,  oldpassword,  newpassword)’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:29: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:444:34: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passchange’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:699: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c:91:24: note: in expansion of macro ‘False’
samba-4.21.1-build/samba-4.21.1/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passchange’
#  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): [#def397]
samba-4.21.1-build/samba-4.21.1/source3/client/client.c: scope_hint: In function ‘completion_remote_filter’
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:5871:44: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:66: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:5866:13: note: in expansion of macro ‘ISDOT’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:5871:46: note: in expansion of macro ‘SMB_STRDUP’
# 5869|   
# 5870|   	if ((info->dirmask[0] == 0) && !(f->attr & FILE_ATTRIBUTE_DIRECTORY))
# 5871|-> 		info->matches[info->count] = SMB_STRDUP(f->name);
# 5872|   	else {
# 5873|   		TALLOC_CTX *ctx = talloc_stackframe();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
samba-4.21.1-build/samba-4.21.1/source3/client/client.c: scope_hint: In function ‘remote_completion’
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:6025:26: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(info.matches[1], (long unsigned int)info.samelen)’
samba-4.21.1-build/samba-4.21.1/source3/include/smb_macros.h:272:36: note: in definition of macro ‘SMB_STRNDUP’
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:6024:27: note: in expansion of macro ‘SMB_STRNDUP’
# 6023|   
# 6024|   	info.matches[0] = SMB_STRNDUP(info.matches[1], info.samelen);
# 6025|-> 	info.matches[info.count] = NULL;
# 6026|   	TALLOC_FREE(ctx);
# 6027|   	return info.matches;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
samba-4.21.1-build/samba-4.21.1/source3/client/client.c: scope_hint: In function ‘completion_fn’
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:6110:36: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:6081:27: note: in expansion of macro ‘SMB_MALLOC_ARRAY’
samba-4.21.1-build/samba-4.21.1/source3/client/client.c:6090:50: note: in expansion of macro ‘SMB_STRDUP’
# 6108|   			break;
# 6109|   		default:
# 6110|-> 			matches[0] = (char *)SMB_MALLOC(samelen+1);
# 6111|   			if (!matches[0])
# 6112|   				goto cleanup;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def400]
samba-4.21.1-build/samba-4.21.1/source3/client/smbspool.c: scope_hint: In function ‘main’
samba-4.21.1-build/samba-4.21.1/source3/client/smbspool.c:238:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(print_file, "rb")’
#  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): [#def401]
samba-4.21.1-build/samba-4.21.1/source3/client/smbspool.c:238:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(print_file, "rb")’
#  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): [#def402]
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c: scope_hint: In function ‘ad_read_meta’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2131:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
# 2129|   	ssize_t  ealen;
# 2130|   	bool     ok;
# 2131|-> 	struct files_struct *fsp = smb_fname->fsp;
# 2132|   
# 2133|   	DEBUG(10, ("reading meta xattr for %s\n", smb_fname->base_name));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def403]
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c: scope_hint: In function ‘ad_open’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2313:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
# 2311|   	NTSTATUS status;
# 2312|   
# 2313|-> 	DBG_DEBUG("Path [%s] type [%s]\n", smb_fname->base_name,
# 2314|   		  ad->ad_type == ADOUBLE_META ? "meta" : "rsrc");
# 2315|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def404]
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c: scope_hint: In function ‘ad_get_internal’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2614:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:251: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:230:29: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2226:24: note: in expansion of macro ‘NT_STATUS_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:51: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:250:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
# 2612|   	if (rc == -1) {
# 2613|   		DBG_DEBUG("ad_open [%s] error [%s]\n",
# 2614|-> 			  smb_fname->base_name, strerror(errno));
# 2615|   		goto exit;
# 2616|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def405]
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2630:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2628:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
# 2628|   	DEBUG(10, ("ad_get(%s) for %s returning %d\n",
# 2629|   		  type == ADOUBLE_META ? "meta" : "rsrc",
# 2630|-> 		  smb_fname->base_name, rc));
# 2631|   
# 2632|   	if (rc != 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def406]
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c: scope_hint: In function ‘adouble_path’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2768:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname_in’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/adouble.c:2766:9: note: in expansion of macro ‘SET_STAT_INVALID’
# 2766|   	SET_STAT_INVALID(smb_fname->st);
# 2767|   
# 2768|-> 	if (!parent_dirname(smb_fname, smb_fname_in->base_name,
# 2769|   				&parent, &base)) {
# 2770|   		TALLOC_FREE(smb_fname);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def407]
samba-4.21.1-build/samba-4.21.1/source3/lib/ctdbd_conn.c: scope_hint: In function ‘ctdbd_conn_received’
samba-4.21.1-build/samba-4.21.1/source3/lib/ctdbd_conn.c:2107:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘state’
samba-4.21.1-build/samba-4.21.1/source3/lib/ctdbd_conn.c:34: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/ctdbd_conn.c:2080:9: note: in expansion of macro ‘SMB_ASSERT’
/usr/include/tevent.h:32: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/ctdbd_conn.c:22: included_from: Included from here.
# 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): [#def408]
samba-4.21.1-build/samba-4.21.1/source3/lib/dbwrap/dbwrap_watch.c: scope_hint: In function ‘db_watched_record_fini_fetcher’
samba-4.21.1-build/samba-4.21.1/source3/lib/dbwrap/dbwrap_watch.c:334:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  332|   		 * as much as we can.
#  333|   		 */
#  334|-> 		memcpy(rec->value.dptr, value.dptr, copy_size);
#  335|   		state->dbufs[state->num_dbufs++] = rec->value;
#  336|   		value.dsize -= copy_size;

Error: CPPCHECK_WARNING (CWE-457): [#def409]
samba-4.21.1-build/samba-4.21.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): [#def410]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def411]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c: scope_hint: In function ‘ms_fnmatch_core’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:67:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘max_n’
#   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): [#def412]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:67:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:27: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:67:34: note: read of 8 bytes from after the end of ‘one_max_n’
#   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): [#def413]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:75:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:75:35: note: read of 8 bytes from after the end of ‘one_max_n’
#   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): [#def414]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:75:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:75:80: note: write of 8 bytes to beyond the end of ‘one_max_n’
#   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): [#def415]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:82:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘max_n’
#   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): [#def416]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:82:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:82:34: note: read of 8 bytes from after the end of ‘one_max_n’
#   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): [#def417]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:85:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:85:34: note: read of 8 bytes from after the end of ‘one_max_n’
#   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): [#def418]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:96:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:96:35: note: read of 8 bytes from after the end of ‘one_max_n’
#   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): [#def419]
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:96:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/source3/lib/ms_fnmatch.c:96:80: note: write of 8 bytes to beyond the end of ‘one_max_n’
#   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): [#def420]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/examples/common.c: scope_hint: In function ‘popt_common_callback’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/examples/common.c:44:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘puser’ where non-null expected
<built-in>: note: 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): [#def421]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/examples/common.c: scope_hint: In function ‘netapi_save_file_ucs2’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/examples/common.c:227:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-16LE", "ASCII")’
#  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): [#def422]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c: scope_hint: In function ‘NetGroupAdd_r’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:101:25: warning[-Wanalyzer-null-dereference]: 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): [#def423]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:104:25: warning[-Wanalyzer-null-dereference]: 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): [#def424]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:107:25: warning[-Wanalyzer-null-dereference]: 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): [#def425]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:110:25: warning[-Wanalyzer-null-dereference]: 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): [#def426]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:130:34: warning[-Wanalyzer-null-dereference]: 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): [#def427]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:142:34: warning[-Wanalyzer-null-dereference]: 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): [#def428]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:169:34: warning[-Wanalyzer-null-dereference]: 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): [#def429]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c: scope_hint: In function ‘NetGroupSetUsers_r’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:1717:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:20: included_from: Included from here.
# 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): [#def430]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/group.c:1721:33: warning[-Wanalyzer-null-dereference]: 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): [#def431]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/localgroup.c: scope_hint: In function ‘NetLocalGroupModifyMembers_r’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/localgroup.c:1117:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/localgroup.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/localgroup.c:1085:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:254: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/localgroup.c:1092:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
# 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): [#def432]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/share.c: scope_hint: In function ‘map_srvsvc_share_info_to_SHARE_INFO_buffer’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/share.c:97:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s501’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:254: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/share.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/share.c:384:14: note: in expansion of macro ‘W_ERROR_IS_OK’
#   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): [#def433]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/share.c:110:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s1005’
samba-4.21.1-build/samba-4.21.1/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/share.c:384:14: note: in expansion of macro ‘W_ERROR_IS_OK’
#  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): [#def434]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/tests/common.c: scope_hint: In function ‘popt_common_callback’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/tests/common.c:53:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘puser’ where non-null expected
<built-in>: note: 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): [#def435]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/tests/netgroup.c: scope_hint: In function ‘test_netgroupgetusers’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/tests/netgroup.c:182:49: warning[-Wanalyzer-null-argument]: use of NULL ‘current_name’ where non-null expected
/usr/include/string.h:462: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/tests/netgroup.c:24: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
#  180|   				}
#  181|   
#  182|-> 				if (username && strcasecmp(current_name, username) == 0) {
#  183|   					found_user = 1;
#  184|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def436]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_1’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:848:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:844:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:844:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:251: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:846:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
#  846|   	NT_STATUS_HAVE_NO_MEMORY(i->usri1_name);
#  847|   	i->usri1_password	= NULL;
#  848|-> 	i->usri1_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  849|   	i->usri1_priv		= samr_rid_to_priv_level(i21->rid);
#  850|   	i->usri1_home_dir	= talloc_strdup(mem_ctx, i21->home_directory.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def437]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_2’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:871:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:866:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:866:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:869:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
#  869|   	NT_STATUS_HAVE_NO_MEMORY(i->usri2_name);
#  870|   	i->usri2_password	= NULL;
#  871|-> 	i->usri2_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  872|   	i->usri2_priv		= samr_rid_to_priv_level(i21->rid);
#  873|   	i->usri2_home_dir	= talloc_strdup(mem_ctx, i21->home_directory.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def438]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_3’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:909:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:905:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:905:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:908:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
#  907|   	i->usri3_name		= talloc_strdup(mem_ctx, i21->account_name.string);
#  908|   	NT_STATUS_HAVE_NO_MEMORY(i->usri3_name);
#  909|-> 	i->usri3_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  910|   	i->usri3_priv		= samr_rid_to_priv_level(i21->rid);
#  911|   	i->usri3_home_dir	= talloc_strdup(mem_ctx, i21->home_directory.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def439]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_4’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:955:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:951:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:951:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:954:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
#  953|   	i->usri4_name		= talloc_strdup(mem_ctx, i21->account_name.string);
#  954|   	NT_STATUS_HAVE_NO_MEMORY(i->usri4_name);
#  955|-> 	i->usri4_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);
#  956|   	i->usri4_password	= NULL;
#  957|   	i->usri4_priv		= samr_rid_to_priv_level(i21->rid);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def440]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_11’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1023:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1016:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1016:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1019:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
# 1021|   	i->usri11_usr_comment	= talloc_strdup(mem_ctx, i21->comment.string);
# 1022|   	i->usri11_full_name	= talloc_strdup(mem_ctx, i21->full_name.string);
# 1023|-> 	i->usri11_priv		= samr_rid_to_priv_level(i21->rid);
# 1024|   	i->usri11_auth_flags	= auth_flag;
# 1025|   	i->usri11_password_age	= time(NULL) - nt_time_to_unix(i21->last_password_change);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def441]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_20’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1056:69: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1050:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1050:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1053:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
# 1054|   	i->usri20_comment	= talloc_strdup(mem_ctx, i21->description.string);
# 1055|   	i->usri20_full_name	= talloc_strdup(mem_ctx, i21->full_name.string);
# 1056|-> 	i->usri20_flags		= samr_acb_flags_to_netapi_flags(i21->acct_flags);
# 1057|   	i->usri20_user_id	= i21->rid;
# 1058|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def442]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_23’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1078:69: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1072:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1072:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:1075:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
# 1076|   	i->usri23_comment	= talloc_strdup(mem_ctx, i21->description.string);
# 1077|   	i->usri23_full_name	= talloc_strdup(mem_ctx, i21->full_name.string);
# 1078|-> 	i->usri23_flags		= samr_acb_flags_to_netapi_flags(i21->acct_flags);
# 1079|   	if (!sid_compose(&sid, domain_sid, i21->rid)) {
# 1080|   		return NT_STATUS_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def443]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c: scope_hint: In function ‘NetUserSetGroups_r’
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:3207:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
# 3205|   		switch (r->in.level) {
# 3206|   			case 0:
# 3207|-> 				init_lsa_String(&lsa_names[i], i0->grui0_name);
# 3208|   				i0++;
# 3209|   				break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
samba-4.21.1-build/samba-4.21.1/source3/lib/netapi/user.c:3211:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i1’
# 3209|   				break;
# 3210|   			case 1:
# 3211|-> 				init_lsa_String(&lsa_names[i], i1->grui1_name);
# 3212|   				i1++;
# 3213|   				break;

Error: GCC_ANALYZER_WARNING: [#def445]
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c: scope_hint: In function ‘smbrun_internal’
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:162:21: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
#  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): [#def446]
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:267:17: note: in expansion of macro ‘DEBUG’
#  251|   	/* build up an input pipe */
#  252|   	if(pipe(ifd)) {
#  253|-> 		return -1;
#  254|   	}
#  255|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def447]
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c: scope_hint: In function ‘smbrunsecret’
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:267:17: note: in expansion of macro ‘DEBUG’
#  251|   	/* build up an input pipe */
#  252|   	if(pipe(ifd)) {
#  253|-> 		return -1;
#  254|   	}
#  255|   

Error: GCC_ANALYZER_WARNING: [#def448]
samba-4.21.1-build/samba-4.21.1/source3/lib/smbrun.c:324:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
#  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): [#def449]
samba-4.21.1-build/samba-4.21.1/source3/lib/util_sock.c: scope_hint: In function ‘receive_smb_raw’
samba-4.21.1-build/samba-4.21.1/source3/lib/util_sock.c:208:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘len’
#  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): [#def450]
samba-4.21.1-build/samba-4.21.1/source3/lib/util_tdb.c: scope_hint: In function ‘tdb_unpack’
samba-4.21.1-build/samba-4.21.1/source3/lib/util_tdb.c:191:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/util_tdb.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/lib/util_tdb.c:196:39: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/source3/lib/util_tdb.c:196:39: note: in expansion of macro ‘SMB_STRDUP’
#  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): [#def451]
samba-4.21.1-build/samba-4.21.1/source3/libads/ldap_schema.c: scope_hint: In function ‘ads_check_posix_schema_mapping’
samba-4.21.1-build/samba-4.21.1/source3/libads/ldap_schema.c:289:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_names’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libads/ldap_schema.c:21: included_from: Included from 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): [#def452]
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c: scope_hint: In function ‘libnet_dssync_getncchanges’
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c:546:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:254: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c:500:22: note: in expansion of macro ‘W_ERROR_IS_OK’
#  544|   				    !ctx->single_object_replication)
#  545|   				{
#  546|-> 					new_utdv->version = 1;
#  547|   					new_utdv->ctr.ctr1.count =
#  548|   						ctr1->uptodateness_vector->count;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c:571:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.21.1-build/samba-4.21.1/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c:500:22: note: in expansion of macro ‘W_ERROR_IS_OK’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/libnet/libnet_dssync.c:554:25: note: in expansion of macro ‘DEBUG’
#  569|   				    !ctx->single_object_replication)
#  570|   				{
#  571|-> 					new_utdv->version = 2;
#  572|   					new_utdv->ctr.ctr2.count =
#  573|   						ctr6->uptodateness_vector->count;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
samba-4.21.1-build/samba-4.21.1/source3/librpc/crypto/gse.c:1009:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ccache’
# 1007|   					  0,
# 1008|   					  0,
# 1009|-> 					  ccache->name,
# 1010|   					  false,
# 1011|   					  false,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def455]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c: scope_hint: In function ‘cli_smb2_set_info_fnum_send’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:618:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.21.1-build/samba-4.21.1/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:251: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:29: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:220:37: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:108:24: note: in expansion of macro ‘NT_STATUS_INVALID_PARAMETER’
#  616|   	}
#  617|   
#  618|-> 	subreq = smb2cli_set_info_send(
#  619|   		state,
#  620|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def456]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c: scope_hint: In function ‘cli_smb2_query_info_fnum_send’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:1852:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:220:37: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:108:24: note: in expansion of macro ‘NT_STATUS_INVALID_PARAMETER’
# 1850|   	}
# 1851|   
# 1852|-> 	subreq = smb2cli_query_info_send(
# 1853|   		state,
# 1854|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def457]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c: scope_hint: In function ‘cli_smb2_notify_send’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:4772:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:220:37: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:108:24: note: in expansion of macro ‘NT_STATUS_INVALID_PARAMETER’
# 4770|   	}
# 4771|   
# 4772|-> 	state->subreq = smb2cli_notify_send(
# 4773|   		state,
# 4774|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def458]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c: scope_hint: In function ‘cli_smb2_fsctl_send’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:4967:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:220:37: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/cli_smb2_fnum.c:108:24: note: in expansion of macro ‘NT_STATUS_INVALID_PARAMETER’
# 4965|   	}
# 4966|   
# 4967|-> 	subreq = smb2cli_ioctl_send(
# 4968|   		state,
# 4969|   		ev,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def459]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clidfs.c: scope_hint: In function ‘cli_check_msdfs_proxy’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clidfs.c:1338:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘refs’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clidfs.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:62:6: note: in expansion of macro ‘PUSH_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:116:28: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clidfs.c:708:9: note: in expansion of macro ‘SSVAL’
# 1336|   	}
# 1337|   
# 1338|-> 	if (!refs[0].dfspath) {
# 1339|   		return false;
# 1340|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def460]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clilist.c: scope_hint: In function ‘cli_list_trans_done’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clilist.c:856:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘finfo’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clilist.c:20: included_from: Included from here.
#  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): [#def461]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c: scope_hint: In function ‘cli_RNetShareEnum’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:119:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:119:9: note: write of 2 bytes to beyond the end of ‘param’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:119:9: note: valid subscripts for ‘param’ are ‘[0]’ to ‘[1023]’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:22: included_from: Included from here.
/usr/include/string.h:506:15: note: parameter 1 of ‘strlcpy’ marked with attribute ‘access (write_only, 1, 3)’
#  117|   	SSVAL(p,0,0); /* api number */
#  118|   	p += 2;
#  119|-> 	strlcpy(p,"WrLeh",sizeof(param)-PTR_DIFF(p,param));
#  120|   	p = skip_string(param,sizeof(param),p);
#  121|   	strlcpy(p,"B13BWz",sizeof(param)-PTR_DIFF(p,param));

Error: GCC_ANALYZER_WARNING (CWE-121): [#def462]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c: scope_hint: In function ‘cli_NetServerEnum’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:255:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:255:25: note: write of 2 bytes to beyond the end of ‘param’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:255:25: note: valid subscripts for ‘param’ are ‘[0]’ to ‘[1023]’
/usr/include/string.h:506:15: note: parameter 1 of ‘strlcpy’ marked with attribute ‘access (write_only, 1, 3)’
#  253|   			strlcpy(p,"WrLehDzz", sizeof(param)-PTR_DIFF(p,param));
#  254|   		} else {
#  255|-> 			strlcpy(p,"WrLehDz", sizeof(param)-PTR_DIFF(p,param));
#  256|   		}
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-121): [#def463]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c: scope_hint: In function ‘cli_oem_change_password’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:477:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:62:6: note: in expansion of macro ‘PUSH_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:116:28: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:475:9: note: in expansion of macro ‘SSVAL’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:477:9: note: write of 2 bytes to beyond the end of ‘param’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clirap.c:477:9: note: valid subscripts for ‘param’ are ‘[0]’ to ‘[1023]’
/usr/include/string.h:506:15: note: parameter 1 of ‘strlcpy’ marked with attribute ‘access (write_only, 1, 3)’
#  475|   	SSVAL(p,0,214); /* SamOEMChangePassword command. */
#  476|   	p += 2;
#  477|-> 	strlcpy(p, "zsT", sizeof(param)-PTR_DIFF(p,param));
#  478|   	p = skip_string(param,sizeof(param),p);
#  479|   	strlcpy(p, "B516B16", sizeof(param)-PTR_DIFF(p,param));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def464]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clireadwrite.c: scope_hint: In function ‘cli_splice_fallback’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clireadwrite.c:1817:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nread’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:663: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/clireadwrite.c:20: included_from: Included from 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-476): [#def465]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c: scope_hint: In function ‘list_unique_wg_fn’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:258:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir_list’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:110:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:114:33: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:114:33: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:117:25: note: in expansion of macro ‘SAFE_FREE’
#  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: CPPCHECK_WARNING (CWE-768): [#def466]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_dir.c:2148: 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
# 2146|   		(struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT },
# 2147|   		access_time,
# 2148|-> 		write_time,
# 2149|   		(struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT },
# 2150|   		0);

Error: CPPCHECK_WARNING (CWE-768): [#def467]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_xattr.c:1847: 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
# 1845|   				path,
# 1846|   				(struct timespec) {
# 1847|-> 					.tv_sec = dad->create_time },
# 1848|   				(struct timespec) {
# 1849|   					.tv_sec = dad->access_time },

Error: CPPCHECK_WARNING (CWE-768): [#def468]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_xattr.c:1849: 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
# 1847|   					.tv_sec = dad->create_time },
# 1848|   				(struct timespec) {
# 1849|-> 					.tv_sec = dad->access_time },
# 1850|   				(struct timespec) {
# 1851|   					.tv_sec = dad->write_time },

Error: CPPCHECK_WARNING (CWE-768): [#def469]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_xattr.c:1851: 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
# 1849|   					.tv_sec = dad->access_time },
# 1850|   				(struct timespec) {
# 1851|-> 					.tv_sec = dad->write_time },
# 1852|   				(struct timespec) {
# 1853|   					.tv_sec = dad->change_time },

Error: CPPCHECK_WARNING (CWE-768): [#def470]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_xattr.c:2005: 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
# 2003|   					path,
# 2004|   					(struct timespec) {
# 2005|-> 						.tv_sec = dad->create_time },
# 2006|   					(struct timespec) {
# 2007|   						.tv_sec = dad->access_time },

Error: CPPCHECK_WARNING (CWE-768): [#def471]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_xattr.c:2007: 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
# 2005|   						.tv_sec = dad->create_time },
# 2006|   					(struct timespec) {
# 2007|-> 						.tv_sec = dad->access_time },
# 2008|   					(struct timespec) {
# 2009|   						.tv_sec = dad->write_time },

Error: CPPCHECK_WARNING (CWE-768): [#def472]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/libsmb_xattr.c:2009: 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
# 2007|   						.tv_sec = dad->access_time },
# 2008|   					(struct timespec) {
# 2009|-> 						.tv_sec = dad->write_time },
# 2010|   					(struct timespec) {
# 2011|   						.tv_sec = dad->change_time },

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def474]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_state_init’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:644:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘share’
/usr/include/python3.13/Python.h:72: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:82:9: note: in expansion of macro ‘Py_DECREF’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_state_init’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:583:9: note: in expansion of macro ‘Py_DECREF’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_state_init’
#  642|   	}
#  643|   
#  644|-> 	req = cli_full_connection_creds_send(
#  645|   		NULL, self->ev, "myname", host, NULL, 0, share, "?????",
#  646|   		cli_creds, flags,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def475]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_write’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:1462:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
# 1460|   	}
# 1461|   
# 1462|-> 	req = cli_write_send(NULL, self->ev, self->cli, fnum, mode,
# 1463|   			     (uint8_t *)buf, offset, buflen);
# 1464|   	if (!py_tevent_req_wait_exc(self, req)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def476]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_read’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:1605:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
# 1603|   	}
# 1604|   
# 1605|-> 	result = PyBytes_FromStringAndSize(NULL, size);
# 1606|   	if (result == NULL) {
# 1607|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def477]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_ftruncate’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:1659:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
# 1657|   	}
# 1658|   
# 1659|-> 	req = cli_ftruncate_send(NULL, self->ev, self->cli, fnum, size);
# 1660|   	if (!py_tevent_req_wait_exc(self, req)) {
# 1661|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def478]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_delete_on_close’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:1689:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag’
# 1687|   	}
# 1688|   
# 1689|-> 	req = cli_nt_delete_on_close_send(NULL, self->ev, self->cli, fnum,
# 1690|   					  flag);
# 1691|   	if (!py_tevent_req_wait_exc(self, req)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def479]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_fsctl’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/pylibsmb.c:2716:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
# 2714|   	}
# 2715|   
# 2716|-> 	in = (DATA_BLOB) { .data = (uint8_t *)buf, .length = buflen, };
# 2717|   
# 2718|   	req = cli_fsctl_send(

Error: GCC_ANALYZER_WARNING (CWE-775): [#def480]
samba-4.21.1-build/samba-4.21.1/source3/libsmb/unexpected.c: scope_hint: In function ‘nb_packet_server_create’
samba-4.21.1-build/samba-4.21.1/source3/libsmb/unexpected.c:94:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘create_pipe_sock(nmbd_socket_dir, "unexpected", 493)’
#   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-476): [#def481]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_dirsort.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_dirsort.c: scope_hint: In function ‘dirsort_fdopendir’
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_dirsort.c:150:34: warning[-Wanalyzer-null-dereference]: 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): [#def482]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_fileid.c: scope_hint: In function ‘fileid_find_mount_entry’
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_fileid.c:180:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*data.mount_entries’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_fileid.c:22: included_from: Included from here.
#  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): [#def483]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_fileid.c: scope_hint: In function ‘fileid_find_mount_entry.part.0’
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_fileid.c:187:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*data.mount_entries’
#  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: CPPCHECK_WARNING (CWE-457): [#def484]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_fruit.c:840: error[uninitvar]: Uninitialized variable: p
#  838|   	SIVAL(p, 4, 0);
#  839|   	SBVAL(p, 8, req_bitmap);
#  840|-> 	ok = data_blob_append(req, &blob, p, 16);
#  841|   	if (!ok) {
#  842|   		return NT_STATUS_UNSUCCESSFUL;

Error: COMPILER_WARNING: [#def485]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_set_quota’
samba-4.21.1-build/samba-4.21.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: [#def486]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_shadow_copy_data’
samba-4.21.1-build/samba-4.21.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: [#def487]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_statvfs’
samba-4.21.1-build/samba-4.21.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: [#def488]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fs_capabilities’
samba-4.21.1-build/samba-4.21.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: [#def489]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_dfs_referrals’
samba-4.21.1-build/samba-4.21.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: [#def490]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_check_path’
samba-4.21.1-build/samba-4.21.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: [#def491]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_create’
samba-4.21.1-build/samba-4.21.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: [#def492]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_delete’
samba-4.21.1-build/samba-4.21.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: [#def493]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_readdir’
samba-4.21.1-build/samba-4.21.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: [#def494]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_rewinddir’
samba-4.21.1-build/samba-4.21.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: [#def495]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_closedir’
samba-4.21.1-build/samba-4.21.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: [#def496]
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_translate_name’
samba-4.21.1-build/samba-4.21.1/source3/modules/vfs_full_audit.c:2172:76: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2172 |         do_log(SMB_VFS_OP_TRANSLATE_NAME, NT_STATUS_IS_OK(result), handle, "");
#      |                                                                            ^~
# 2170|   					     mapped_name);
# 2171|   
# 2172|-> 	do_log(SMB_VFS_OP_TRANSLATE_NAME, NT_STATUS_IS_OK(result), handle, "");
# 2173|   
# 2174|   	return result;

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-775): [#def503]
samba-4.21.1-build/samba-4.21.1/source3/nmbd/asyncdns.c: scope_hint: In function ‘start_async_dns’
samba-4.21.1-build/samba-4.21.1/source3/nmbd/asyncdns.c:148:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd1[0]’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/nmbd/asyncdns.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:285:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/nmbd/asyncdns.c:147:17: note: in expansion of macro ‘DBG_ERR’
#  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): [#def504]
samba-4.21.1-build/samba-4.21.1/source3/nmbd/asyncdns.c:148:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd1[1]’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:285:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/nmbd/asyncdns.c:147:17: note: in expansion of macro ‘DBG_ERR’
#  146|   	if (pipe(fd1) || pipe(fd2)) {
#  147|   		DBG_ERR("can't create asyncdns pipes\n");
#  148|-> 		return;
#  149|   	}
#  150|   

Error: COMPILER_WARNING: [#def505]
samba-4.21.1-build/samba-4.21.1/source3/nmbd/nmbd_become_lmb.c: scope_hint: In function ‘become_local_master_browser’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/source3/nmbd/nmbd_become_lmb.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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:511: 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.21.1-build/samba-4.21.1/lib/replace/replace.h:48: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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: [#def506]
samba-4.21.1-build/samba-4.21.1/source3/nmbd/nmbd_browsesync.c: scope_hint: In function ‘find_domain_master_name_query_success’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/source3/nmbd/nmbd_browsesync.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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:511: 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.21.1-build/samba-4.21.1/lib/replace/replace.h:48: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def507]
samba-4.21.1-build/samba-4.21.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): [#def508]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def509]
samba-4.21.1-build/samba-4.21.1/source3/passdb/pdb_samba_dsdb.c: scope_hint: In function ‘pdb_samba_dsdb_update_sam_account’
samba-4.21.1-build/samba-4.21.1/source3/passdb/pdb_samba_dsdb.c:891:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  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: CPPCHECK_WARNING (CWE-457): [#def510]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def511]
samba-4.21.1-build/samba-4.21.1/source3/printing/notify.c: scope_hint: In function ‘print_notify_pid_list’
samba-4.21.1-build/samba-4.21.1/source3/printing/notify.c:679:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pid_list’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/printing/notify.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/printing/notify.c:679:38: note: in expansion of macro ‘IVAL’
#  677|   
#  678|   	for( i = 0, offset = 0; i < num_pids; offset += 8, i++)
#  679|-> 		pid_list[i] = (pid_t)IVAL(data.dptr, offset);
#  680|   
#  681|   	*pp_pid_list = pid_list;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def512]
samba-4.21.1-build/samba-4.21.1/source3/printing/queue_process.c: scope_hint: In function ‘start_background_queue’
samba-4.21.1-build/samba-4.21.1/source3/printing/queue_process.c:368:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
#  366|   	ret = pipe(ready_fds);
#  367|   	if (ret == -1) {
#  368|-> 		return -1;
#  369|   	}
#  370|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_internal.c: scope_hint: In function ‘set_iconv’
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/source3/registry/reg_parse_internal.c:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_internal.c:236:24: note: in expansion of macro ‘smb_iconv_open’
#  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): [#def514]
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:388:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data32’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:57:41: note: in definition of macro ‘PUSH_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:388:25: note: in expansion of macro ‘SIVAL’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:57:41: note: in definition of macro ‘PUSH_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:388:25: note: in expansion of macro ‘SIVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:57:41: note: in definition of macro ‘PUSH_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/registry/reg_parse_prs.c:388:25: note: in expansion of macro ‘SIVAL’
#  386|   			RSIVAL(q,0,*data32);
#  387|   		else
#  388|-> 			SIVAL(q,0,*data32);
#  389|   	}
#  390|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def515]
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/wsp_cli.c: scope_hint: In function ‘process_andornot_node’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/wsp_cli.c:1420:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestr’
# 1418|   		&crestr->restriction.cnoderestriction;
# 1419|   
# 1420|-> 	crestr->weight = 1000;
# 1421|   
# 1422|   	if (node->type == eAND || node->type == eOR) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def516]
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/wsp_cli.c:1457:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestriction’
samba-4.21.1-build/samba-4.21.1/source3/rpc_client/wsp_cli.c: scope_hint: In function ‘process_query_node’
# 1455|   			t_query *node)
# 1456|   {
# 1457|-> 	*crestriction = *node->restriction;
# 1458|   }
# 1459|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def517]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c: scope_hint: In function ‘init_reply_dfs_info_1’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c:239:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
#  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): [#def518]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c: scope_hint: In function ‘init_reply_dfs_info_2’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c:251:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
#  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): [#def519]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c: scope_hint: In function ‘init_reply_dfs_info_3’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c:264:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
#  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): [#def520]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/dfs/srv_dfs_nt.c:306:29: warning[-Wanalyzer-null-dereference]: 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): [#def521]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_iface_binding_map_add_endpoint’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c:1556:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
# 1554|   		}
# 1555|   
# 1556|-> 		p = strv_find(map->bindings, binding_string);
# 1557|   		if (p == NULL) {
# 1558|   			int ret = strv_add(

Error: GCC_ANALYZER_WARNING (CWE-476): [#def522]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_host_fill_epm_db’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c:1613:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
samba-4.21.1-build/samba-4.21.1/lib/util/time.h:29: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/auth/credentials/credentials.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/cmdline/cmdline.h:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c:44: included_from: Included from here.
# 1611|   		char *keystr = ndr_syntax_id_buf_string(&map->iface, &buf);
# 1612|   		TDB_DATA value = {
# 1613|-> 			.dptr = (uint8_t *)map->bindings,
# 1614|   			.dsize = talloc_array_length(map->bindings),
# 1615|   		};

Error: GCC_ANALYZER_WARNING (CWE-476): [#def523]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_host_endpoint_accept_got_bind’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c:2158:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2156|   	}
# 2157|   
# 2158|-> 	client->binding = dcerpc_binding_string(client, endpoint->binding);
# 2159|   	if (client->binding == NULL) {
# 2160|   		DBG_WARNING("dcerpc_binding_string failed, dropping client\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def524]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_host_server_setup_done’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/rpc_host.c:2545:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2543|   	}
# 2544|   
# 2545|-> 	server->server_index = state->num_prepared;
# 2546|   	host->servers[state->num_prepared] = server;
# 2547|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def525]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c: scope_hint: In function ‘dochild’
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:48: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:95:34: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:105:25: note: in expansion of macro ‘DEBUG’
#  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): [#def526]
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:95:34: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:105:25: note: in expansion of macro ‘DEBUG’
#  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): [#def527]
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:95:34: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_chgpasswd.c:105:25: note: in expansion of macro ‘DEBUG’
#  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): [#def528]
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:34: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c: scope_hint: In function ‘make_samr_lookup_rids’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:2186:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:7910: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:251: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:8:22: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:195:16: note: in expansion of macro ‘NT_STATUS_OK’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:2186:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:2186:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:201:20: note: in definition of macro ‘DEBUG’
# 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): [#def529]
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:2187:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:8:22: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:195:16: note: in expansion of macro ‘NT_STATUS_OK’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/rpc_server/samr/srv_samr_nt.c:2186:17: note: in expansion of macro ‘DEBUG’
# 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: CPPCHECK_WARNING (CWE-457): [#def530]
samba-4.21.1-build/samba-4.21.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): [#def531]
samba-4.21.1-build/samba-4.21.1/source3/smbd/durable.c:532: error[unknownEvaluationOrder]: Expression '.pid={.pid=0,}' depends on order of evaluation of side effects
#  530|   	if (state->e->share_file_id == id) {
#  531|   		DBG_INFO("Found more than one entry, invalidating previous\n");
#  532|-> 		*state->e = (struct share_mode_entry) { .pid = { .pid = 0, }};
#  533|   		return true;	/* end the loop through share mode entries */
#  534|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def532]
samba-4.21.1-build/samba-4.21.1/source3/smbd/msdfs.c: scope_hint: In function ‘dfs_path_lookup’
samba-4.21.1-build/samba-4.21.1/source3/smbd/msdfs.c:750:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parent_smb_fname’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/msdfs.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:50: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/msdfs.c:692:25: note: in expansion of macro ‘talloc_stackframe’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/ntstatus.h:124:29: note: in expansion of macro ‘likely’
samba-4.21.1-build/samba-4.21.1/source3/smbd/msdfs.c:742:14: note: in expansion of macro ‘NT_STATUS_IS_OK’
#  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): [#def533]
samba-4.21.1-build/samba-4.21.1/source3/smbd/notifyd/notifyd.c: scope_hint: In function ‘notifyd_apply_rec_change’
samba-4.21.1-build/samba-4.21.1/source3/smbd/notifyd/notifyd.c:427:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘instance’
samba-4.21.1-build/samba-4.21.1/source3/smbd/notifyd/notifyd.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/notifyd/notifyd.c:359:9: note: in expansion of macro ‘DBG_DEBUG’
/usr/include/tevent.h:32: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/notifyd/notifyd.c:21: included_from: Included from here.
#  425|   
#  426|   	if (i < num_instances) {
#  427|-> 		instance->instance = *chg;
#  428|   	} else {
#  429|   		/*

Error: CPPCHECK_WARNING (CWE-768): [#def534]
samba-4.21.1-build/samba-4.21.1/source3/smbd/open.c:3262: error[unknownEvaluationOrder]: Expression 'req,NULL,(struct timeval){.tv_usec=timeout_usecs},(struct timeval){.tv_usec=200000}' depends on order of evaluation of side effects
# 3260|   		req,
# 3261|   		NULL,
# 3262|-> 		(struct timeval) { .tv_usec = timeout_usecs },
# 3263|   		(struct timeval) { .tv_usec = 200000 });
# 3264|   	return ok;

Error: CPPCHECK_WARNING (CWE-457): [#def535]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-775): [#def536]
samba-4.21.1-build/samba-4.21.1/source3/smbd/server.c: scope_hint: In function ‘smbd_open_one_socket’
samba-4.21.1-build/samba-4.21.1/source3/smbd/server.c:1109:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.fd’
# 1107|   	set_blocking(s->fd, False);
# 1108|   
# 1109|-> 	if (listen(s->fd, SMBD_LISTEN_BACKLOG) == -1) {
# 1110|   		DEBUG(0,("smbd_open_one_socket: listen: "
# 1111|   			"%s\n", strerror(errno)));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def537]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c: scope_hint: In function ‘copy_trans_params_and_data’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:70:17: warning[-Wanalyzer-null-argument]: use of NULL ‘rdata’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:27: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:684:17: note: in expansion of macro ‘SVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:827:22: note: in expansion of macro ‘talloc_tos’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:237: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:621:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:555:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:663: included_from: Included from here.
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   68|   
#   69|   	if (param_len)
#   70|-> 		memcpy(copy_into, &rparam[param_offset], param_len);
#   71|   
#   72|   	copy_into += param_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def538]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:80:17: warning[-Wanalyzer-null-argument]: use of NULL ‘rdata’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:684:17: note: in expansion of macro ‘SVAL’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:827:22: note: in expansion of macro ‘talloc_tos’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:621:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:555:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   78|   
#   79|   	if (data_len )
#   80|-> 		memcpy(copy_into, &rdata[data_offset], data_len);
#   81|   }
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def539]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c: scope_hint: In function ‘send_nt_replies’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:218:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pp’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:2647:13: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:1992:20: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/source3/include/vfs.h:1407: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:137: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/vfs_macros.h:409:81: note: in definition of macro ‘SMB_VFS_FSCTL’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb_macros.h:134:33: note: in definition of macro ‘smb_buf’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  216|   				       alignment_offset);
#  217|   			}
#  218|-> 			memcpy((smb_buf(req->outbuf)+alignment_offset), pp,
#  219|   			       params_sent_thistime);
#  220|   		}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def540]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:232:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pd’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:2647:13: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:1833:29: note: in expansion of macro ‘SVAL’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:1839:32: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:42:24: note: in expansion of macro ‘SMB_REALLOC’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:62:6: note: in expansion of macro ‘PUSH_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:1865:17: note: in expansion of macro ‘SIVAL’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  230|   				       data_alignment_offset);
#  231|   			}
#  232|-> 			memcpy(smb_buf(req->outbuf)+alignment_offset
#  233|   			       +params_sent_thistime+data_alignment_offset,
#  234|   			       pd,data_sent_thistime);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def541]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c: scope_hint: In function ‘call_nt_transact_get_user_quota’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:2160:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:2647:13: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:2095:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:42:24: note: in expansion of macro ‘SMB_REALLOC’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_nttrans.c:42:24: note: in expansion of macro ‘SMB_REALLOC’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 2158|   	SIVAL(params, 0, data_len);
# 2159|   	pdata = nttrans_realloc(ppdata, data_len);
# 2160|-> 	memcpy(pdata, resp_data, data_len);
# 2161|   
# 2162|   	TALLOC_FREE(tmp_ctx);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def542]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c: scope_hint: In function ‘send_trans2_replies’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:226:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pd’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:5588:13: note: in expansion of macro ‘SVAL’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:5166:13: note: in expansion of macro ‘ENCRYPTION_REQUIRED’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:542:17: note: in expansion of macro ‘SVAL’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:559:13: note: in expansion of macro ‘IS_IPC’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:559:13: note: in expansion of macro ‘IS_IPC’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:588:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:640:21: note: in expansion of macro ‘IVAL’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb1_trans2.c:662:44: note: in expansion of macro ‘SMB_REALLOC’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  224|   				       data_alignment_offset);
#  225|   			}
#  226|-> 			memcpy(smb_buf(req->outbuf)+alignment_offset
#  227|   			       +params_sent_thistime+data_alignment_offset,
#  228|   			       pd,data_sent_thistime);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def543]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_create.c: scope_hint: In function ‘smbd_smb2_request_create_done’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_create.c:371:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out_context_blobs’
#  369|   	}
#  370|   
#  371|-> 	status = smb2_create_blob_push(smb2req, &out_context_buffer, out_context_blobs);
#  372|   	if (!NT_STATUS_IS_OK(status)) {
#  373|   		error = smbd_smb2_request_error(smb2req, status);

Error: CPPCHECK_WARNING (CWE-457): [#def544]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_create.c:1526: error[uninitvar]: Uninitialized variable: p
# 1524|   			uint8_t p[8];
# 1525|   			uint32_t max_access_granted;
# 1526|-> 			DATA_BLOB blob = data_blob_const(p, sizeof(p));
# 1527|   
# 1528|   			status = smbd_calculate_access_mask_fsp(

Error: CPPCHECK_WARNING (CWE-457): [#def545]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_create.c:1636: error[uninitvar]: Uninitialized variable: p
# 1634|   			&state->result->fsp_name->st;
# 1635|   		uint64_t file_id = SMB_VFS_FS_FILE_ID(conn, base_sp);
# 1636|-> 		DATA_BLOB blob = data_blob_const(p, sizeof(p));
# 1637|   
# 1638|   		ZERO_STRUCT(p);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def546]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_ioctl_filesys.c: scope_hint: In function ‘fsctl_zero_data’
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/source3/include/vfs.h:1407: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:137: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_ioctl_filesys.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_ioctl_filesys.c:466:14: note: in expansion of macro ‘SMB_VFS_STRICT_LOCK_CHECK’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_ioctl_filesys.c:481:15: note: in expansion of macro ‘SMB_VFS_FALLOCATE’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb_macros.h:76:35: note: in definition of macro ‘SNUM’
#  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-465): [#def547]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_read.c: scope_hint: In function ‘smb2_sendfile_send_data’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_read.c:237:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.21.1-build/samba-4.21.1/source3/include/vfs.h:1407: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:137: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_read.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_read.c:217:17: note: in expansion of macro ‘SMB_VFS_SENDFILE’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:51: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/smb_macros.h:76:35: note: in definition of macro ‘SNUM’
#  235|   
#  236|   		if (errno == ENOTSUP) {
#  237|-> 			set_use_sendfile(SNUM(fsp->conn), false);
#  238|   			DBG_WARNING("Disabling sendfile use as sendfile is "
#  239|   				    "not supported by the system\n");

Error: GCC_ANALYZER_WARNING (CWE-465): [#def548]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_read.c:249:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.21.1-build/samba-4.21.1/source3/smbd/smb2_read.c:217:17: note: in expansion of macro ‘SMB_VFS_SENDFILE’
samba-4.21.1-build/samba-4.21.1/source3/include/smb_macros.h:76:35: note: in definition of macro ‘SNUM’
#  247|   			 * Fake this up by doing read/write calls.
#  248|   			 */
#  249|-> 			set_use_sendfile(SNUM(fsp->conn), false);
#  250|   			nread = fake_sendfile(xconn, fsp, in_offset, in_length);
#  251|   			if (nread == -1) {

Error: CPPCHECK_WARNING (CWE-457): [#def549]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def550]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c: scope_hint: In function ‘smbXsrv_open_cleanup_fn’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_open.c:1437:17: warning[-Wanalyzer-null-dereference]: 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: CPPCHECK_WARNING (CWE-457): [#def551]
samba-4.21.1-build/samba-4.21.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): [#def552]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def553]
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_session.c: scope_hint: In function ‘smbXsrv_session_logoff’
samba-4.21.1-build/samba-4.21.1/source3/smbd/smbXsrv_session.c:1853:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*session.client’
# 1851|   	session->table = NULL;
# 1852|   
# 1853|-> 	sconn = session->client->sconn;
# 1854|   	session->client = NULL;
# 1855|   	session->status = NT_STATUS_USER_SESSION_DELETED;

Error: CPPCHECK_WARNING (CWE-457): [#def554]
samba-4.21.1-build/samba-4.21.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): [#def555]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def556]
samba-4.21.1-build/samba-4.21.1/source3/utils/log2pcaphex.c: scope_hint: In function ‘print_netbios_packet’
samba-4.21.1-build/samba-4.21.1/source3/utils/log2pcaphex.c:173:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newdata’
#  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-688): [#def557]
samba-4.21.1-build/samba-4.21.1/source3/utils/log2pcaphex.c: scope_hint: In function ‘read_log_msg’
samba-4.21.1-build/samba-4.21.1/source3/utils/log2pcaphex.c:217:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buffer’ where non-null expected
samba-4.21.1-build/samba-4.21.1/source3/utils/log2pcaphex.c:60: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  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: GCC_ANALYZER_WARNING (CWE-775): [#def558]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c: scope_hint: In function ‘net_idmap_restore’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:359:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘input’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:50: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:362:19: note: in expansion of macro ‘talloc_stackframe’
samba-4.21.1-build/samba-4.21.1/source3/utils/net.h:31: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:378:27: note: in expansion of macro ‘_’
#  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): [#def559]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:359:24: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:362:19: note: in expansion of macro ‘talloc_stackframe’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap.c:378:27: note: in expansion of macro ‘_’
#  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): [#def560]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap_check.c: scope_hint: In function ‘check_open_db’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_idmap_check.c:815:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
#  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): [#def561]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rap.c: scope_hint: In function ‘rap_share_add.part.0’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rap.c:246:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘sharename’ where non-null expected
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rap.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rap.c:245:21: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rap.c:245:21: note: in expansion of macro ‘SMB_STRDUP’
<built-in>: note: 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): [#def562]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_registry_check.c: scope_hint: In function ‘check_ctx_transaction_stop’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_registry_check.c:377:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
#  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): [#def563]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc.c: scope_hint: In function ‘run_rpc_command’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc.c:198:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_name’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc.c:23: included_from: Included from here.
#  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): [#def564]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_conf.c: scope_hint: In function ‘rpc_conf_import_internal’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_conf.c:1244:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘services’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_conf.c: scope_hint: In function ‘rpc_conf_import_internal’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_conf.c: scope_hint: In function ‘rpc_conf_import_internal’
# 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): [#def565]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_trust.c: scope_hint: In function ‘rpc_trust_common’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_trust.c:651:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_trust.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_rpc_trust.c:225:17: note: in expansion of macro ‘DEBUG’
#  649|   		}
#  650|   	} else if (op == TRUST_DELETE) {
#  651|-> 		status = delete_trust(mem_ctx, pipe_hnd[0]->binding_handle,
#  652|   				      &pol_hnd[0], dom_data[1].domsid);
#  653|   		if (!NT_STATUS_IS_OK(status)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c: scope_hint: In function ‘net_make_ipc_connection_ex’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c:433:16: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.21.1-build/samba-4.21.1/source3/include/smb.h:586: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:258: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c:285:32: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c:285:32: note: in expansion of macro ‘SMB_STRDUP’
samba-4.21.1-build/samba-4.21.1/source3/utils/net.h:31: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/net_util.c:397:43: note: in expansion of macro ‘_’
#  431|   		*pcli = cli;
#  432|   	}
#  433|-> 	return nt_status;
#  434|   }
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def567]
samba-4.21.1-build/samba-4.21.1/source3/utils/ntlm_auth.c: scope_hint: In function ‘check_auth_crap’
samba-4.21.1-build/samba-4.21.1/source3/utils/ntlm_auth.c:2483:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘error_string’
samba-4.21.1-build/samba-4.21.1/source3/utils/ntlm_auth.c:51: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/ntlm_auth.c:394:9: note: in expansion of macro ‘fstrcpy’
samba-4.21.1-build/samba-4.21.1/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:251: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/ntlm_auth.c:27: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:220:37: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source3/utils/ntlm_auth.c:551:24: note: in expansion of macro ‘NT_STATUS_INVALID_PARAMETER’
# 2481|   
# 2482|   	if (!NT_STATUS_IS_OK(nt_status)) {
# 2483|-> 		printf("%s (0x%x)\n", error_string,
# 2484|   		       NT_STATUS_V(nt_status));
# 2485|   		SAFE_FREE(error_string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def568]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_set_submit_cb’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:102:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dia’
#  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): [#def569]
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_section_set_name’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:157:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:60: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
#  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): [#def570]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_section_set_justify’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:164:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
#  162|   				enum section_justify justify)
#  163|   {
#  164|-> 	section->justify = justify;
#  165|   }
#  166|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def571]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_append_section’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:173:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dia’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
#  171|   	SMB_ASSERT(section != NULL);
#  172|   
#  173|-> 	if (!dia->head_section) {
#  174|   		dia->head_section = section;
#  175|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def572]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c: scope_hint: In function ‘tree_node_append’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c:113:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘left’
#  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: CPPCHECK_WARNING (CWE-457): [#def573]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c:312: warning[uninitvar]: Uninitialized variable: rv.w
#  310|   	talloc_free(array);
#  311|   
#  312|-> 	return rv;
#  313|   }
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def574]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c: scope_hint: In function ‘tree_node_load_children’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c:312:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rv.w’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c:20: included_from: Included from here.
#  310|   	talloc_free(array);
#  311|   
#  312|-> 	return rv;
#  313|   }
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def575]
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c: scope_hint: In function ‘tree_node_print_path’
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c:696:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:50: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/utils/regedit_treeview.c:693:17: note: in expansion of macro ‘talloc_stackframe’
#  694|   	path = tree_node_get_path(frame, node->parent);
#  695|   
#  696|-> 	while (*path) {
#  697|   		len += strlen(*path) + 1;
#  698|   		wprintw(label, "%s/", *path);

Error: CPPCHECK_WARNING (CWE-457): [#def576]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-775): [#def577]
samba-4.21.1-build/samba-4.21.1/source3/utils/smbfilter.c: scope_hint: In function ‘start_filter’
samba-4.21.1-build/samba-4.21.1/source3/utils/smbfilter.c:298:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_socket_in(1, &my_ss, 445, 1)’
#  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: CPPCHECK_WARNING (CWE-476): [#def578]
samba-4.21.1-build/samba-4.21.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): [#def579]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def580]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/idmap_ad.c: scope_hint: In function ‘idmap_ad_dn_filter’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/idmap_ad.c:633:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/winbindd/idmap_ad.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/idmap_ad.c:1110:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:240: included_from: Included from here.
#  631|   	}
#  632|   
#  633|-> 	if ((ctx->allow_ous == NULL) && (ctx->deny_ous == NULL)) {
#  634|   		/*
#  635|   		 * Nothing to check

Error: GCC_ANALYZER_WARNING (CWE-775): [#def581]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd.c: scope_hint: In function ‘winbindd_setup_listeners’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd.c:1041:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘create_pipe_sock(lp_winbindd_socket_directory(), "pipe", 493)’
# 1039|   	}
# 1040|   	rc = listen(pub_state->fd, 5);
# 1041|-> 	if (rc < 0) {
# 1042|   		goto failed;
# 1043|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def582]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd.c:1073:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.fd’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:247: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd.c:25: included_from: Included from here.
# 1071|   	}
# 1072|   	rc = listen(priv_state->fd, 5);
# 1073|-> 	if (rc < 0) {
# 1074|   		goto failed;
# 1075|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def583]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-688): [#def584]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_dual.c: scope_hint: In function ‘winbind_msg_dump_domain_list’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_dual.c:1193:51: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1191|   	status = messaging_send_buf(msg_ctx, server_id,
# 1192|   				    MSG_WINBIND_DUMP_DOMAIN_LIST,
# 1193|-> 				    (uint8_t *)s, strlen(s) + 1);
# 1194|   	if (!NT_STATUS_IS_OK(status)) {
# 1195|   		DEBUG(0,("failed to send message: %s\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def585]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c: scope_hint: In function ‘msrpc_name_to_sid’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:275:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domains’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:246:9: note: in expansion of macro ‘DEBUG’
#  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): [#def586]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:285:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘types’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:246:9: note: in expansion of macro ‘DEBUG’
#  283|   
#  284|   	sid_copy(sid, &sids[0]);
#  285|-> 	*type = types[0];
#  286|   
#  287|   	return NT_STATUS_OK;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def587]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c: scope_hint: In function ‘msrpc_sid_to_name’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:326:17: warning[-Wanalyzer-null-dereference]: 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): [#def588]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c: scope_hint: In function ‘winbindd_lookup_names’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_msrpc.c:1054:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1052|    connect:
# 1053|   	if (domains == NULL) {
# 1054|-> 		*domains = NULL;
# 1055|   	}
# 1056|   	*sids = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def589]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_pam.c: scope_hint: In function ‘winbindd_pam_auth_pac_verify’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_pam.c:3500:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pac_data’
samba-4.21.1-build/samba-4.21.1/source3/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_pam.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/ntstatus.h:124:29: note: in expansion of macro ‘likely’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_pam.c:3494:14: note: in expansion of macro ‘NT_STATUS_IS_OK’
# 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): [#def590]
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_rpc.c: scope_hint: In function ‘rpc_lookup_useraliases’
samba-4.21.1-build/samba-4.21.1/source3/winbindd/winbindd_rpc.c:358:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  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): [#def591]
samba-4.21.1-build/samba-4.21.1/source4/client/cifsdd.c: scope_hint: In function ‘set_arg_val’
samba-4.21.1-build/samba-4.21.1/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’
#  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): [#def592]
samba-4.21.1-build/samba-4.21.1/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’
#  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): [#def593]
samba-4.21.1-build/samba-4.21.1/source4/client/client.c: scope_hint: In function ‘do_put’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:1134:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:32: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:1172:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:1217:9: note: in expansion of macro ‘SAFE_FREE’
# 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): [#def594]
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:1134:40: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:1172:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:1217:9: note: in expansion of macro ‘SAFE_FREE’
# 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): [#def595]
samba-4.21.1-build/samba-4.21.1/source4/client/client.c: scope_hint: In function ‘completion_remote_filter’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:2927:52: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:41: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:2925:104: note: in expansion of macro ‘ISDOT’
# 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): [#def596]
samba-4.21.1-build/samba-4.21.1/source4/client/client.c: scope_hint: In function ‘remote_completion’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:2996:33: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(info.matches[1])’
samba-4.21.1-build/samba-4.21.1/source4/client/client.c:2968:24: note: in expansion of macro ‘malloc_array_p’
# 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): [#def597]
samba-4.21.1-build/samba-4.21.1/source4/dns_server/dns_query.c: scope_hint: In function ‘accept_gss_ticket’
samba-4.21.1-build/samba-4.21.1/source4/dns_server/dns_query.c:772:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tkey’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dns_server/dns_query.c:22: included_from: Included from here.
#  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): [#def598]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_reference_dn’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:1928:56: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
# 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): [#def599]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:3098:21: warning[-Wanalyzer-null-dereference]: 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): [#def600]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘dsdb_find_dn_by_guid’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:3390:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5653:9: note: in expansion of macro ‘SMB_ASSERT’
# 3388|   	}
# 3389|   
# 3390|-> 	*dn = talloc_steal(mem_ctx, res->msgs[0]->dn);
# 3391|   	talloc_free(res);
# 3392|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def601]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘dsdb_find_dn_by_sid’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:3544:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5653:9: note: in expansion of macro ‘SMB_ASSERT’
# 3542|   	}
# 3543|   
# 3544|-> 	*dn = talloc_steal(mem_ctx, res->msgs[0]->dn);
# 3545|   	talloc_free(res);
# 3546|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def602]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_get_ntds_obj_by_guid’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:3813:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5653:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/lib/util/fault.h:36:13: note: in expansion of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5653:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5653:9: note: in expansion of macro ‘SMB_ASSERT’
# 3811|   	}
# 3812|   	if (msg) {
# 3813|-> 		*msg = talloc_steal(mem_ctx, res->msgs[0]);
# 3814|   	}
# 3815|   	TALLOC_FREE(res);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def603]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_is_rodc’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:3858:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘msg’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb_module.h:160:24: note: in expansion of macro ‘ldb_error’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:3797:24: note: in expansion of macro ‘ldb_operr’
# 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-476): [#def604]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5109:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:289:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/common/util.c:5530:9: note: in expansion of macro ‘DBG_DEBUG’
# 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: CPPCHECK_WARNING (CWE-457): [#def605]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def606]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c: scope_hint: In function ‘acl_check_spn’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:696:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:34: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb_module.h:36: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:35: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2036:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2047:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2051:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2077:28: note: in expansion of macro ‘ldb_attr_cmp’
#  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): [#def607]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:722:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2036:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2047:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2051:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2077:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:117:36: note: in definition of macro ‘LDB_FLAG_MOD_TYPE’
#  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): [#def608]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:791:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2036:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2047:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2051:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2077:28: note: in expansion of macro ‘ldb_attr_cmp’
#  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): [#def609]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c: scope_hint: In function ‘acl_check_dns_host_name’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:898:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2036:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2047:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2051:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2077:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2090:28: note: in expansion of macro ‘ldb_attr_cmp’
#  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): [#def610]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:931:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2036:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2047:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2051:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2077:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2090:28: note: in expansion of macro ‘ldb_attr_cmp’
#  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): [#def611]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:1042:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘search_res’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2036:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2047:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2051:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2077:28: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/acl.c:2090:28: note: in expansion of macro ‘ldb_attr_cmp’
# 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): [#def612]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/count_attrs.c: scope_hint: In function ‘count_attrs_search’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/count_attrs.c:484:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/count_attrs.c:27: included_from: Included from here.
#  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): [#def613]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/dirsync.c: scope_hint: In function ‘dirsync_filter_entry’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/dirsync.c:465:79: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tab’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/dirsync.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb.h:1943:39: note: in definition of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb.h:1943:39: note: in definition of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/dirsync.c:361:21: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/lib/ldb/include/ldb.h:1943:39: note: in definition of macro ‘ldb_attr_cmp’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/dirsync.c:21: included_from: Included from here.
#  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): [#def614]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c: scope_hint: In function ‘dn_compare’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:346:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn1’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:285:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:303:17: note: in expansion of macro ‘DBG_ERR’
#  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): [#def615]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:346:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn2’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:285:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:303:17: note: in expansion of macro ‘DBG_ERR’
#  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): [#def616]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c: scope_hint: In function ‘log_membership_changes’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:742:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘old_val’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:285:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:303:17: note: in expansion of macro ‘DBG_ERR’
#  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): [#def617]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:839:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_val’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/lib/util/debug.h:285:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/group_audit.c:303:17: note: in expansion of macro ‘DBG_ERR’
#  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): [#def618]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/operational.c:68: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/operational.c: scope_hint: In function ‘pso_find_best’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/operational.c:1241:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2342:13: note: in definition of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2342:13: note: in definition of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2342:13: note: in definition of macro ‘TYPESAFE_QSORT’
samba-4.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:2342:13: note: in definition of macro ‘TYPESAFE_QSORT’
# 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): [#def619]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/paged_results.c: scope_hint: In function ‘paged_results’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/paged_results.c:273:50: warning[-Wanalyzer-null-dereference]: 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: CPPCHECK_WARNING (CWE-457): [#def620]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-457): [#def621]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/samldb.c: scope_hint: In function ‘samldb_check_user_account_control_acl’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/samldb.c:2777:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
# 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): [#def622]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/samldb.c:2814:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
# 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): [#def623]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/samldb.c: scope_hint: In function ‘samldb_check_sensitive_attributes’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/samldb.c:4827:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
# 4825|   			return ret;
# 4826|   		}
# 4827|-> 		ret = acl_check_extended_right(ac,
# 4828|   					       ac->module,
# 4829|   					       ac->req,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def624]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/util.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/util.c: scope_hint: In function ‘dsdb_module_dn_by_guid’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/util.c:332:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:60: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/util.c:224:9: note: in expansion of macro ‘SMB_ASSERT’
#  330|   	}
#  331|   
#  332|-> 	*dn = talloc_steal(mem_ctx, msg->dn);
#  333|   
#  334|   	talloc_free(tmp_ctx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def625]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘vlv_value_compare’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:254:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:51: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:312:17: note: in expansion of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:312:17: note: in expansion of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:312:17: note: in expansion of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:110:34: note: in definition of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘vlv_value_compare’
#  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): [#def626]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘vlv_results’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:462:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:663: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:37: included_from: Included from here.
#  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): [#def627]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘copy_search_details’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:654:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘store’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
#  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): [#def628]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c: scope_hint: In function ‘dsdb_attribute_list’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:280:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def629]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:285:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def630]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:290:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def631]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:294:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def632]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:298:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def633]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:302:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def634]
samba-4.21.1-build/samba-4.21.1/source4/dsdb/schema/schema_query.c:306:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.21.1-build/samba-4.21.1/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  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): [#def635]
samba-4.21.1-build/samba-4.21.1/source4/kdc/db-glue.c: scope_hint: In function ‘dsdb_extract_aes_256_key’
samba-4.21.1-build/samba-4.21.1/source4/kdc/db-glue.c:4434:24: warning[-Wanalyzer-malloc-leak]: leak of ‘sentry.keys.val’
# 4432|   		krb5_free_error_message(context, krb5_err);
# 4433|   
# 4434|-> 		return krb5_ret;
# 4435|   	}
# 4436|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def636]
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit-kdb/kdb_samba_principals.c: scope_hint: In function ‘ks_get_master_key_principal’
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit-kdb/kdb_samba_principals.c:173:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
#  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): [#def637]
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit-kdb/kdb_samba_principals.c: scope_hint: In function ‘ks_create_principal’
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit-kdb/kdb_samba_principals.c:273:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit-kdb/kdb_samba_principals.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit-kdb/kdb_samba_principals.c:258:9: note: in expansion of macro ‘SAFE_FREE’
#  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): [#def638]
samba-4.21.1-build/samba-4.21.1/source4/kdc/mit_samba.c: scope_hint: In function ‘mit_samba_context_init’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/bin/default/include/public/ldb.h:51: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/dsdb/samdb/samdb.h:55: included_from: Included from here.
samba-4.21.1-build/samba-4.21.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): [#def639]
samba-4.21.1-build/samba-4.21.1/source4/lib/events/tevent_s4.c: scope_hint: In function ‘s4_event_context_init’
samba-4.21.1-build/samba-4.21.1/source4/lib/events/tevent_s4.c:37:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.21.1-build/samba-4.21.1/source4/lib/events/events.h:3: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/events/tevent_s4.c:21: included_from: Included from here.
/usr/include/tevent.h:2676:6: note: declared here
#   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): [#def640]
samba-4.21.1-build/samba-4.21.1/source4/lib/messaging/tests/irpc.c: scope_hint: In function ‘test_addone’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/librpc/gen_ndr/ndr_echo_c.h:1: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/messaging/tests/irpc.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/rpc/rpc_common.h:245:19: note: declared here
#  245 | _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): [#def641]
samba-4.21.1-build/samba-4.21.1/source4/lib/messaging/tests/irpc.c: scope_hint: In function ‘test_echodata’
samba-4.21.1-build/samba-4.21.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.21.1-build/samba-4.21.1/librpc/rpc/rpc_common.h:245:19: note: declared here
#  245 | _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: GCC_ANALYZER_WARNING (CWE-457): [#def642]
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c: scope_hint: In function ‘gp_create_gpo’
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:228:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sd’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:19: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:155:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:66:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
#  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): [#def643]
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c: scope_hint: In function ‘gp_set_acl’
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:277:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fs_sd’
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:250:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/source4/lib/policy/gp_manage.c:66:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
#  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: CPPCHECK_WARNING (CWE-457): [#def644]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-688): [#def645]
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c: scope_hint: In function ‘hbin_store’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:273:9: warning[-Wanalyzer-null-argument]: use of NULL ‘<unknown>’ where non-null expected
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:2053:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:2055:9: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:2068:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:2076:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:2083:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:2127:9: note: in expansion of macro ‘ZERO_STRUCT’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  271|   	DATA_BLOB dest = hbin_alloc(data, blob.length, &ret);
#  272|   
#  273|-> 	memcpy(dest.data, blob.data, blob.length);
#  274|   
#  275|   	/* Make sure that we have no tailing garbage in the block */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def646]
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:1971:25: warning[-Wanalyzer-null-argument]: use of NULL ‘<unknown>’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:116:17: note: in expansion of macro ‘DEBUG’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/regf.c:1970:25: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 1969|   								  nk->num_values+1);
# 1970|   			W_ERROR_HAVE_NO_MEMORY(value_list.data);
# 1971|-> 			memcpy(value_list.data, values.data, nk->num_values * 4);
# 1972|   
# 1973|   			SIVAL(value_list.data, nk->num_values * 4, vk_offset);

Error: CPPCHECK_WARNING (CWE-457): [#def647]
samba-4.21.1-build/samba-4.21.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): [#def648]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-401): [#def649]
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/tools/regshell.c: scope_hint: In function ‘reg_complete_command’
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/tools/regshell.c:459:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  457|   		break;
#  458|   	default:
#  459|-> 		matches[0] = strndup(matches[1], samelen);
#  460|   	}
#  461|   	matches[count] = NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def650]
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/tools/regshell.c: scope_hint: In function ‘reg_complete_key’
samba-4.21.1-build/samba-4.21.1/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.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/registry/tools/regshell.c:22: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 2 of ‘strncmp’ must be non-null
#  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-476): [#def651]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/socket/connect_multi.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/socket/connect_multi.c: scope_hint: In function ‘socket_connect_multi_ex_recv’
samba-4.21.1-build/samba-4.21.1/source4/lib/socket/connect_multi.c:317:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
/usr/include/bits/types/struct_iovec.h:23: included_from: Included from here.
/usr/include/sys/uio.h:23: included_from: Included from here.
/usr/include/gnutls/gnutls.h:2354: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/lib/socket/connect_multi.c:27: included_from: Included from here.
#  315|   	if (NT_STATUS_IS_OK(status)) {
#  316|   		struct connect_multi_state *multi =
#  317|-> 			talloc_get_type(ctx->private_data,
#  318|   					struct connect_multi_state);
#  319|   		*sock = talloc_steal(mem_ctx, multi->sock);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def652]
samba-4.21.1-build/samba-4.21.1/source4/libcli/clideltree.c: scope_hint: In function ‘delete_fn’
samba-4.21.1-build/samba-4.21.1/source4/libcli/clideltree.c:43:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘n’ where non-null expected
<built-in>: note: 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): [#def653]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/clisocket.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/clisocket.c: scope_hint: In function ‘smbcli_sock_connect_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/clisocket.c:429:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def654]
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c: scope_hint: In function ‘smb_raw_t2open_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:430:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#  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): [#def655]
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c: scope_hint: In function ‘smb_raw_open_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:650:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:647:17: note: in expansion of macro ‘SMBCLI_CHECK_WCT’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:648:48: note: in expansion of macro ‘SVAL’
#  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): [#def656]
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:660:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:657:17: note: in expansion of macro ‘SMBCLI_CHECK_MIN_WCT’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:658:46: note: in expansion of macro ‘SVAL’
#  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): [#def657]
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:722:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:719:17: note: in expansion of macro ‘SMBCLI_CHECK_MIN_WCT’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawfile.c:720:51: note: in expansion of macro ‘SVAL’
#  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): [#def658]
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawreadwrite.c: scope_hint: In function ‘smb_raw_read_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawreadwrite.c:158:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawreadwrite.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawreadwrite.c:154:17: note: in expansion of macro ‘SMBCLI_CHECK_WCT’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawreadwrite.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.21.1-build/samba-4.21.1/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.21.1-build/samba-4.21.1/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/rawreadwrite.c:155:52: note: in expansion of macro ‘SVAL’
#  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): [#def659]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c: scope_hint: In function ‘resolve_name_all_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c:215:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def660]
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c: scope_hint: In function ‘resolve_name_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c:254:50: warning[-Wanalyzer-null-dereference]: 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): [#def661]
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c: scope_hint: In function ‘resolve_name_multiple_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c:284:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addrs’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/resolve/resolve.c:281:9: note: in expansion of macro ‘NT_STATUS_NOT_OK_RETURN’
#  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: CPPCHECK_WARNING (CWE-457): [#def662]
samba-4.21.1-build/samba-4.21.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): [#def663]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def664]
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb2/ioctl.c: scope_hint: In function ‘smb2_ioctl_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb2/ioctl.c:116:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#  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): [#def665]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/appendacl.c:1: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/appendacl.c: scope_hint: In function ‘smb_composite_appendacl_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/appendacl.c:294:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def666]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/fetchfile.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/fetchfile.c: scope_hint: In function ‘smb_composite_fetchfile_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/fetchfile.c:181:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def667]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/fsinfo.c:5: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/fsinfo.c: scope_hint: In function ‘smb_composite_fsinfo_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/fsinfo.c:193:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def668]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/loadfile.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/loadfile.c: scope_hint: In function ‘smb_composite_loadfile_recv’
samba-4.21.1-build/samba-4.21.1/source4/libcli/smb_composite/loadfile.c:274:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def669]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/groupinfo.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/groupinfo.c: scope_hint: In function ‘libnet_rpc_groupinfo_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/groupinfo.c:356:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def670]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/groupman.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/groupman.c: scope_hint: In function ‘libnet_rpc_groupadd_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/groupman.c:99:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#   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): [#def671]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_domain.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_domain.c: scope_hint: In function ‘libnet_DomainOpenSamr_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_domain.c:374:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  372|   	
#  373|   	if (NT_STATUS_IS_OK(status) && io) {
#  374|-> 		s = talloc_get_type_abort(c->private_data, struct domain_open_samr_state);
#  375|   		io->out.domain_handle = s->domain_handle;
#  376|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def672]
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_domain.c: scope_hint: In function ‘libnet_DomainOpenLsa_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_domain.c:581:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  579|   		/* everything went fine - get the results and
#  580|   		   return the error string */
#  581|-> 		s = talloc_get_type_abort(c->private_data, struct domain_open_lsa_state);
#  582|   		io->out.domain_handle = s->handle;
#  583|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def673]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_group.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_group.c: scope_hint: In function ‘libnet_GroupInfo_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_group.c:405:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
/usr/include/bits/types/struct_iovec.h:23: included_from: Included from here.
/usr/include/sys/uio.h:23: included_from: Included from here.
/usr/include/gnutls/gnutls.h:2354: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_group.c:23: included_from: Included from here.
#  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): [#def674]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_lookup.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_lookup.c: scope_hint: In function ‘libnet_Lookup_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_lookup.c:128:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  126|   		char **address;
#  127|   
#  128|-> 		s = talloc_get_type(c->private_data, struct lookup_state);
#  129|   
#  130|   		address = str_list_make_single(mem_ctx, s->address);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def675]
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_lookup.c: scope_hint: In function ‘libnet_LookupName_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_lookup.c:397:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
/usr/include/bits/types/struct_iovec.h:23: included_from: Included from here.
/usr/include/sys/uio.h:23: included_from: Included from here.
/usr/include/gnutls/gnutls.h:2354: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_lookup.c:26: included_from: Included from here.
#  395|   	}
#  396|   
#  397|-> 	s = talloc_get_type(c->private_data, struct lookup_name_state);
#  398|   
#  399|   	if (*s->lookup.out.count == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def676]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_user.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_user.c: scope_hint: In function ‘libnet_DeleteUser_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_user.c:352:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
/usr/include/bits/types/struct_iovec.h:23: included_from: Included from here.
/usr/include/sys/uio.h:23: included_from: Included from here.
/usr/include/gnutls/gnutls.h:2354: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_user.c:23: included_from: Included from here.
#  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): [#def677]
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_user.c: scope_hint: In function ‘libnet_UserInfo_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/libnet_user.c:849:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def678]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/userinfo.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/userinfo.c: scope_hint: In function ‘libnet_rpc_userinfo_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/userinfo.c:355:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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): [#def679]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/userman.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/libnet/userman.c: scope_hint: In function ‘libnet_rpc_useradd_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/userman.c:165:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  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: GCC_ANALYZER_WARNING (CWE-476): [#def680]
samba-4.21.1-build/samba-4.21.1/source4/libnet/userman.c: scope_hint: In function ‘libnet_rpc_userdel_recv’
samba-4.21.1-build/samba-4.21.1/source4/libnet/userman.c:439:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  437|   
#  438|   	if (NT_STATUS_IS_OK(status) && io) {
#  439|-> 		s  = talloc_get_type(c->private_data, struct userdel_state);
#  440|   		io->out.user_handle = s->user_handle;
#  441|   	}

Error: COMPILER_WARNING (CWE-477): [#def681]
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.c: scope_hint: In function ‘dcerpc_pipe_binding_handle’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.c:640:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.c:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/rpc/rpc_common.h:245:19: note: declared here
#  638|   	hs->p = p;
#  639|   
#  640|-> 	dcerpc_binding_handle_set_sync_ev(h, p->conn->event_ctx);
#  641|   
#  642|   	return h;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def682]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_auth.c:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_auth.c: scope_hint: In function ‘dcerpc_bind_auth_recv’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_auth.c:518:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘creq’
#  516|   {
#  517|   	NTSTATUS result = composite_wait(creq);
#  518|-> 	struct bind_auth_state *state = talloc_get_type(creq->private_data,
#  519|   							struct bind_auth_state);
#  520|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def683]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_connect.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_connect.c: scope_hint: In function ‘dcerpc_pipe_connect_b_recv’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_connect.c:1111:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
# 1109|   	
# 1110|   	if (NT_STATUS_IS_OK(status)) {
# 1111|-> 		s = talloc_get_type(c->private_data, struct pipe_connect_state);
# 1112|   		talloc_steal(mem_ctx, s->pipe);
# 1113|   		*p = s->pipe;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def684]
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_connect.c: scope_hint: In function ‘dcerpc_pipe_connect_recv’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_connect.c:1227:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
/usr/include/rpc/netdb.h:42: included_from: Included from here.
/usr/include/netdb.h:32: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/system/network.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/util_net.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_connect.c:39: included_from: Included from here.
# 1225|   	status = composite_wait(c);
# 1226|   	if (NT_STATUS_IS_OK(status)) {
# 1227|-> 		s = talloc_get_type(c->private_data, struct pipe_conn_state);
# 1228|   		*pp = talloc_steal(mem_ctx, s->pipe);
# 1229|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def685]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_secondary.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_secondary.c: scope_hint: In function ‘dcerpc_secondary_auth_connection_recv’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_secondary.c:408:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  406|   	struct sec_auth_conn_state *s;
#  407|   
#  408|-> 	s = talloc_get_type(c->private_data, struct sec_auth_conn_state);
#  409|   
#  410|   	if (NT_STATUS_IS_OK(status)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def686]
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_util.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_util.c: scope_hint: In function ‘dcerpc_pipe_auth_recv’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc_util.c:676:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
#  674|   	NTSTATUS status;
#  675|   
#  676|-> 	struct pipe_auth_state *s = talloc_get_type(c->private_data,
#  677|   						    struct pipe_auth_state);
#  678|   	status = composite_wait(c);

Error: COMPILER_WARNING (CWE-477): [#def687]
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/pyrpc_util.c: scope_hint: In function ‘pyrpc_irpc_connect’
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/pyrpc_util.c:92:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
#   92 |         dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/pyrpc_util.c:28: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/rpc/rpc_common.h:245:19: note: declared here
#  245 | _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h,
#      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   90|   	 * but as there's no top level event loop it's not that critical.
#   91|   	 */
#   92|-> 	dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
#   93|   
#   94|   	return NT_STATUS_OK;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def688]
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c: scope_hint: In function ‘sclassic_string_option’
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c:63:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
#   61|   		}
#   62|   		val = strchr(parm, ':');
#   63|-> 		*val = '\0';
#   64|   		val++;
#   65|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def689]
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c: scope_hint: In function ‘sclassic_int_option’
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c:121:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
#  119|   		}
#  120|   		val = strchr(parm, ':');
#  121|-> 		*val = '\0';
#  122|   		val++;
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def690]
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c: scope_hint: In function ‘sclassic_bool_option’
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c:179:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
#  177|   		}
#  178|   		val = strchr(parm, ':');
#  179|-> 		*val = '\0';
#  180|   		val++;
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def691]
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c: scope_hint: In function ‘sclassic_string_list_option’
samba-4.21.1-build/samba-4.21.1/source4/param/share_classic.c:277:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
#  275|   		}
#  276|   		val = strchr(parm, ':');
#  277|-> 		*val = '\0';
#  278|   		val++;
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def692]
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/dnsserver/dnsdata.c: scope_hint: In function ‘dnsp_to_dns_copy’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/dnsserver/dnsdata.c:409:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/dnsserver/dnsdata.c:409:17: note: read of 16 bytes from after the end of ‘dnsp_rec’
#  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: CPPCHECK_WARNING (CWE-457): [#def693]
samba-4.21.1-build/samba-4.21.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): [#def694]
samba-4.21.1-build/samba-4.21.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): [#def695]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def696]
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c: scope_hint: In function ‘dcesrv_samr_QueryDisplayInfo’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4701:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesGeneral’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/dcerpc_server.h:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:27: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4493:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:663: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:25: included_from: Included from here.
# 4699|   		case 1:
# 4700|   
# 4701|-> 			entriesGeneral[count].idx = idx + 1;
# 4702|   			entriesGeneral[count].rid = rid;
# 4703|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def697]
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4717:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFull’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4493:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
# 4715|   			break;
# 4716|   		case 2:
# 4717|-> 			entriesFull[count].idx = idx + 1;
# 4718|   			entriesFull[count].rid = rid;
# 4719|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def698]
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4735:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFullGroup’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4493:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
# 4733|   			break;
# 4734|   		case 3:
# 4735|-> 			entriesFullGroup[count].idx = idx + 1;
# 4736|   			entriesFullGroup[count].rid = rid;
# 4737|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def699]
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4751:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesAscii’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.21.1-build/samba-4.21.1/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.21.1-build/samba-4.21.1/source4/rpc_server/samr/dcesrv_samr.c:4493:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
# 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): [#def700]
samba-4.21.1-build/samba-4.21.1/source4/samba/service_task.c: scope_hint: In function ‘task_server_terminate’
samba-4.21.1-build/samba-4.21.1/source4/samba/service_task.c:49:25: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.21.1-build/samba-4.21.1/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/source4/librpc/gen_ndr/ndr_irpc_c.h:1: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/samba/service_task.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/librpc/rpc/rpc_common.h:245:19: note: declared here
#   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-476): [#def701]
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/denytest.c: scope_hint: In function ‘torture_createx_specific’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/denytest.c:2356:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cli2’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/denytest.c:20: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/denytest.c:2155:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source4/torture/basic/denytest.c:2155:9: note: in expansion of macro ‘ZERO_STRUCTP’
# 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: CPPCHECK_WARNING (CWE-457): [#def702]
samba-4.21.1-build/samba-4.21.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): [#def703]
samba-4.21.1-build/samba-4.21.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): [#def704]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-476): [#def705]
samba-4.21.1-build/samba-4.21.1/source4/torture/smbtorture.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c: scope_hint: In function ‘test_getdcreferral’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:142:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:91:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:104:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:109:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:111:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:113:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:115:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:119:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:124:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:129:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/dfs/domaindfs.c:133:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
#  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): [#def706]
samba-4.21.1-build/samba-4.21.1/source4/torture/ldap/basic.c: scope_hint: In function ‘test_referrals’
samba-4.21.1-build/samba-4.21.1/source4/torture/ldap/basic.c:718:13: warning[-Wanalyzer-null-argument]: use of NULL ‘basedn’ where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/ldap/basic.c:24: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#  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): [#def707]
samba-4.21.1-build/samba-4.21.1/source4/torture/libnetapi/libnetapi_group.c: scope_hint: In function ‘test_netgroupgetusers’
samba-4.21.1-build/samba-4.21.1/source4/torture/libnetapi/libnetapi_group.c:191:49: warning[-Wanalyzer-null-argument]: use of NULL ‘current_name’ where non-null expected
/usr/include/string.h:462: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/libnetapi/libnetapi_group.c:20: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
#  189|   				}
#  190|   
#  191|-> 				if (username && strcasecmp(current_name, username) == 0) {
#  192|   					found_user = 1;
#  193|   				}

Error: CPPCHECK_WARNING (CWE-457): [#def708]
samba-4.21.1-build/samba-4.21.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): [#def709]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-479): [#def710]
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_alarm.part.0’
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c:295:17: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
#  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-688): [#def711]
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_writex’
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c:553:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_writex’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  551|   
#  552|   	buf = malloc(size);
#  553|-> 	memset(buf, 0xab, size);
#  554|   
#  555|   	io.writex.level = RAW_WRITE_WRITEX;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def712]
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_write’
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c:595:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.21.1-build/samba-4.21.1/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_write’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  593|   	buf = malloc(size);
#  594|   
#  595|-> 	memset(buf, 0x12, size);
#  596|   
#  597|   	io.write.level = RAW_WRITE_WRITE;

Error: CPPCHECK_WARNING (CWE-457): [#def713]
samba-4.21.1-build/samba-4.21.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): [#def714]
samba-4.21.1-build/samba-4.21.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): [#def715]
samba-4.21.1-build/samba-4.21.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): [#def716]
samba-4.21.1-build/samba-4.21.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: GCC_ANALYZER_WARNING (CWE-457): [#def717]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_common.c: scope_hint: In function ‘test_get_client_info’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_common.c:51:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘level1.build’
#   49|   	}
#   50|   
#   51|-> 	return level1;
#   52|   }
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def718]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c: scope_hint: In function ‘smb_copy_files’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:101:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fpath, "r")’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:99:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:99:9: note: in expansion of macro ‘torture_assert_goto’
#   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): [#def719]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:101:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fpath, "r")’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:99:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/iremotewinspool_driver.c:99:9: note: in expansion of macro ‘torture_assert_goto’
#   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): [#def720]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/netlogon.c: scope_hint: In function ‘test_DatabaseRedo’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/netlogon.c:3427:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e.object.object_name’
# 3425|   			}
# 3426|   
# 3427|-> 			r.in.change_log_entry = e;
# 3428|   
# 3429|   			torture_comment(tctx, "Testing DatabaseRedo with database %s and %s\n",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def721]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samba3rpc.c: scope_hint: In function ‘try_tcon’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samba3rpc.c:2337:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rmdir_tree’
# 2335|   	}
# 2336|   
# 2337|-> 	smbcli_rmdir(rmdir_tree, "sharesec_testdir");
# 2338|   
# 2339|   	if (!NT_STATUS_IS_OK(dom_sid_split_rid(tmp_ctx, user_sid,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c: scope_hint: In function ‘test_plaintext’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c:1301:31: warning[-Wanalyzer-malloc-leak]: leak of ‘*error_string’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:48: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/data_blob.h:48:75: note: in definition of macro ‘data_blob_talloc’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c:1255:23: note: in expansion of macro ‘data_blob_talloc’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/ntstatus.h:126:31: note: in expansion of macro ‘NT_STATUS_V’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c:1285:21: note: in expansion of macro ‘NT_STATUS_EQUAL’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/libcli/util/ntstatus.h:124:29: note: in expansion of macro ‘likely’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c:1294:83: note: in expansion of macro ‘NT_STATUS_IS_OK’
# 1299|   
# 1300|   	if (break_which == NO_NT && !lm_good) {
# 1301|-> 	        *error_string = strdup("LM password is 'long' (> 14 chars and therefore invalid) but login did not fail!");
# 1302|   		return false;
# 1303|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c: scope_hint: In function ‘test_SamLogon’
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c:1516:1: warning[-Wanalyzer-malloc-leak]: leak of ‘error_string’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:54: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/rpc/samlogon.c:24: included_from: Included from here.
# 1514|   	talloc_free(fn_ctx);
# 1515|   	return ret;
# 1516|-> }
# 1517|   
# 1518|   /*

Error: GCC_ANALYZER_WARNING (CWE-688): [#def724]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/dir.c: scope_hint: In function ‘fill_result’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/dir.c:690:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/dir.c:24: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  688|   	for (i=0; i<count; i++) {
#  689|   		sname = extract_name(&file[i], level, data_level);
#  690|-> 		if (!strcmp(sname, ".") || !(strcmp(sname, "..")))
#  691|   			continue;
#  692|   		data->count++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def725]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c: scope_hint: In function ‘_test_dhv2_pending2_vs_hold’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3162:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:26: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
# 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): [#def726]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3163:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2857:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2862:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2862:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
# 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): [#def727]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3164:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_4’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2857:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2862:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2879:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:2887:9: note: in expansion of macro ‘torture_assert’
# 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): [#def728]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c: scope_hint: In function ‘_test_dhv2_pending3_vs_hold’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:4036:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:512:36: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:4035:53: note: in expansion of macro ‘NT_STATUS_LOCAL_DISCONNECT’
# 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): [#def729]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:4037:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3693:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3698:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3698:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:512:36: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:4035:53: note: in expansion of macro ‘NT_STATUS_LOCAL_DISCONNECT’
# 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): [#def730]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:4038:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_4’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3693:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3698:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3715:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:3723:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/bin/default/libcli/util/ntstatus_gen.h:512:36: note: in expansion of macro ‘NT_STATUS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/replay.c:4035:53: note: in expansion of macro ‘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|   
# 4040|   	if (h1 != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def731]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/session.c: scope_hint: In function ‘test_session_bind2’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/session.c:2303:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport3’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/session.c:25: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/session.c:2088:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/session.c:2088:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
# 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): [#def732]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c: scope_hint: In function ‘find_returned_ea’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:53:44: warning[-Wanalyzer-null-argument]: use of NULL ‘eavalue’ where non-null expected
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:114:17: note: in expansion of macro ‘RECREATE_FILE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:117:9: note: in expansion of macro ‘RECREATE_BOTH’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:114:17: note: in expansion of macro ‘RECREATE_FILE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:117:9: note: in expansion of macro ‘RECREATE_BOTH’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:186:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:187:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:187:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:188:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:188:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:189:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:189:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:190:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:190:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:191:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:191:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:199:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:200:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:200:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:201:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:201:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:202:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:202:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:203:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:203:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:204:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:204:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:208:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:209:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:209:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:213:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:214:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:214:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:218:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:222:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:223:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:223:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:227:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:228:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:228:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:229:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:229:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:232:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:233:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:233:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:234:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:234:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:238:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:239:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:239:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:240:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:240:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:243:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:244:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:244:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:245:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:245:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:249:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:250:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:250:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:253:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:254:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:254:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:258:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:259:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:259:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:260:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:260:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:264:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:265:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:265:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:266:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:266:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:269:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:272:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:273:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:273:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:281:9: note: in expansion of macro ‘CHECK1’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:291:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:297:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:67:21: note: in definition of macro ‘FAIL_UNLESS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:298:9: note: in expansion of macro ‘FAIL_UNLESS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:303:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:307:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:67:21: note: in definition of macro ‘FAIL_UNLESS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:308:9: note: in expansion of macro ‘FAIL_UNLESS’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:319:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/setinfo.c:346:9: note: in expansion of macro ‘CHECK_CALL’
<built-in>: note: 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): [#def733]
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/util.c: scope_hint: In function ‘smb2_create_simple_file’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/util.c:635:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*handle’
samba-4.21.1-build/samba-4.21.1/libcli/util/error.h:24: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:64: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/util.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/util.c:534:9: note: in expansion of macro ‘NT_STATUS_NOT_OK_RETURN’
samba-4.21.1-build/samba-4.21.1/libcli/util/ntstatus.h:159:24: note: in definition of macro ‘NT_STATUS_NOT_OK_RETURN’
samba-4.21.1-build/samba-4.21.1/source4/torture/smb2/util.c:633:9: note: in expansion of macro ‘NT_STATUS_NOT_OK_RETURN’
#  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): [#def734]
samba-4.21.1-build/samba-4.21.1/source4/torture/smbtorture.c: scope_hint: In function ‘parse_dns’
samba-4.21.1-build/samba-4.21.1/source4/torture/smbtorture.c:240:17: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
#  238|   	if (!p) {
#  239|   		lpcfg_set_cmdline(lp_ctx, "torture:ldap_basedn", "");
#  240|-> 		lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", "");
#  241|   		return;
#  242|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
samba-4.21.1-build/samba-4.21.1/source4/torture/smbtorture.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘basedn’
#  253|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  254|   
#  255|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  256|   
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def736]
samba-4.21.1-build/samba-4.21.1/source4/torture/smbtorture.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘secret’
#  253|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  254|   
#  255|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  256|   
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
samba-4.21.1-build/samba-4.21.1/source4/torture/smbtorture.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
#  253|   	lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", secret);
#  254|   
#  255|-> 	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  256|   
#  257|   }

Error: CPPCHECK_WARNING (CWE-457): [#def738]
samba-4.21.1-build/samba-4.21.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): [#def739]
samba-4.21.1-build/samba-4.21.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): [#def740]
samba-4.21.1-build/samba-4.21.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|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def741]
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:34: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c: scope_hint: In function ‘check_stream’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1853:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:2875:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:2879:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:2883:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:2891:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:23: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1816:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1843:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1853:49: note: read of 1 byte from after the end of ‘data’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1853:49: note: valid subscripts for ‘data’ are ‘[0]’ to ‘[15]’
samba-4.21.1-build/samba-4.21.1/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.21.1-build/samba-4.21.1/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.21.1-build/samba-4.21.1/lib/replace/replace.h:176: included_from: Included from here.
/usr/include/string.h:407:15: note: argument 1 of ‘strlen’ must be a pointer to a null-terminated string
# 1851|   		tctx, status, ret, done,
# 1852|   		talloc_asprintf(tctx, "(%s) Failed to read %lu bytes from stream '%s'\n",
# 1853|-> 				location, (long)strlen(value), full_name));
# 1854|   
# 1855|   	torture_assert_goto(tctx, r.out.data.length == read_count, ret, done,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def742]
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c: scope_hint: In function ‘torture_winbind_struct_list_users’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:670:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘users’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:82:9: note: in expansion of macro ‘DO_STRUCT_REQ_REP_EXT’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:639:9: note: in expansion of macro ‘DO_STRUCT_REQ_REP’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:22: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:642:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/include/includes.h:62: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:21: included_from: Included from here.
samba-4.21.1-build/samba-4.21.1/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:668:9: note: in expansion of macro ‘torture_assert’
#  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): [#def743]
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c: scope_hint: In function ‘lookup_name_sid_list’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:997:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:1079:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:82:9: note: in expansion of macro ‘DO_STRUCT_REQ_REP_EXT’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:691:9: note: in expansion of macro ‘DO_STRUCT_REQ_REP’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:703:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:703:9: note: in expansion of macro ‘torture_assert’
samba-4.21.1-build/samba-4.21.1/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:714:9: note: in expansion of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:714:9: note: in expansion of macro ‘SAFE_FREE’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:716:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.21.1-build/samba-4.21.1/source4/torture/winbind/struct_based.c:1083:9: note: in expansion of macro ‘torture_assert’
#  995|   	uint32_t count;
#  996|   
#  997|-> 	for (count = 0; list[count]; count++) {
#  998|   		struct winbindd_request req;
#  999|   		struct winbindd_response rep;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-121.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namesamba-4.21.1-9.fc42
store-results-to/tmp/tmpfevmyb8x/samba-4.21.1-9.fc42.tar.xz
time-created2024-11-13 03:49:46
time-finished2024-11-13 04:30:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpfevmyb8x/samba-4.21.1-9.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpfevmyb8x/samba-4.21.1-9.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9