samba-4.20.2-2.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
samba-4.20.2-build/samba-4.20.2/auth/auth_log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
samba-4.20.2-build/samba-4.20.2/auth/auth_sam_reply.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
samba-4.20.2-build/samba-4.20.2/auth/credentials/credentials.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
samba-4.20.2-build/samba-4.20.2/auth/credentials/credentials_ntlm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
samba-4.20.2-build/samba-4.20.2/auth/credentials/credentials_secrets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CPPCHECK_WARNING: [#def8]
samba-4.20.2-build/samba-4.20.2/auth/gensec/gensec_start.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
samba-4.20.2-build/samba-4.20.2/auth/gensec/ncalrpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
samba-4.20.2-build/samba-4.20.2/auth/gensec/schannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
samba-4.20.2-build/samba-4.20.2/auth/gensec/spnego.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
samba-4.20.2-build/samba-4.20.2/auth/kerberos/kerberos_pac.c: scope_hint: In function ‘kerberos_pac_logon_info’
samba-4.20.2-build/samba-4.20.2/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: [#def13]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/gensec_ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/gensec_ntlmssp_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/ntlmssp_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/ntlmssp_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def18]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/ntlmssp_server.c:859:12: warning[deadcode.DeadStores]: Value stored to 'session_key' during its initialization is never read
#  857|   	DATA_BLOB lm_session_key = state->lm_session_key;
#  858|   	NTSTATUS nt_status = NT_STATUS_OK;
#  859|-> 	DATA_BLOB session_key = data_blob(NULL, 0);
#  860|   	struct auth_session_info *session_info = NULL;
#  861|   

Error: CPPCHECK_WARNING: [#def19]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/ntlmssp_sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
samba-4.20.2-build/samba-4.20.2/auth/ntlmssp/ntlmssp_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
samba-4.20.2-build/samba-4.20.2/auth/wbc_auth_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CLANG_WARNING: [#def25]
samba-4.20.2-build/samba-4.20.2/bin/.conf_check_6797515dd49cd006048d3afeb568f258/libdir/liblc1.c:2:28: warning[deadcode.DeadStores]: Value stored to 'f' during its initialization is never read

Error: COMPILER_WARNING (CWE-393): [#def26]
samba-4.20.2-build/samba-4.20.2/bin/.conf_check_6797515dd49cd006048d3afeb568f258/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: CPPCHECK_WARNING: [#def27]
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_lexer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_lexer.c: scope_hint: In function ‘yy_create_buffer’
samba-4.20.2-build/samba-4.20.2/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): [#def29]
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_lexer.c: scope_hint: In function ‘yy_init_buffer’
samba-4.20.2-build/samba-4.20.2/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): [#def30]
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_lexer.c: scope_hint: In function ‘yy_scan_buffer’
samba-4.20.2-build/samba-4.20.2/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): [#def31]
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c: scope_hint: In function ‘yyparse’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:437:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:88:40: note: in definition of macro ‘YY_CAST’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:423:25: note: in expansion of macro ‘YYMALLOC’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1085:20: note: in expansion of macro ‘YYSTACK_ALLOC’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1155:17: note: in expansion of macro ‘YYTRANSLATE’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:88:40: note: in definition of macro ‘YY_CAST’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:423:25: note: in expansion of macro ‘YYMALLOC’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1085:20: note: in expansion of macro ‘YYSTACK_ALLOC’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:88:40: note: in definition of macro ‘YY_CAST’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:423:25: note: in expansion of macro ‘YYMALLOC’
samba-4.20.2-build/samba-4.20.2/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): [#def32]
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:497:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:482:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def33]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_ODJ.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_atsvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_backupkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_bkupblobs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def38]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_browser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_cab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_claims.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_clusapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_conditional_ace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dcerpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dfsblobs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dnsp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dnsserver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_drsblobs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_drsuapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_dssetup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_echo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_efs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_epmapper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_eventlog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_eventlog6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_frsapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_frsrpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_frstrans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_fsrvp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_gkdi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_gmsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_idmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_initshutdown.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_ioctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_krb5ccache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_krb5pac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def68]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_lsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def69]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_lsa_c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_mdssvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_messaging.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def72]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_mgmt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_named_pipe_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def75]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_nbt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def76]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_negoex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def77]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def78]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_nfs4acl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def80]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_ntprinting.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_ntsvcs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_orpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def84]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_preg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def85]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_printcap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def86]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_rap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def87]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_rot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def88]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def89]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_schannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def90]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_security.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def91]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_smb2_lease_struct.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def92]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_smb3posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def93]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_smb_acl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def94]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_spoolss.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def95]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_srvsvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def96]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_svcctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def97]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_unixinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def98]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_winbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_winreg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_winreg_c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_winspool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def102]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_winspool_c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def103]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_witness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def104]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_wkssvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def105]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_wsp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def106]
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_xattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def107]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_leases_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def108]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_libnet_join.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def109]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1164): [#def110]
samba-4.20.2-build/samba-4.20.2/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): [#def111]
samba-4.20.2-build/samba-4.20.2/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): [#def112]
samba-4.20.2-build/samba-4.20.2/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): [#def113]
samba-4.20.2-build/samba-4.20.2/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): [#def114]
samba-4.20.2-build/samba-4.20.2/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): [#def115]
samba-4.20.2-build/samba-4.20.2/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): [#def116]
samba-4.20.2-build/samba-4.20.2/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): [#def117]
samba-4.20.2-build/samba-4.20.2/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): [#def118]
samba-4.20.2-build/samba-4.20.2/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): [#def119]
samba-4.20.2-build/samba-4.20.2/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): [#def120]
samba-4.20.2-build/samba-4.20.2/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): [#def121]
samba-4.20.2-build/samba-4.20.2/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): [#def122]
samba-4.20.2-build/samba-4.20.2/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): [#def123]
samba-4.20.2-build/samba-4.20.2/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): [#def124]
samba-4.20.2-build/samba-4.20.2/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): [#def125]
samba-4.20.2-build/samba-4.20.2/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): [#def126]
samba-4.20.2-build/samba-4.20.2/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): [#def127]
samba-4.20.2-build/samba-4.20.2/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): [#def128]
samba-4.20.2-build/samba-4.20.2/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): [#def129]
samba-4.20.2-build/samba-4.20.2/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): [#def130]
samba-4.20.2-build/samba-4.20.2/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): [#def131]
samba-4.20.2-build/samba-4.20.2/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): [#def132]
samba-4.20.2-build/samba-4.20.2/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): [#def133]
samba-4.20.2-build/samba-4.20.2/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): [#def134]
samba-4.20.2-build/samba-4.20.2/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): [#def135]
samba-4.20.2-build/samba-4.20.2/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): [#def136]
samba-4.20.2-build/samba-4.20.2/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): [#def137]
samba-4.20.2-build/samba-4.20.2/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): [#def138]
samba-4.20.2-build/samba-4.20.2/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): [#def139]
samba-4.20.2-build/samba-4.20.2/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): [#def140]
samba-4.20.2-build/samba-4.20.2/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): [#def141]
samba-4.20.2-build/samba-4.20.2/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): [#def142]
samba-4.20.2-build/samba-4.20.2/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): [#def143]
samba-4.20.2-build/samba-4.20.2/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): [#def144]
samba-4.20.2-build/samba-4.20.2/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): [#def145]
samba-4.20.2-build/samba-4.20.2/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): [#def146]
samba-4.20.2-build/samba-4.20.2/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): [#def147]
samba-4.20.2-build/samba-4.20.2/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): [#def148]
samba-4.20.2-build/samba-4.20.2/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): [#def149]
samba-4.20.2-build/samba-4.20.2/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): [#def150]
samba-4.20.2-build/samba-4.20.2/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): [#def151]
samba-4.20.2-build/samba-4.20.2/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): [#def152]
samba-4.20.2-build/samba-4.20.2/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): [#def153]
samba-4.20.2-build/samba-4.20.2/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): [#def154]
samba-4.20.2-build/samba-4.20.2/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): [#def155]
samba-4.20.2-build/samba-4.20.2/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): [#def156]
samba-4.20.2-build/samba-4.20.2/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): [#def157]
samba-4.20.2-build/samba-4.20.2/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): [#def158]
samba-4.20.2-build/samba-4.20.2/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): [#def159]
samba-4.20.2-build/samba-4.20.2/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): [#def160]
samba-4.20.2-build/samba-4.20.2/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): [#def161]
samba-4.20.2-build/samba-4.20.2/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): [#def162]
samba-4.20.2-build/samba-4.20.2/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): [#def163]
samba-4.20.2-build/samba-4.20.2/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): [#def164]
samba-4.20.2-build/samba-4.20.2/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): [#def165]
samba-4.20.2-build/samba-4.20.2/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): [#def166]
samba-4.20.2-build/samba-4.20.2/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): [#def167]
samba-4.20.2-build/samba-4.20.2/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): [#def168]
samba-4.20.2-build/samba-4.20.2/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): [#def169]
samba-4.20.2-build/samba-4.20.2/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): [#def170]
samba-4.20.2-build/samba-4.20.2/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): [#def171]
samba-4.20.2-build/samba-4.20.2/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): [#def172]
samba-4.20.2-build/samba-4.20.2/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): [#def173]
samba-4.20.2-build/samba-4.20.2/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): [#def174]
samba-4.20.2-build/samba-4.20.2/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): [#def175]
samba-4.20.2-build/samba-4.20.2/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): [#def176]
samba-4.20.2-build/samba-4.20.2/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): [#def177]
samba-4.20.2-build/samba-4.20.2/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): [#def178]
samba-4.20.2-build/samba-4.20.2/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): [#def179]
samba-4.20.2-build/samba-4.20.2/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): [#def180]
samba-4.20.2-build/samba-4.20.2/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): [#def181]
samba-4.20.2-build/samba-4.20.2/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): [#def182]
samba-4.20.2-build/samba-4.20.2/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): [#def183]
samba-4.20.2-build/samba-4.20.2/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): [#def184]
samba-4.20.2-build/samba-4.20.2/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): [#def185]
samba-4.20.2-build/samba-4.20.2/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): [#def186]
samba-4.20.2-build/samba-4.20.2/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): [#def187]
samba-4.20.2-build/samba-4.20.2/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): [#def188]
samba-4.20.2-build/samba-4.20.2/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): [#def189]
samba-4.20.2-build/samba-4.20.2/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): [#def190]
samba-4.20.2-build/samba-4.20.2/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): [#def191]
samba-4.20.2-build/samba-4.20.2/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): [#def192]
samba-4.20.2-build/samba-4.20.2/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): [#def193]
samba-4.20.2-build/samba-4.20.2/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): [#def194]
samba-4.20.2-build/samba-4.20.2/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): [#def195]
samba-4.20.2-build/samba-4.20.2/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): [#def196]
samba-4.20.2-build/samba-4.20.2/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): [#def197]
samba-4.20.2-build/samba-4.20.2/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): [#def198]
samba-4.20.2-build/samba-4.20.2/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): [#def199]
samba-4.20.2-build/samba-4.20.2/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): [#def200]
samba-4.20.2-build/samba-4.20.2/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): [#def201]
samba-4.20.2-build/samba-4.20.2/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): [#def202]
samba-4.20.2-build/samba-4.20.2/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): [#def203]
samba-4.20.2-build/samba-4.20.2/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): [#def204]
samba-4.20.2-build/samba-4.20.2/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): [#def205]
samba-4.20.2-build/samba-4.20.2/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): [#def206]
samba-4.20.2-build/samba-4.20.2/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): [#def207]
samba-4.20.2-build/samba-4.20.2/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): [#def208]
samba-4.20.2-build/samba-4.20.2/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): [#def209]
samba-4.20.2-build/samba-4.20.2/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): [#def210]
samba-4.20.2-build/samba-4.20.2/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): [#def211]
samba-4.20.2-build/samba-4.20.2/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): [#def212]
samba-4.20.2-build/samba-4.20.2/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): [#def213]
samba-4.20.2-build/samba-4.20.2/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): [#def214]
samba-4.20.2-build/samba-4.20.2/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): [#def215]
samba-4.20.2-build/samba-4.20.2/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): [#def216]
samba-4.20.2-build/samba-4.20.2/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): [#def217]
samba-4.20.2-build/samba-4.20.2/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): [#def218]
samba-4.20.2-build/samba-4.20.2/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): [#def219]
samba-4.20.2-build/samba-4.20.2/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): [#def220]
samba-4.20.2-build/samba-4.20.2/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): [#def221]
samba-4.20.2-build/samba-4.20.2/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): [#def222]
samba-4.20.2-build/samba-4.20.2/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): [#def223]
samba-4.20.2-build/samba-4.20.2/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): [#def224]
samba-4.20.2-build/samba-4.20.2/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): [#def225]
samba-4.20.2-build/samba-4.20.2/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): [#def226]
samba-4.20.2-build/samba-4.20.2/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): [#def227]
samba-4.20.2-build/samba-4.20.2/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): [#def228]
samba-4.20.2-build/samba-4.20.2/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): [#def229]
samba-4.20.2-build/samba-4.20.2/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): [#def230]
samba-4.20.2-build/samba-4.20.2/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): [#def231]
samba-4.20.2-build/samba-4.20.2/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): [#def232]
samba-4.20.2-build/samba-4.20.2/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): [#def233]
samba-4.20.2-build/samba-4.20.2/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): [#def234]
samba-4.20.2-build/samba-4.20.2/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): [#def235]
samba-4.20.2-build/samba-4.20.2/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): [#def236]
samba-4.20.2-build/samba-4.20.2/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): [#def237]
samba-4.20.2-build/samba-4.20.2/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): [#def238]
samba-4.20.2-build/samba-4.20.2/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): [#def239]
samba-4.20.2-build/samba-4.20.2/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): [#def240]
samba-4.20.2-build/samba-4.20.2/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): [#def241]
samba-4.20.2-build/samba-4.20.2/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): [#def242]
samba-4.20.2-build/samba-4.20.2/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): [#def243]
samba-4.20.2-build/samba-4.20.2/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): [#def244]
samba-4.20.2-build/samba-4.20.2/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): [#def245]
samba-4.20.2-build/samba-4.20.2/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): [#def246]
samba-4.20.2-build/samba-4.20.2/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): [#def247]
samba-4.20.2-build/samba-4.20.2/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): [#def248]
samba-4.20.2-build/samba-4.20.2/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): [#def249]
samba-4.20.2-build/samba-4.20.2/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): [#def250]
samba-4.20.2-build/samba-4.20.2/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): [#def251]
samba-4.20.2-build/samba-4.20.2/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): [#def252]
samba-4.20.2-build/samba-4.20.2/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): [#def253]
samba-4.20.2-build/samba-4.20.2/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): [#def254]
samba-4.20.2-build/samba-4.20.2/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: [#def255]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_open_files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def256]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_perfcount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def257]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_rpc_host.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def258]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_rpcd_witness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def259]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_secrets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def260]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/librpc/gen_ndr/ndr_smbXsrv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def261]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def262]
samba-4.20.2-build/samba-4.20.2/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): [#def263]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def264]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def265]
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c: scope_hint: In function ‘mdsyylparse’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:495:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:480:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1288:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:480:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1288:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:480:9: note: in expansion of macro ‘YYCOPY’
samba-4.20.2-build/samba-4.20.2/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1288:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  493|   #  if defined __GNUC__ && 1 < __GNUC__
#  494|   #   define YYCOPY(Dst, Src, Count) \
#  495|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  496|   #  else
#  497|   #   define YYCOPY(Dst, Src, Count)              \

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

Error: CPPCHECK_WARNING: [#def267]
samba-4.20.2-build/samba-4.20.2/bin/default/source4/librpc/gen_ndr/ndr_irpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def268]
samba-4.20.2-build/samba-4.20.2/bin/default/source4/librpc/gen_ndr/ndr_opendb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def269]
samba-4.20.2-build/samba-4.20.2/bin/default/source4/librpc/gen_ndr/ndr_sasl_helpers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def270]
samba-4.20.2-build/samba-4.20.2/bin/default/source4/librpc/gen_ndr/ndr_winsif.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def271]
samba-4.20.2-build/samba-4.20.2/bin/default/source4/librpc/gen_ndr/ndr_winsrepl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def272]
samba-4.20.2-build/samba-4.20.2/ctdb/client/client_call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def273]
samba-4.20.2-build/samba-4.20.2/ctdb/client/client_control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def274]
samba-4.20.2-build/samba-4.20.2/ctdb/client/client_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def275]
samba-4.20.2-build/samba-4.20.2/ctdb/client/client_message.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def276]
samba-4.20.2-build/samba-4.20.2/ctdb/client/client_tunnel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def277]
samba-4.20.2-build/samba-4.20.2/ctdb/common/cmdline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def278]
samba-4.20.2-build/samba-4.20.2/ctdb/common/conf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def279]
samba-4.20.2-build/samba-4.20.2/ctdb/common/conf_tool.c: scope_hint: In function ‘conf_tool_get’
samba-4.20.2-build/samba-4.20.2/ctdb/common/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): [#def280]
samba-4.20.2-build/samba-4.20.2/ctdb/common/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: CPPCHECK_WARNING: [#def281]
samba-4.20.2-build/samba-4.20.2/ctdb/common/ctdb_io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def282]
samba-4.20.2-build/samba-4.20.2/ctdb/common/ctdb_ltdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def283]
samba-4.20.2-build/samba-4.20.2/ctdb/common/ctdb_ltdb.c: scope_hint: In function ‘ctdb_trackingdb_add_pnn’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def284]
samba-4.20.2-build/samba-4.20.2/ctdb/common/ctdb_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def285]
samba-4.20.2-build/samba-4.20.2/ctdb/common/event_script.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def286]
samba-4.20.2-build/samba-4.20.2/ctdb/common/line.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def287]
samba-4.20.2-build/samba-4.20.2/ctdb/common/logging.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def288]
samba-4.20.2-build/samba-4.20.2/ctdb/common/pkt_read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def289]
samba-4.20.2-build/samba-4.20.2/ctdb/common/rb_tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def290]
samba-4.20.2-build/samba-4.20.2/ctdb/common/run_event.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def291]
samba-4.20.2-build/samba-4.20.2/ctdb/common/run_proc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def292]
samba-4.20.2-build/samba-4.20.2/ctdb/common/sock_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def293]
samba-4.20.2-build/samba-4.20.2/ctdb/common/sock_daemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def294]
samba-4.20.2-build/samba-4.20.2/ctdb/common/system_socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def295]
samba-4.20.2-build/samba-4.20.2/ctdb/common/tmon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def296]
samba-4.20.2-build/samba-4.20.2/ctdb/database/database_conf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def297]
samba-4.20.2-build/samba-4.20.2/ctdb/event/event_conf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def298]
samba-4.20.2-build/samba-4.20.2/ctdb/event/event_protocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def299]
samba-4.20.2-build/samba-4.20.2/ctdb/event/event_tool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def300]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def301]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:86:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#   84|   
#   85|   	ctdb_tdb_data_push(&c->calldata, buf+offset, &np);
#   86|-> 	offset += np;
#   87|   
#   88|   	return 0;

Error: CLANG_WARNING: [#def302]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:169:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  167|   		return ret;
#  168|   	}
#  169|-> 	offset += np;
#  170|   
#  171|   	return 0;

Error: CLANG_WARNING: [#def303]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:202:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  200|   
#  201|   	ctdb_tdb_datan_push(&c->data, buf+offset, &np);
#  202|-> 	offset += np;
#  203|   
#  204|   	return 0;

Error: CLANG_WARNING: [#def304]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:237:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  235|   		return ret;
#  236|   	}
#  237|-> 	offset += np;
#  238|   
#  239|   	return 0;

Error: CLANG_WARNING: [#def305]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:270:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  268|   
#  269|   	ctdb_tdb_datan_push(&c->msg, buf+offset, &np);
#  270|-> 	offset += np;
#  271|   
#  272|   	return 0;

Error: CLANG_WARNING: [#def306]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:305:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  303|   		return ret;
#  304|   	}
#  305|-> 	offset += np;
#  306|   
#  307|   	return 0;

Error: CLANG_WARNING: [#def307]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:363:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  361|   
#  362|   	ctdb_tdb_data_push(&c->data, buf+offset, &np);
#  363|-> 	offset += np;
#  364|   
#  365|   	return 0;

Error: CLANG_WARNING: [#def308]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:446:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  444|   		return ret;
#  445|   	}
#  446|-> 	offset += np;
#  447|   
#  448|   	return 0;

Error: CLANG_WARNING: [#def309]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:501:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  499|   
#  500|   	ctdb_tdb_data_push(&c->data, buf+offset, &np);
#  501|-> 	offset += np;
#  502|   
#  503|   	return 0;

Error: CLANG_WARNING: [#def310]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_call.c:578:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  576|   		return ret;
#  577|   	}
#  578|-> 	offset += np;
#  579|   
#  580|   	return 0;

Error: CPPCHECK_WARNING: [#def311]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def312]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_control.c:1964:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 1962|   		ctdb_string_push(&c->errmsg, buf+offset, &np);
# 1963|   	}
# 1964|-> 	offset += np;
# 1965|   
# 1966|   	return 0;

Error: CLANG_WARNING: [#def313]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_control.c:2020:3: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 2018|   			return ret;
# 2019|   		}
# 2020|-> 		offset += np;
# 2021|   
# 2022|   	} else {

Error: CLANG_WARNING: [#def314]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_control.c:2032:3: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 2030|   			return ret;
# 2031|   		}
# 2032|-> 		offset += np;
# 2033|   	}
# 2034|   

Error: CPPCHECK_WARNING: [#def315]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def316]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_keepalive.c:58:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#   56|   
#   57|   	ctdb_uint32_push(&c->uptime, buf+offset, &np);
#   58|-> 	offset += np;
#   59|   
#   60|   	return 0;

Error: CLANG_WARNING: [#def317]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_keepalive.c:92:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#   90|   		return ret;
#   91|   	}
#   92|-> 	offset += np;
#   93|   
#   94|   	return 0;

Error: CLANG_WARNING: [#def318]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_message.c:367:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  365|   
#  366|   	ctdb_message_data_push(&c->data, c->srvid, buf+offset, &np);
#  367|-> 	offset += np;
#  368|   
#  369|   	return 0;

Error: CLANG_WARNING: [#def319]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_message.c:413:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  411|   		return ret;
#  412|   	}
#  413|-> 	offset += np;
#  414|   
#  415|   	return ret;

Error: CLANG_WARNING: [#def320]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_message.c:447:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  445|   
#  446|   	ctdb_tdb_datan_push(&c->data, buf+offset, &np);
#  447|-> 	offset += np;
#  448|   
#  449|   	return 0;

Error: CLANG_WARNING: [#def321]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_message.c:482:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  480|   		return ret;
#  481|   	}
#  482|-> 	offset += np;
#  483|   
#  484|   	return 0;

Error: CPPCHECK_WARNING: [#def322]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_types.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def323]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def324]
samba-4.20.2-build/samba-4.20.2/ctdb/protocol/protocol_util.c:264:10: warning[deadcode.DeadStores]: Value stored to 'len' during its initialization is never read
#  262|   			0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff
#  263|   		};
#  264|-> 		size_t len = strlen(str);
#  265|   		char s[64];
#  266|   

Error: CPPCHECK_WARNING: [#def325]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_banning.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def326]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def327]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_call.c:1011:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1009|   	if (header.flags & CTDB_REC_RO_REVOKING_READONLY) {
# 1010|   		talloc_free(data.dptr);
# 1011|-> 		ret = ctdb_ltdb_unlock(ctdb_db, call->key);
# 1012|   
# 1013|   		if (ctdb_add_revoke_deferred_call(ctdb, ctdb_db, call->key, hdr, ctdb_call_input_pkt, ctdb) != 0) {

Error: CLANG_WARNING: [#def328]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_call.c:1044:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1042|   			ctdb_fatal(ctdb, "Failed to store record with HAVE_DELEGATIONS set");
# 1043|   		}
# 1044|-> 		ret = ctdb_ltdb_unlock(ctdb_db, call->key);
# 1045|   
# 1046|   		if (ctdb_start_revoke_ro_record(ctdb, ctdb_db, call->key, &header, data) != 0) {

Error: CPPCHECK_WARNING: [#def329]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def330]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_cluster_mutex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def331]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_cluster_mutex.c: scope_hint: In function ‘ctdb_cluster_mutex’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_cluster_mutex.c:333:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_cluster_mutex.c:33: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def332]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def333]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def334]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:830:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  828|   	if (header.flags & CTDB_REC_RO_REVOKING_READONLY) {
#  829|   		talloc_free(data.dptr);
#  830|-> 		ret = ctdb_ltdb_unlock(ctdb_db, key);
#  831|   
#  832|   		if (ctdb_add_revoke_deferred_call(ctdb, ctdb_db, key, (struct ctdb_req_header *)c, daemon_incoming_packet, client) != 0) {

Error: CLANG_WARNING: [#def335]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:846:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  844|   			ctdb_fatal(ctdb, "Failed to store record with HAVE_DELEGATIONS set");
#  845|   		}
#  846|-> 		ret = ctdb_ltdb_unlock(ctdb_db, key);
#  847|   
#  848|   		if (ctdb_start_revoke_ro_record(ctdb, ctdb_db, key, &header, data) != 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def336]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘ux_socket_bind’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:1223:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*ctdb.daemon.sd’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:36: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:1190:9: note: in expansion of macro ‘set_close_on_exec’
# 1221|   
# 1222|   	ret = listen(ctdb->daemon.sd, 100);
# 1223|-> 	if (ret != 0) {
# 1224|   		D_ERR("Unable to listen on ctdb socket '%s'\n",
# 1225|   		      ctdb->daemon.name);

Error: COMPILER_WARNING (CWE-477): [#def337]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘ctdb_start_daemon’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:1559:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 1559 |         tevent_loop_allow_nesting(ctdb->ev);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
samba-4.20.2-build/samba-4.20.2/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_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 1557|   		exit(1);
# 1558|   	}
# 1559|-> 	tevent_loop_allow_nesting(ctdb->ev);
# 1560|   	ctdb_tevent_trace_init();
# 1561|   	tevent_set_trace_callback(ctdb->ev, ctdb_tevent_trace, ctdb);

Error: COMPILER_WARNING (CWE-477): [#def338]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘switch_from_server_to_client’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_daemon.c:2236:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
# 2236 |         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_;
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
# 2234|   		exit(1);
# 2235|   	}
# 2236|-> 	tevent_loop_allow_nesting(ctdb->ev);
# 2237|   
# 2238|   	/* Connect to main CTDB daemon */

Error: CLANG_WARNING: [#def339]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_fork.c:131:8: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function
#  129|   	before = timeval_current();
#  130|   
#  131|-> 	pid = vfork();
#  132|   	if (pid == -1) {
#  133|   		DEBUG(DEBUG_ERR, ("vfork() failed (%s)\n", strerror(errno)));

Error: CPPCHECK_WARNING: [#def340]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_freeze.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def341]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_keepalive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def342]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def343]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_lock.c:604:10: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function
#  602|   		args = debug_locks_args(lock_ctx, lock_ctx);
#  603|   		if (args != NULL) {
#  604|-> 			pid = vfork();
#  605|   			if (pid == 0) {
#  606|   				execvp(debug_locks, discard_const(args));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def344]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_lock.c: scope_hint: In function ‘ctdb_lock_schedule’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def345]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_lock_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def346]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_logging.c: scope_hint: In function ‘ctdb_set_child_logging’
samba-4.20.2-build/samba-4.20.2/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): [#def347]
samba-4.20.2-build/samba-4.20.2/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): [#def348]
samba-4.20.2-build/samba-4.20.2/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): [#def349]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def350]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_ltdb_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def351]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_monitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def352]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_mutex_fcntl_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def353]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_persistent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def354]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_recover.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def355]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_recover.c:1097:4: warning[deadcode.DeadStores]: Value stored to 'hdr' is never read
# 1095|   			struct ctdb_ltdb_header *hdr;
# 1096|   
# 1097|-> 			hdr = (struct ctdb_ltdb_header *)data.dptr;
# 1098|   			data.dptr += sizeof(*hdr);
# 1099|   			data.dsize -= sizeof(*hdr);

Error: CPPCHECK_WARNING: [#def356]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_recoverd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def357]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_recovery_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_recovery_helper.c: scope_hint: In function ‘node_list_add’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def359]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_takeover.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def360]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_takeover_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def361]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_traverse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def362]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_update_record.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def363]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_vacuum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def364]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ctdb_vacuum.c:1015:4: warning[deadcode.DeadStores]: Value stored to 'rechdr' is never read
# 1013|   				goto done;
# 1014|   			}
# 1015|-> 			rechdr = (struct ctdb_ltdb_header *)recdata.dptr;
# 1016|   			recdata.dptr += sizeof(*rechdr);
# 1017|   			recdata.dsize -= sizeof(*rechdr);

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

Error: CPPCHECK_WARNING: [#def366]
samba-4.20.2-build/samba-4.20.2/ctdb/server/eventscript.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def367]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def368]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc_deterministic.c: scope_hint: In function ‘ipalloc_deterministic’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc_deterministic.c:160:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hn’
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc_deterministic.c:31: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc_deterministic.c:128:9: note: in expansion of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/ctdb/common/logging.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def369]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc_lcp2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def370]
samba-4.20.2-build/samba-4.20.2/ctdb/server/ipalloc_nondeterministic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def371]
samba-4.20.2-build/samba-4.20.2/ctdb/tcp/tcp_connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def372]
samba-4.20.2-build/samba-4.20.2/ctdb/tcp/tcp_connect.c: scope_hint: In function ‘ctdb_tcp_listen’
samba-4.20.2-build/samba-4.20.2/ctdb/tcp/tcp_connect.c:582:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.listen_fd’
samba-4.20.2-build/samba-4.20.2/ctdb/tcp/tcp_connect.c:30: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def373]
samba-4.20.2-build/samba-4.20.2/ctdb/tools/ctdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CPPCHECK_WARNING: [#def376]
samba-4.20.2-build/samba-4.20.2/ctdb/utils/ceph/ctdb_mutex_ceph_rados_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def377]
samba-4.20.2-build/samba-4.20.2/ctdb/utils/smnotify/smnotify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def378]
samba-4.20.2-build/samba-4.20.2/ctdb/utils/tdb/tdb_mutex_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
samba-4.20.2-build/samba-4.20.2/ctdb/utils/tdb/tdb_mutex_check.c: scope_hint: In function ‘get_hash_chain’
samba-4.20.2-build/samba-4.20.2/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): [#def380]
samba-4.20.2-build/samba-4.20.2/ctdb/utils/tdb/tdb_mutex_check.c: scope_hint: In function ‘check_one’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/ctdb/utils/tdb/tdb_mutex_check.c:20: included_from: Included from here.
/usr/include/pthread.h:859: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: CPPCHECK_WARNING: [#def381]
samba-4.20.2-build/samba-4.20.2/dfs_server/dfs_server_ad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def382]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl.c:179:9: warning[unix.Malloc]: Potential memory leak
#  177|   		case 'G':
#  178|   			the_acl = strdup(poptGetOptArg(pc));
#  179|-> 			mode = SMB_ACL_CHGRP;
#  180|   			break;
#  181|   		}

Error: COMPILER_WARNING (CWE-477): [#def383]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/examples/libsmbclient/testacl.c:5: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def384]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl.c:303:4: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'value' is still referred to by the static variable 'the_acl' upon returning to the caller.  This will be a dangling reference
#  301|   		{
#  302|   			printf("Missing value.  ACL must be name:value pair\n");
#  303|-> 			return 1;
#  304|   		}
#  305|   

Error: CLANG_WARNING: [#def385]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl.c:313:4: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'value' is still referred to by the static variable 'the_acl' upon returning to the caller.  This will be a dangling reference
#  311|   			printf("Could not %s for [%s] %d: %s\n",
#  312|   			       debugstr, path, errno, strerror(errno));
#  313|-> 			return 1;
#  314|   		}
#  315|   		break;

Error: CLANG_WARNING: [#def386]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl.c:332:2: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'value' is still referred to by the static variable 'the_acl' upon returning to the caller.  This will be a dangling reference
#  330|   	}
#  331|   
#  332|-> 	return 0;
#  333|   }

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

Error: CPPCHECK_WARNING (CWE-457): [#def388]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl2.c:40: error[uninitvar]: Uninitialized variable: value
#   38|   
#   39|   	the_acl = strdup("system.nt_sec_desc.*");
#   40|-> 	ret = smbc_getxattr(argv[1], the_acl, value, sizeof(value));
#   41|   	if (ret < 0)
#   42|   	{

Error: GCC_ANALYZER_WARNING (CWE-457): [#def389]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl2.c:53:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘value[0]’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl2.c:2: 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
#   51|   	debugstr = "set attributes (1st time)";
#   52|   
#   53|-> 	ret = smbc_setxattr(argv[1], the_acl, value, strlen(value), flags);
#   54|   	if (ret < 0)
#   55|   	{

Error: COMPILER_WARNING (CWE-477): [#def390]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl3.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl3.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl3.c:7: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   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): [#def391]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING (CWE-457): [#def392]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl3.c:47: error[uninitvar]: Uninitialized variable: value
#   45|   
#   46|   		the_acl = strdup("system.nt_sec_desc.*+");
#   47|-> 		ret = smbc_getxattr(path, the_acl, value, sizeof(value));
#   48|   		if (ret < 0)
#   49|   		{

Error: CLANG_WARNING: [#def393]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testacl3.c:50:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'the_acl'
#   48|   		if (ret < 0)
#   49|   		{
#   50|-> 			printf("Could not get attributes for [%s] %d: %s\n",
#   51|   			       path, errno, strerror(errno));
#   52|   			return 1;

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

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

Error: COMPILER_WARNING (CWE-477): [#def396]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testnotify.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testnotify.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   42 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testnotify.c:7: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def397]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testread.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testread.c:21:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testread.c:7: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def398]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testsmbc.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/examples/libsmbclient/testsmbc.c:29: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def399]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testsmbc.c:94:3: warning[deadcode.DeadStores]: Value stored to 'dirp' is never read
#   92|   		}
#   93|   
#   94|-> 		dirp = (char *)dirbuf;
#   95|   
#   96|   		exit(1);

Error: COMPILER_WARNING (CWE-477): [#def400]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststat2.c: scope_hint: In function ‘gettime’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststat2.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststat2.c:1: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   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): [#def401]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststat3.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststat3.c:29:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststat3.c:1: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def402]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststatvfs.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststatvfs.c:20:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   20 |         smbc_init(get_auth_data_fn, debug);
#      |         ^~~~~~~~~
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/teststatvfs.c:8: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   18|   	struct statvfs  statvfsbuf;
#   19|   
#   20|-> 	smbc_init(get_auth_data_fn, debug);
#   21|   
#   22|   	for (;;)

Error: COMPILER_WARNING (CWE-477): [#def403]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testtruncate.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testtruncate.c:27:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testtruncate.c:6: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   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): [#def404]
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testutime.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testutime.c:42:9: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
samba-4.20.2-build/samba-4.20.2/examples/libsmbclient/testutime.c:6: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/include/public/libsmbclient.h:1293:5: note: declared here
#   40|   	}
#   41|   
#   42|-> 	smbc_init(get_auth_data_fn, debug);
#   43|   
#   44|   	if (smbc_stat(pSmbPath, &st) < 0)

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

Error: CLANG_WARNING: [#def406]
samba-4.20.2-build/samba-4.20.2/examples/winexe/winexe.c:182:8: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#  180|   	poptSetOtherOptionHelp(pc, "[OPTION]... //HOST[:PORT] COMMAND\nOptions:");
#  181|   
#  182|-> 	if (((opt = poptGetNextOpt(pc)) != -1) || flag_help || flag_version) {
#  183|   		fprintf(stderr, version_message_fmt, SAMBA_VERSION_MAJOR,
#  184|   			SAMBA_VERSION_MINOR);

Error: CPPCHECK_WARNING: [#def407]
samba-4.20.2-build/samba-4.20.2/lib/addns/dnsmarshall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def408]
samba-4.20.2-build/samba-4.20.2/lib/addns/dnsquery.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def409]
samba-4.20.2-build/samba-4.20.2/lib/addns/dnsquery_srv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def410]
samba-4.20.2-build/samba-4.20.2/lib/addns/dnssock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def411]
samba-4.20.2-build/samba-4.20.2/lib/addns/dnsutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def412]
samba-4.20.2-build/samba-4.20.2/lib/async_req/async_sock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def413]
samba-4.20.2-build/samba-4.20.2/lib/cmdline/closefrom_except.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def414]
samba-4.20.2-build/samba-4.20.2/lib/cmdline/closefrom_except.c:85:10: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
#   83|   	pc = poptGetContext(argv[0], argc, argv, long_options, 0);
#   84|   
#   85|-> 	while ((ret = poptGetNextOpt(pc)) != -1) {
#   86|   		/* do nothing */
#   87|   	}

Error: CPPCHECK_WARNING: [#def415]
samba-4.20.2-build/samba-4.20.2/lib/cmdline/cmdline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def416]
samba-4.20.2-build/samba-4.20.2/lib/compression/lzxpress.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def417]
samba-4.20.2-build/samba-4.20.2/lib/compression/lzxpress_huffman.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def418]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def419]
samba-4.20.2-build/samba-4.20.2/lib/compression/lzxpress_huffman.c:693:11: warning[deadcode.DeadStores]: Value stored to 'o' during its initialization is never read
#  691|   {
#  692|   	int i;
#  693|-> 	uint16_t o = hash_table[h];
#  694|   	uint16_t h2;
#  695|   	size_t len;

Error: CPPCHECK_WARNING: [#def420]
samba-4.20.2-build/samba-4.20.2/lib/crypto/gnutls_aead_aes_256_cbc_hmac_sha512.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def421]
samba-4.20.2-build/samba-4.20.2/lib/crypto/gnutls_arcfour_confounded_md5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def422]
samba-4.20.2-build/samba-4.20.2/lib/crypto/gnutls_sp800_108.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-786): [#def423]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def424]
samba-4.20.2-build/samba-4.20.2/lib/dbwrap/dbwrap_rbt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def425]
samba-4.20.2-build/samba-4.20.2/lib/dbwrap/dbwrap_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def426]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldb_ildap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def427]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldb_ildap.c:264:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  262|   	case LDAP_TAG_AddRequest:
#  263|   		if (req->replies[0]->type != LDAP_TAG_AddResponse) {
#  264|-> 			ret = LDB_ERR_PROTOCOL_ERROR;
#  265|   			return;
#  266|   		}

Error: CLANG_WARNING: [#def428]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldb_ildap.c:274:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  272|   	case LDAP_TAG_DelRequest:
#  273|   		if (req->replies[0]->type != LDAP_TAG_DelResponse) {
#  274|-> 			ret = LDB_ERR_PROTOCOL_ERROR;
#  275|   			return;
#  276|   		}

Error: CLANG_WARNING: [#def429]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldb_ildap.c:284:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  282|   	case LDAP_TAG_ModifyDNRequest:
#  283|   		if (req->replies[0]->type != LDAP_TAG_ModifyDNResponse) {
#  284|-> 			ret = LDB_ERR_PROTOCOL_ERROR;
#  285|   			return;
#  286|   		}

Error: CLANG_WARNING: [#def430]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldb_ildap.c:380:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  378|   
#  379|   		if (req->replies[0]->type != LDAP_TAG_ExtendedResponse) {
#  380|-> 			ret = LDB_ERR_PROTOCOL_ERROR;
#  381|   			return;
#  382|   		}

Error: CPPCHECK_WARNING: [#def431]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldb_matching_rules.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def432]
samba-4.20.2-build/samba-4.20.2/lib/ldb-samba/ldif_handlers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def433]
samba-4.20.2-build/samba-4.20.2/lib/messaging/messages_dgm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def434]
samba-4.20.2-build/samba-4.20.2/lib/messaging/messages_dgm_ref.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def435]
samba-4.20.2-build/samba-4.20.2/lib/mscat/dumpmscat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def436]
samba-4.20.2-build/samba-4.20.2/lib/mscat/mscat_ctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def437]
samba-4.20.2-build/samba-4.20.2/lib/param/loadparm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def438]
samba-4.20.2-build/samba-4.20.2/lib/param/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def439]
samba-4.20.2-build/samba-4.20.2/lib/printer_driver/printer_driver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def440]
samba-4.20.2-build/samba-4.20.2/lib/pthreadpool/pthreadpool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def441]
samba-4.20.2-build/samba-4.20.2/lib/pthreadpool/pthreadpool_pipe.c: scope_hint: In function ‘pthreadpool_pipe_reinit’
samba-4.20.2-build/samba-4.20.2/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): [#def442]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def443]
samba-4.20.2-build/samba-4.20.2/lib/pthreadpool/pthreadpool_tevent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c: scope_hint: In function ‘reg_match_one’
samba-4.20.2-build/samba-4.20.2/lib/replace/system/dir.h:65:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file’
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c:50:13: note: in expansion of macro ‘ISDOTDOT’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c:410:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def445]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/getifaddrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def446]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/os2_delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def447]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/os2_delete.c: scope_hint: In function ‘test_readdir_os2_delete’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def448]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/strptime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def449]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strdup’
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/testsuite.c:172:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def450]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_strndup’
samba-4.20.2-build/samba-4.20.2/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): [#def451]
samba-4.20.2-build/samba-4.20.2/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): [#def452]
samba-4.20.2-build/samba-4.20.2/lib/replace/tests/testsuite.c: scope_hint: In function ‘test_closefrom’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def453]
samba-4.20.2-build/samba-4.20.2/lib/smbconf/smbconf_txt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def454]
samba-4.20.2-build/samba-4.20.2/lib/socket/interfaces.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def455]
samba-4.20.2-build/samba-4.20.2/lib/talloc/testsuite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def456]
samba-4.20.2-build/samba-4.20.2/lib/talloc/testsuite.c:813:2: warning[deadcode.DeadStores]: Value stored to 'p1' is never read
#  811|   	CHECK_BLOCKS("realloc_fn", root, 2);
#  812|   	CHECK_SIZE("realloc_fn", root, 20);
#  813|-> 	p1 = talloc_realloc_fn(root, p1, 0);
#  814|   	CHECK_BLOCKS("realloc_fn", root, 1);
#  815|   	CHECK_SIZE("realloc_fn", root, 0);

Error: CLANG_WARNING: [#def457]
samba-4.20.2-build/samba-4.20.2/lib/talloc/testsuite.c:1406:2: warning[deadcode.DeadStores]: Value stored to 'p1_2' is never read
# 1404|   	talloc_free(pool);
# 1405|   
# 1406|-> 	p1_2 = p1;
# 1407|   
# 1408|   	p1_2 = talloc_realloc_size(root, p1, 5 * 16);

Error: CLANG_WARNING: [#def458]
samba-4.20.2-build/samba-4.20.2/lib/talloc/testsuite.c:1422:2: warning[deadcode.DeadStores]: Value stored to 'p2_2' is never read
# 1420|   	talloc_free(p1_2);
# 1421|   
# 1422|-> 	p2_2 = p2;
# 1423|   
# 1424|   	/* now we should reclaim the full pool */

Error: COMPILER_WARNING (CWE-477): [#def459]
samba-4.20.2-build/samba-4.20.2/lib/talloc/testsuite.c: scope_hint: In function ‘test_memlimit’
samba-4.20.2-build/samba-4.20.2/lib/talloc/testsuite.c:1628:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
samba-4.20.2-build/samba-4.20.2/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): [#def460]
samba-4.20.2-build/samba-4.20.2/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): [#def461]
samba-4.20.2-build/samba-4.20.2/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): [#def462]
samba-4.20.2-build/samba-4.20.2/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): [#def463]
samba-4.20.2-build/samba-4.20.2/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): [#def464]
samba-4.20.2-build/samba-4.20.2/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): [#def465]
samba-4.20.2-build/samba-4.20.2/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): [#def466]
samba-4.20.2-build/samba-4.20.2/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): [#def467]
samba-4.20.2-build/samba-4.20.2/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): [#def468]
samba-4.20.2-build/samba-4.20.2/ctdb/utils/tdb/tdb_mutex_check.c:31: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/tdb/common/mutex.c: scope_hint: In function ‘tdb_runtime_check_for_robust_mutexes’
samba-4.20.2-build/samba-4.20.2/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[0]’
samba-4.20.2-build/samba-4.20.2/lib/tdb/common/tdb_private.h:34: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/ctdb/utils/tdb/tdb_mutex_check.c:30: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def469]
samba-4.20.2-build/samba-4.20.2/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_down[1]’
samba-4.20.2-build/samba-4.20.2/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): [#def470]
samba-4.20.2-build/samba-4.20.2/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[0]’
samba-4.20.2-build/samba-4.20.2/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): [#def471]
samba-4.20.2-build/samba-4.20.2/lib/tdb/common/mutex.c:845:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_up[1]’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def472]
samba-4.20.2-build/samba-4.20.2/lib/tdb_wrap/tdb_wrap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def473]
samba-4.20.2-build/samba-4.20.2/lib/tdr/testsuite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def474]
samba-4.20.2-build/samba-4.20.2/lib/tevent/test_req.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def475]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def476]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c: scope_hint: In function ‘test_wrapper’
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1716:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:29: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2875:24: note: declared here
# 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): [#def477]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1760:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2954:6: note: declared here
# 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): [#def478]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1762:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2954:6: note: declared here
# 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): [#def479]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1764:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2983:6: note: declared here
# 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): [#def480]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1765:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2983:6: note: declared here
# 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): [#def481]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1794:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2983:6: note: declared here
# 1792|   	return ok;
# 1793|   pop_use:
# 1794|-> 	tevent_context_pop_use(wrap_ev);
# 1795|   	goto done;
# 1796|   }

Error: COMPILER_WARNING (CWE-477): [#def482]
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c: scope_hint: In function ‘test_free_wrapper’
samba-4.20.2-build/samba-4.20.2/lib/tevent/testsuite.c:1889:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
samba-4.20.2-build/samba-4.20.2/lib/tevent/tevent.h:2875:24: note: declared here
# 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: CLANG_WARNING: [#def483]
samba-4.20.2-build/samba-4.20.2/lib/torture/subunit.c:82:14: warning[deadcode.DeadStores]: Value stored to 'result_str' during its initialization is never read
#   80|   {
#   81|   	char *fullname = torture_subunit_test_name(context, context->active_tcase, context->active_test);
#   82|-> 	const char *result_str = "unknown";
#   83|   	torture_subunit_report_time(context);
#   84|   	switch (res) {

Error: CPPCHECK_WARNING: [#def484]
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def485]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c: scope_hint: In function ‘test_ioctl_compress_file_flag’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:274:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:2413:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:2399:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:2403:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:2411:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:2413:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/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): [#def486]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c: scope_hint: In function ‘test_delayed_write_update’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:663:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo2.basic_info.out.write_time’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:103:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:53:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:56:9: note: in expansion of macro ‘torture_assert_int_not_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:64:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:70:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:103:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.20.2-build/samba-4.20.2/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): [#def487]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c: scope_hint: In function ‘test_delayed_write_update1’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:663:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:260:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:137:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:140:9: note: in expansion of macro ‘torture_assert_int_not_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:159:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:161:9: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:161:9: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:173:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:183:17: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:185:17: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:185:17: note: in expansion of macro ‘torture_assert_u64_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:204:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:207:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:207:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:218:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:258:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c:260:9: note: in expansion of macro ‘torture_assert_u64_not_equal’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def488]
samba-4.20.2-build/samba-4.20.2/lib/tsocket/tsocket_bsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def489]
samba-4.20.2-build/samba-4.20.2/lib/tsocket/tsocket_bsd.c:1554:34: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1552|   	 */
# 1553|   	result = getsockname(fd, &sa, &sa_len);
# 1554|-> 	if (result == 0 && sa.sa_family == AF_NETLINK) {
# 1555|   		bsds->netlink = true;
# 1556|   	}

Error: CPPCHECK_WARNING: [#def490]
samba-4.20.2-build/samba-4.20.2/lib/tsocket/tsocket_helpers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def491]
samba-4.20.2-build/samba-4.20.2/lib/util/access.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def492]
samba-4.20.2-build/samba-4.20.2/lib/util/asn1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c: scope_hint: In function ‘regf_set_value’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1884:41: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:115:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:43: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1884:41: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1884:41: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1884: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): [#def494]
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c: scope_hint: In function ‘prs_uint32’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:115:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data32’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:105:41: note: in definition of macro ‘PUSH_BE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:115:6: note: in expansion of macro ‘PUSH_BE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:158:29: note: in expansion of macro ‘PUSH_BE_U32’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:386:25: note: in expansion of macro ‘RSIVAL’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:105:41: note: in definition of macro ‘PUSH_BE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:115:6: note: in expansion of macro ‘PUSH_BE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:158:29: note: in expansion of macro ‘PUSH_BE_U32’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:386:25: note: in expansion of macro ‘RSIVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:105:41: note: in definition of macro ‘PUSH_BE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:115:6: note: in expansion of macro ‘PUSH_BE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:158:29: note: in expansion of macro ‘PUSH_BE_U32’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def495]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def496]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c: scope_hint: In function ‘charset_name’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c:16562:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c:24: included_from: Included from here.
#16560|   	switch (ch) {
#16561|   	case CH_UTF16: return "UTF-16LE";
#16562|-> 	case CH_UNIX: return ic->unix_charset;
#16563|   	case CH_DOS: return ic->dos_charset;
#16564|   	case CH_UTF8: return "UTF8";

Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c:16563:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
#16561|   	case CH_UTF16: return "UTF-16LE";
#16562|   	case CH_UNIX: return ic->unix_charset;
#16563|-> 	case CH_DOS: return ic->dos_charset;
#16564|   	case CH_UTF8: return "UTF8";
#16565|   	case CH_UTF16BE: return "UTF-16BE";

Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c: scope_hint: In function ‘get_conv_handle.part.0’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/codepoints.c:16657:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ic’
#16655|   
#16656|   	ic->conv_handles[from][to] = smb_iconv_open_ex(ic, n2, n1,
#16657|-> 						       ic->use_builtin_handlers);
#16658|   
#16659|   	if (ic->conv_handles[from][to] == (smb_iconv_t)-1) {

Error: CPPCHECK_WARNING: [#def499]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/convert_string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def500]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/iconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def501]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/tests/convert_string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def502]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/tests/iconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/tests/iconv.c: scope_hint: In function ‘iconv_untestable’
samba-4.20.2-build/samba-4.20.2/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): [#def504]
samba-4.20.2-build/samba-4.20.2/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): [#def505]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/tests/iconv.c: scope_hint: In function ‘gen_codepoint_utf16’
samba-4.20.2-build/samba-4.20.2/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: [#def506]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_str.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def507]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def508]
samba-4.20.2-build/samba-4.20.2/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): [#def509]
samba-4.20.2-build/samba-4.20.2/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): [#def510]
samba-4.20.2-build/samba-4.20.2/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): [#def511]
samba-4.20.2-build/samba-4.20.2/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): [#def512]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr_w.c:132: error[uninitvar]: Uninitialized variable: *(((unsigned char*)(&cp))[0]=((const unsigned char*)(p))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(p))[1],&cp)
#  130|   	p += (len - 1);
#  131|   	do {
#  132|-> 		if (c == *(COPY_UCS2_CHAR(&cp,p))) {
#  133|   			n--;
#  134|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def513]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr_w.c:181: error[uninitvar]: Uninitialized variable: *(((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp)
#  179|   	bool ret = false;
#  180|   
#  181|-> 	while (*(COPY_UCS2_CHAR(&cp,s))) {
#  182|   		smb_ucs2_t v = tolower_m(cp);
#  183|   		if (v != cp) {

Error: CPPCHECK_WARNING (CWE-457): [#def514]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr_w.c:203: error[uninitvar]: Uninitialized variable: *(((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp)
#  201|   	smb_ucs2_t cp;
#  202|   	bool ret = false;
#  203|-> 	while (*(COPY_UCS2_CHAR(&cp,s))) {
#  204|   		smb_ucs2_t v = toupper_m(cp);
#  205|   		if (v != cp) {

Error: CPPCHECK_WARNING (CWE-457): [#def515]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr_w.c:219: error[uninitvar]: Uninitialized variable: *(((unsigned char*)(&cpa))[0]=((const unsigned char*)(a))[0],((unsigned char*)(&cpa))[1]=((const unsigned char*)(a))[1],&cpa)
#  217|   	size_t n = 0;
#  218|   
#  219|-> 	while ((n < len) && (*(COPY_UCS2_CHAR(&cpb,b))) && (*(COPY_UCS2_CHAR(&cpa,a)) == cpb)) {
#  220|   		a++;
#  221|   		b++;

Error: CPPCHECK_WARNING (CWE-457): [#def516]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr_w.c:219: error[uninitvar]: Uninitialized variable: *(((unsigned char*)(&cpb))[0]=((const unsigned char*)(b))[0],((unsigned char*)(&cpb))[1]=((const unsigned char*)(b))[1],&cpb)
#  217|   	size_t n = 0;
#  218|   
#  219|-> 	while ((n < len) && (*(COPY_UCS2_CHAR(&cpb,b))) && (*(COPY_UCS2_CHAR(&cpa,a)) == cpb)) {
#  220|   		a++;
#  221|   		b++;

Error: CPPCHECK_WARNING (CWE-457): [#def517]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/util_unistr_w.c:254: error[uninitvar]: Uninitialized variable: ret
#  252|   	/* native to LE. */
#  253|   	SSVAL(&ret,0,cp);
#  254|-> 	return ret;
#  255|   }

Error: GCC_ANALYZER_WARNING: [#def518]
samba-4.20.2-build/samba-4.20.2/lib/util/close_low_fd.c: scope_hint: In function ‘close_low_fd’
samba-4.20.2-build/samba-4.20.2/lib/util/close_low_fd.c:67:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
#   65|   	}
#   66|   
#   67|-> 	ret = dup2(dev_null, fd);
#   68|   	if (ret == -1) {
#   69|   		int err = errno;

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

Error: CPPCHECK_WARNING: [#def520]
samba-4.20.2-build/samba-4.20.2/lib/util/debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

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

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

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

Error: CPPCHECK_WARNING: [#def527]
samba-4.20.2-build/samba-4.20.2/lib/util/genrand_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def528]
samba-4.20.2-build/samba-4.20.2/lib/util/getpass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def529]
samba-4.20.2-build/samba-4.20.2/lib/util/idtree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def530]
samba-4.20.2-build/samba-4.20.2/lib/util/idtree.c:132:19: warning[core.BitwiseShift]: Left shift by '35' overflows the capacity of 'int'
#  130|   			l++;
#  131|   			oid = id;
#  132|-> 			id = (id | ((1 << (IDR_BITS*l))-1)) + 1;
#  133|   
#  134|   			/* if already at the top layer, we need to grow */

Error: CLANG_WARNING: [#def531]
samba-4.20.2-build/samba-4.20.2/lib/util/idtree.c:144:12: warning[core.BitwiseShift]: Right shift by '35' overflows the capacity of 'unsigned int'
#  142|   			 */
#  143|   			sh = IDR_BITS * (l + 1);
#  144|-> 			if (oid >> sh == id >> sh)
#  145|   				continue;
#  146|   			else

Error: GCC_ANALYZER_WARNING (CWE-121): [#def532]
samba-4.20.2-build/samba-4.20.2/lib/util/idtree.c: scope_hint: In function ‘sub_remove’
samba-4.20.2-build/samba-4.20.2/lib/util/idtree.c:261:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/lib/util/idtree.c:261:24: note: write of 8 bytes to beyond the end of ‘pa’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def533]
samba-4.20.2-build/samba-4.20.2/lib/util/memcache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-465): [#def534]
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c: scope_hint: In function ‘remove_dirplus’
samba-4.20.2-build/samba-4.20.2/lib/util/memory.h:31:30: warning[-Wanalyzer-deref-before-check]: check of ‘*d.smb_finfo’ for NULL after already dereferencing it
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:55:17: note: in expansion of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:54:17: note: in expansion of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/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): [#def535]
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cred_cache.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cred_cache.c: scope_hint: In function ‘delete_memory_creds’
samba-4.20.2-build/samba-4.20.2/lib/util/memory.h:31:30: warning[-Wanalyzer-deref-before-check]: check of ‘*memcredp.nt_hash’ for NULL after already dereferencing it
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cred_cache.c:874:9: note: in expansion of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cred_cache.c:874: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: CPPCHECK_WARNING: [#def536]
samba-4.20.2-build/samba-4.20.2/lib/util/ms_fnmatch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def537]
samba-4.20.2-build/samba-4.20.2/lib/util/msghdr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def538]
samba-4.20.2-build/samba-4.20.2/lib/util/pidfile.c: scope_hint: In function ‘pidfile_fd_close’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def539]
samba-4.20.2-build/samba-4.20.2/lib/util/server_id_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def540]
samba-4.20.2-build/samba-4.20.2/lib/util/stable_sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-121): [#def541]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliprint.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliprint.c: scope_hint: In function ‘cli_print_queue’
samba-4.20.2-build/samba-4.20.2/lib/util/string_wrappers.h:31:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.20.2-build/samba-4.20.2/lib/util/string_wrappers.h:31:9: note: write of 2 bytes to beyond the end of ‘param’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.20.2-build/samba-4.20.2/lib/util/string_wrappers.h:31:9: note: valid subscripts for ‘param’ are ‘[0]’ to ‘[1023]’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliprint.c:73:9: note: in expansion of macro ‘strlcpy_base’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: [#def542]
samba-4.20.2-build/samba-4.20.2/lib/util/strv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def543]
samba-4.20.2-build/samba-4.20.2/lib/util/substitute.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def544]
samba-4.20.2-build/samba-4.20.2/lib/util/sys_rw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def545]
samba-4.20.2-build/samba-4.20.2/lib/util/talloc_report.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def546]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/asn1_tests.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def547]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/binsearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def548]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/data_blob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def549]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/dlinklist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def550]
samba-4.20.2-build/samba-4.20.2/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: [#def551]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def552]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/file.c:169:2: warning[deadcode.DeadStores]: Value stored to 'lines' is never read
#  167|   		       "saving file");
#  168|   
#  169|-> 	lines = file_lines_load(TEST_FILENAME, &numlines, 0, mem_ctx);
#  170|   
#  171|   	torture_assert_int_equal(tctx, numlines, 0, "Lines");

Error: CPPCHECK_WARNING (CWE-457): [#def553]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def554]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/genrandperf.c:37:2: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#   35|   		generate_random_buffer((uint8_t *)&val, sizeof(val));
#   36|   	}
#   37|-> 	printf("%"PRIu64"\n", val);
#   38|   	return 0;
#   39|   }

Error: CPPCHECK_WARNING: [#def555]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/idtree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def556]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def557]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def558]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def559]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c: scope_hint: In function ‘test_strv_split_some’
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c:130:40: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c:121:17: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c:122:17: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/util/tests/strv_util.c:129:25: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:274:15: note: in definition of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def560]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/tfork.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def561]
samba-4.20.2-build/samba-4.20.2/lib/util/tests/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def562]
samba-4.20.2-build/samba-4.20.2/lib/util/tevent_req_profile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def563]
samba-4.20.2-build/samba-4.20.2/lib/util/tevent_req_profile.c:248:2: warning[deadcode.DeadStores]: Value stored to 'pack_len' is never read
#  246|   
#  247|   	num_sub = 0;
#  248|-> 	pack_len = 0;
#  249|   
#  250|   	for (sub = tevent_req_profile_get_subprofiles(profile);

Error: CPPCHECK_WARNING: [#def564]
samba-4.20.2-build/samba-4.20.2/lib/util/tfork.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def565]
samba-4.20.2-build/samba-4.20.2/lib/util/tiniparser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
samba-4.20.2-build/samba-4.20.2/lib/util/tiniparser.c: scope_hint: In function ‘value_parser’
samba-4.20.2-build/samba-4.20.2/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): [#def567]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def568]
samba-4.20.2-build/samba-4.20.2/lib/util/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def569]
samba-4.20.2-build/samba-4.20.2/lib/util/util.c: scope_hint: In function ‘dump_data_block16’
samba-4.20.2-build/samba-4.20.2/lib/util/util.c:503:40: warning[-Wformat-truncation=]: ‘%04zX’ directive output may be truncated writing between 4 and 16 bytes into a region of size 15
#  503 |         snprintf(tmp, sizeof(tmp), "%s[%04zX]", prefix, idx);
#      |                                        ^~~~~
samba-4.20.2-build/samba-4.20.2/lib/util/util.c:503:36: note: directive argument in the range [0, 18446744073709551614]
#  503 |         snprintf(tmp, sizeof(tmp), "%s[%04zX]", prefix, idx);
#      |                                    ^~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 7 or more bytes (assuming 19) into a destination of size 16
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  501|   	SMB_ASSERT(len <= 16);
#  502|   
#  503|-> 	snprintf(tmp, sizeof(tmp), "%s[%04zX]", prefix, idx);
#  504|   	cb(tmp, private_data);
#  505|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def570]
samba-4.20.2-build/samba-4.20.2/lib/util/util.c:675:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf1’ where non-null expected
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
#  673|   
#  674|   		if ((this_len1 == this_len2) &&
#  675|-> 		    (memcmp(this_buf1, this_buf2, this_len1) == 0))
#  676|   		{
#  677|   			dump_data_block16(" ", i, this_buf1, this_len1,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def571]
samba-4.20.2-build/samba-4.20.2/lib/util/util.c: scope_hint: In function ‘dump_data_diff_cb’
samba-4.20.2-build/samba-4.20.2/lib/util/util.c:675:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf2’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/util.c:26: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 2 of ‘memcmp’ must be non-null
#  673|   
#  674|   		if ((this_len1 == this_len2) &&
#  675|-> 		    (memcmp(this_buf1, this_buf2, this_len1) == 0))
#  676|   		{
#  677|   			dump_data_block16(" ", i, this_buf1, this_len1,

Error: CPPCHECK_WARNING: [#def572]
samba-4.20.2-build/samba-4.20.2/lib/util/util_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def573]
samba-4.20.2-build/samba-4.20.2/lib/util/util_file.c: scope_hint: In function ‘fd_load’
samba-4.20.2-build/samba-4.20.2/lib/util/util_file.c:224:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
#  222|   	}
#  223|   
#  224|-> 	p[size] = '\0';
#  225|   
#  226|   	if (psize != NULL) {

Error: CPPCHECK_WARNING: [#def574]
samba-4.20.2-build/samba-4.20.2/lib/util/util_net.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def575]
samba-4.20.2-build/samba-4.20.2/lib/util/util_runcmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def576]
samba-4.20.2-build/samba-4.20.2/lib/util/util_runcmd.c: scope_hint: In function ‘samba_runcmd_send’
samba-4.20.2-build/samba-4.20.2/lib/util/util_runcmd.c:235:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
samba-4.20.2-build/samba-4.20.2/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: [#def577]
samba-4.20.2-build/samba-4.20.2/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: [#def578]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def579]
samba-4.20.2-build/samba-4.20.2/lib/util/util_str.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def580]
samba-4.20.2-build/samba-4.20.2/lib/util/util_str_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def581]
samba-4.20.2-build/samba-4.20.2/lib/util/util_strlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def582]
samba-4.20.2-build/samba-4.20.2/libcli/auth/credentials.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def583]
samba-4.20.2-build/samba-4.20.2/libcli/auth/netlogon_creds_cli.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def584]
samba-4.20.2-build/samba-4.20.2/libcli/auth/ntlm_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def585]
samba-4.20.2-build/samba-4.20.2/libcli/auth/ntlm_check.c:398: error[uninitvar]: Uninitialized variable: &client_lm
#  396|   					   lanman_auth,
#  397|   					   ntlm_auth,
#  398|-> 					   lm_ok ? &client_lm : NULL, 
#  399|   					   nt_response->length ? &client_nt : NULL, 
#  400|   					   username,  

Error: CPPCHECK_WARNING: [#def586]
samba-4.20.2-build/samba-4.20.2/libcli/auth/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def587]
samba-4.20.2-build/samba-4.20.2/libcli/auth/smbencrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def588]
samba-4.20.2-build/samba-4.20.2/libcli/auth/smbencrypt.c:895:3: warning[deadcode.DeadStores]: Value stored to 'pw_pos' is never read
#  893|   	switch (order) {
#  894|   	case ENCODE_ORDER_PASSWORD_FIRST:
#  895|-> 		pw_pos = 0;
#  896|   		random_pos = new_pw_len;
#  897|   		random_len = PASSWORD_BUFFER_LEN - random_pos;

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

Error: CPPCHECK_WARNING: [#def590]
samba-4.20.2-build/samba-4.20.2/libcli/auth/spnego_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def591]
samba-4.20.2-build/samba-4.20.2/libcli/cldap/cldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def592]
samba-4.20.2-build/samba-4.20.2/libcli/dns/dns.c:487:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
#  485|   	}
#  486|   
#  487|-> 	if (reply.length < 4) {
#  488|   		DBG_DEBUG("Short DNS packet: length=%zu\n", reply.length);
#  489|   		tevent_req_error(req, EINVAL);

Error: CPPCHECK_WARNING: [#def593]
samba-4.20.2-build/samba-4.20.2/libcli/dns/dns_lookup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def594]
samba-4.20.2-build/samba-4.20.2/libcli/dns/resolvconf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def595]
samba-4.20.2-build/samba-4.20.2/libcli/drsuapi/repl_decrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def596]
samba-4.20.2-build/samba-4.20.2/libcli/drsuapi/repl_decrypt.c: scope_hint: In function ‘drsuapi_decrypt_attribute’
samba-4.20.2-build/samba-4.20.2/libcli/drsuapi/repl_decrypt.c:211:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘plain_data’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/drsuapi/repl_decrypt.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/drsuapi/repl_decrypt.c:208:9: note: in expansion of macro ‘W_ERROR_NOT_OK_RETURN’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def597]
samba-4.20.2-build/samba-4.20.2/libcli/http/gensec/generic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def598]
samba-4.20.2-build/samba-4.20.2/libcli/http/http.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def599]
samba-4.20.2-build/samba-4.20.2/libcli/http/http_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def600]
samba-4.20.2-build/samba-4.20.2/libcli/ldap/ldap_message.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def601]
samba-4.20.2-build/samba-4.20.2/libcli/named_pipe_auth/npa_tstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def602]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/lmhosts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def603]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/namequery.c: scope_hint: In function ‘nbt_name_query_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def604]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/namequery.c: scope_hint: In function ‘nbt_name_status_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def605]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/namerefresh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def606]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/namerefresh.c: scope_hint: In function ‘nbt_name_refresh_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def607]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/nameregister.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def608]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/nameregister.c: scope_hint: In function ‘nbt_name_register_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def609]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/namerelease.c: scope_hint: In function ‘nbt_name_release_recv’
samba-4.20.2-build/samba-4.20.2/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: [#def610]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/nbtname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def611]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/nbtsocket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def612]
samba-4.20.2-build/samba-4.20.2/libcli/nbt/tools/nmblookup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def613]
samba-4.20.2-build/samba-4.20.2/libcli/netlogon/netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def614]
samba-4.20.2-build/samba-4.20.2/libcli/samsync/decrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def615]
samba-4.20.2-build/samba-4.20.2/libcli/samsync/decrypt.c:63: warning[uninitvar]: Uninitialized variable: lm_hash
#   61|   			memset(lm_hash.hash, '\0', sizeof(lm_hash.hash));
#   62|   		}
#   63|-> 		user->lmpassword = lm_hash;
#   64|   	}
#   65|   

Error: CPPCHECK_WARNING (CWE-457): [#def616]
samba-4.20.2-build/samba-4.20.2/libcli/samsync/decrypt.c:77: warning[uninitvar]: Uninitialized variable: nt_hash
#   75|   			memset(nt_hash.hash, '\0', sizeof(nt_hash.hash));
#   76|   		}
#   77|-> 		user->ntpassword = nt_hash;
#   78|   	}
#   79|   

Error: CPPCHECK_WARNING: [#def617]
samba-4.20.2-build/samba-4.20.2/libcli/security/access_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def618]
samba-4.20.2-build/samba-4.20.2/libcli/security/claims-conversions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def619]
samba-4.20.2-build/samba-4.20.2/libcli/security/conditional_ace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def620]
samba-4.20.2-build/samba-4.20.2/libcli/security/create_descriptor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def621]
samba-4.20.2-build/samba-4.20.2/libcli/security/display_sec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def622]
samba-4.20.2-build/samba-4.20.2/libcli/security/dom_sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def623]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def624]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl.c:1136:14: warning[deadcode.DeadStores]: Value stored to 'sddl_type' during its initialization is never read
# 1134|   	TALLOC_CTX *tmp_ctx;
# 1135|   	struct GUID_txt_buf object_buf, iobject_buf;
# 1136|-> 	const char *sddl_type="", *sddl_flags="", *sddl_mask="",
# 1137|   		*sddl_object="", *sddl_iobject="", *sddl_trustee="";
# 1138|   	tmp_ctx = talloc_new(mem_ctx);

Error: CLANG_WARNING: [#def625]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl.c:1136:29: warning[deadcode.DeadStores]: Value stored to 'sddl_flags' during its initialization is never read
# 1134|   	TALLOC_CTX *tmp_ctx;
# 1135|   	struct GUID_txt_buf object_buf, iobject_buf;
# 1136|-> 	const char *sddl_type="", *sddl_flags="", *sddl_mask="",
# 1137|   		*sddl_object="", *sddl_iobject="", *sddl_trustee="";
# 1138|   	tmp_ctx = talloc_new(mem_ctx);

Error: CLANG_WARNING: [#def626]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl.c:1136:45: warning[deadcode.DeadStores]: Value stored to 'sddl_mask' during its initialization is never read
# 1134|   	TALLOC_CTX *tmp_ctx;
# 1135|   	struct GUID_txt_buf object_buf, iobject_buf;
# 1136|-> 	const char *sddl_type="", *sddl_flags="", *sddl_mask="",
# 1137|   		*sddl_object="", *sddl_iobject="", *sddl_trustee="";
# 1138|   	tmp_ctx = talloc_new(mem_ctx);

Error: CLANG_WARNING: [#def627]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl.c:1137:39: warning[deadcode.DeadStores]: Value stored to 'sddl_trustee' during its initialization is never read
# 1135|   	struct GUID_txt_buf object_buf, iobject_buf;
# 1136|   	const char *sddl_type="", *sddl_flags="", *sddl_mask="",
# 1137|-> 		*sddl_object="", *sddl_iobject="", *sddl_trustee="";
# 1138|   	tmp_ctx = talloc_new(mem_ctx);
# 1139|   	if (tmp_ctx == NULL) {

Error: CPPCHECK_WARNING: [#def628]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl_conditional_ace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def629]
samba-4.20.2-build/samba-4.20.2/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): [#def630]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def631]
samba-4.20.2-build/samba-4.20.2/libcli/security/sddl_conditional_ace.c:3203:2: warning[deadcode.DeadStores]: Value stored to 'ok' is never read
# 3201|   	comp.offset += len;
# 3202|   
# 3203|-> 	ok = eat_whitespace(&comp, false);
# 3204|   	if (comp.offset + 6 > comp.length) {
# 3205|   		DBG_WARNING("invalid resource attribute (too short): '%s'\n",

Error: CPPCHECK_WARNING: [#def632]
samba-4.20.2-build/samba-4.20.2/libcli/security/secace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def633]
samba-4.20.2-build/samba-4.20.2/libcli/security/secdesc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def634]
samba-4.20.2-build/samba-4.20.2/libcli/security/security_descriptor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def635]
samba-4.20.2-build/samba-4.20.2/libcli/security/security_token.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def636]
samba-4.20.2-build/samba-4.20.2/libcli/security/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def637]
samba-4.20.2-build/samba-4.20.2/libcli/security/util_sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def638]
samba-4.20.2-build/samba-4.20.2/libcli/smb/reparse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def639]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb1cli_session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def640]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb1cli_trans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def641]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_create_blob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def642]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_negotiate_context.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def643]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_signing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def644]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2cli_create.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def645]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2cli_ioctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def646]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2cli_session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def647]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2cli_tcon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def648]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smbXcli_base.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def649]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def650]
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb_signing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def651]
samba-4.20.2-build/samba-4.20.2/libcli/smb/tstream_smbXcli_np.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def652]
samba-4.20.2-build/samba-4.20.2/libcli/smb/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def653]
samba-4.20.2-build/samba-4.20.2/libcli/smbreadline/smbreadline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def654]
samba-4.20.2-build/samba-4.20.2/libcli/smbreadline/smbreadline.c:100:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'line'
#   98|   				SAFE_FREE(line);
#   99|   			}
#  100|-> 			return ret;
#  101|   		}
#  102|   		if (callback) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
samba-4.20.2-build/samba-4.20.2/libcli/smbreadline/smbreadline.c: scope_hint: In function ‘smb_readline_replacement’
samba-4.20.2-build/samba-4.20.2/libcli/smbreadline/smbreadline.c:100:32: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smbreadline/smbreadline.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/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): [#def656]
samba-4.20.2-build/samba-4.20.2/libcli/smbreadline/smbreadline.c: scope_hint: In function ‘smb_readline’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def657]
samba-4.20.2-build/samba-4.20.2/libcli/tstream_binding_handle/tstream_binding_handle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def658]
samba-4.20.2-build/samba-4.20.2/libcli/util/doserr.c:108:2: warning[deadcode.DeadStores]: Value stored to 'idx' is never read
#  106|   	}
#  107|   
#  108|-> 	idx = 0;
#  109|   
#  110|   	switch W_ERROR_V(werror) {

Error: CPPCHECK_WARNING: [#def659]
samba-4.20.2-build/samba-4.20.2/libcli/util/tstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def660]
samba-4.20.2-build/samba-4.20.2/libcli/wsp/wsp_aqs.c: scope_hint: In function ‘create_restriction’
samba-4.20.2-build/samba-4.20.2/libcli/wsp/wsp_aqs.c:394:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘query’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/wsp/wsp_aqs.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:60: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def661]
samba-4.20.2-build/samba-4.20.2/libds/common/flag_mapping.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def662]
samba-4.20.2-build/samba-4.20.2/libgpo/gpext/gpext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def663]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_fetch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def664]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_filesync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def665]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_ini.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def666]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_ini.c:185:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  183|   
#  184|   	if (ret) {
#  185|-> 		*ret = (int)strtol(value, NULL, 10);
#  186|   	}
#  187|   	return NT_STATUS_OK;

Error: CPPCHECK_WARNING: [#def667]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_ldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def668]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_reg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def669]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_sec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def670]
samba-4.20.2-build/samba-4.20.2/libgpo/gpo_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def671]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def672]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def673]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c: scope_hint: In function ‘ndr_pull_time_t’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c:951:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tt’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def674]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c:1060:14: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 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-457): [#def675]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c: scope_hint: In function ‘ndr_pull_ipv6address’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c:1060:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr[i]’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c:1057:9: note: in expansion of macro ‘NDR_ERR_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_basic.c:518:9: note: in expansion of macro ‘NDR_PULL_CHECK_FLAGS’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def676]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_cab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def677]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_compression.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def678]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_dcerpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def679]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_dns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def680]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_dns_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def681]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_dnsp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def682]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_drsblobs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def683]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_drsuapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def684]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_krb5pac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def685]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_nbt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def686]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_negoex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def687]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def688]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_ntprinting.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def689]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_orpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def690]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_sec_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def691]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_spoolss_buf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def692]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def693]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_string.c: scope_hint: In function ‘ndr_pull_string_array’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_string.c:715:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_string.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_string.c:688:9: note: in expansion of macro ‘NDR_ERR_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.20.2-build/samba-4.20.2/librpc/ndr/libndr.h:470:19: note: in definition of macro ‘NDR_CHECK’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def694]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_witness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def695]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/ndr_xattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def696]
samba-4.20.2-build/samba-4.20.2/librpc/ndr/uuid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def697]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/binding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def698]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/binding_handle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def699]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcerpc_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def700]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcerpc_pkt_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def701]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcerpc_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def702]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def703]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_auth.c:335:14: warning[deadcode.DeadStores]: Value stored to 'pdu' during its initialization is never read
#  333|   	struct dcesrv_auth *auth = call->auth_state;
#  334|   	struct dcesrv_context_callbacks *cb = call->conn->dce_ctx->callbacks;
#  335|-> 	const char *pdu = "<unknown>";
#  336|   
#  337|   	switch (call->pkt.ptype) {

Error: CPPCHECK_WARNING: [#def704]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def705]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.c:2087:26: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 2085|   
# 2086|   	if (call->state_flags & DCESRV_CALL_STATE_FLAG_WINBIND_OFF) {
# 2087|-> 		bool winbind_active = !winbind_env_set();
# 2088|   		if (winbind_active) {
# 2089|   			DBG_DEBUG("turning winbind off\n");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def706]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dcerpc_server.h:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/lsa.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c: scope_hint: In function ‘dcesrv_lsa_DeleteObject’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:570:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:581:46: note: in expansion of macro ‘DCESRV_FAULT’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:262:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:2292:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:2292:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/lsa.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:262:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:581:46: note: in expansion of macro ‘DCESRV_FAULT’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:262:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:581:46: note: in expansion of macro ‘DCESRV_FAULT’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:262: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: CPPCHECK_WARNING: [#def707]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_handles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def708]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_reply.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def709]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/server/netlogon/schannel_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def710]
samba-4.20.2-build/samba-4.20.2/librpc/rpc/server/netlogon/schannel_util.c:162:14: warning[deadcode.DeadStores]: Value stored to 'reason' during its initialization is never read
#  160|   	unsigned int dbg_lvl = DBGLVL_DEBUG;
#  161|   	const char *opname = "<unknown>";
#  162|-> 	const char *reason = "<unknown>";
#  163|   
#  164|   	if (opnum < ndr_table_netlogon.num_calls) {

Error: CPPCHECK_WARNING: [#def711]
samba-4.20.2-build/samba-4.20.2/librpc/tools/ndrdump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def712]
samba-4.20.2-build/samba-4.20.2/librpc/wsp/wsp_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def713]
samba-4.20.2-build/samba-4.20.2/nsswitch/krb5_plugin/async_dns_krb5_locator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def714]
samba-4.20.2-build/samba-4.20.2/nsswitch/krb5_plugin/winbind_krb5_locator.c:351:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  349|   	}
#  350|   
#  351|-> 	if (!winbind_env_set()) {
#  352|   		if (!ask_winbind(realm, &kdc_name)) {
#  353|   #ifdef DEBUG_KRB5

Error: CPPCHECK_WARNING: [#def715]
samba-4.20.2-build/samba-4.20.2/nsswitch/libwbclient/tests/wbclient.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def716]
samba-4.20.2-build/samba-4.20.2/nsswitch/libwbclient/wbc_idmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def717]
samba-4.20.2-build/samba-4.20.2/nsswitch/libwbclient/wbc_pam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def718]
samba-4.20.2-build/samba-4.20.2/nsswitch/libwbclient/wbc_pwd.c:143:10: warning[deadcode.DeadStores]: Although the value stored to 'mem_q' is used in the enclosing expression, the value is never actually read from 'mem_q'
#  141|   	}
#  142|   
#  143|-> 	mem_p = mem_q = mem_buf;
#  144|   	for (i=0; i<g->num_gr_mem && mem_p; i++) {
#  145|   		mem_q = strchr(mem_p, ',');

Error: CPPCHECK_WARNING: [#def719]
samba-4.20.2-build/samba-4.20.2/nsswitch/libwbclient/wbc_sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def720]
samba-4.20.2-build/samba-4.20.2/nsswitch/pam_winbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING: [#def730]
samba-4.20.2-build/samba-4.20.2/nsswitch/wb_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def731]
samba-4.20.2-build/samba-4.20.2/nsswitch/wb_common.c:876:6: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  874|   	/* Check for our tricky environment variable */
#  875|   
#  876|-> 	if (winbind_env_set()) {
#  877|   		return NSS_STATUS_NOTFOUND;
#  878|   	}

Error: CPPCHECK_WARNING: [#def732]
samba-4.20.2-build/samba-4.20.2/nsswitch/wbinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def733]
samba-4.20.2-build/samba-4.20.2/nsswitch/wbinfo.c:228:2: warning[deadcode.DeadStores]: Value stored to 'wbc_status' is never read
#  226|   	struct wbcDomainSid sid;
#  227|   
#  228|-> 	wbc_status = wbcStringToSid(sid_str, &sid);
#  229|   	wbc_status = wbcGetpwsid(&sid, &pwd);
#  230|   	if (!WBC_ERROR_IS_OK(wbc_status)) {

Error: CPPCHECK_WARNING: [#def734]
samba-4.20.2-build/samba-4.20.2/nsswitch/winbind_nss_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def735]
samba-4.20.2-build/samba-4.20.2/source3/auth/auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def736]
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def737]
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_samba4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def738]
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def739]
samba-4.20.2-build/samba-4.20.2/libcli/security/dom_sid.h:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c: scope_hint: In function ‘copy_session_info_serverinfo_guest’
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c:1700:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c:1700:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c:1411:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:286:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c:2167:25: note: in expansion of macro ‘DBG_NOTICE’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_util.c:1700:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def740]
samba-4.20.2-build/samba-4.20.2/source3/auth/auth_winbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def741]
samba-4.20.2-build/samba-4.20.2/source3/auth/check_samsec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def742]
samba-4.20.2-build/samba-4.20.2/source3/auth/check_samsec.c:439:2: warning[deadcode.DeadStores]: Value stored to 'acct_ctrl' is never read
#  437|   	/* Clear out old sampass info. */
#  438|   	TALLOC_FREE(sampass);
#  439|-> 	acct_ctrl = 0;
#  440|   	username = NULL;
#  441|   	nt_pw = NULL;

Error: CPPCHECK_WARNING: [#def743]
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def744]
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passcheck’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:440:19: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv,  user,  password, 0)’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:437:34: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passcheck’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:91:24: note: in expansion of macro ‘False’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passcheck’
#  438|   	struct smb_pam_userdata *udp = SMB_MALLOC_P(struct smb_pam_userdata);
#  439|   
#  440|-> 	if (pconv == NULL || udp == NULL) {
#  441|   		SAFE_FREE(pconv);
#  442|   		SAFE_FREE(udp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_accountcheck’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:440:19: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv,  user, 0, 0)’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:437:34: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_accountcheck’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:91:24: note: in expansion of macro ‘False’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_accountcheck’
#  438|   	struct smb_pam_userdata *udp = SMB_MALLOC_P(struct smb_pam_userdata);
#  439|   
#  440|-> 	if (pconv == NULL || udp == NULL) {
#  441|   		SAFE_FREE(pconv);
#  442|   		SAFE_FREE(udp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def746]
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passchange’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:440:19: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_passchange_conv,  user,  oldpassword,  newpassword)’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:29: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:437:34: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passchange’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:243: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:89:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:699: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c:91:24: note: in expansion of macro ‘False’
samba-4.20.2-build/samba-4.20.2/source3/auth/pampass.c: scope_hint: In function ‘smb_pam_passchange’
#  438|   	struct smb_pam_userdata *udp = SMB_MALLOC_P(struct smb_pam_userdata);
#  439|   
#  440|-> 	if (pconv == NULL || udp == NULL) {
#  441|   		SAFE_FREE(pconv);
#  442|   		SAFE_FREE(udp);

Error: CPPCHECK_WARNING: [#def747]
samba-4.20.2-build/samba-4.20.2/source3/auth/pass_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def748]
samba-4.20.2-build/samba-4.20.2/source3/auth/server_info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def749]
samba-4.20.2-build/samba-4.20.2/source3/auth/token_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def750]
samba-4.20.2-build/samba-4.20.2/source3/auth/user_krb5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def751]
samba-4.20.2-build/samba-4.20.2/source3/auth/user_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def752]
samba-4.20.2-build/samba-4.20.2/source3/client/client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
samba-4.20.2-build/samba-4.20.2/source3/client/client.c: scope_hint: In function ‘completion_remote_filter’
samba-4.20.2-build/samba-4.20.2/source3/client/client.c:5871:44: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:66: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/client/client.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/client/client.c:5866:13: note: in expansion of macro ‘ISDOT’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def754]
samba-4.20.2-build/samba-4.20.2/source3/client/client.c: scope_hint: In function ‘remote_completion’
samba-4.20.2-build/samba-4.20.2/source3/client/client.c:6025:26: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(info.matches[1], (long unsigned int)info.samelen)’
samba-4.20.2-build/samba-4.20.2/source3/include/smb_macros.h:272:36: note: in definition of macro ‘SMB_STRNDUP’
samba-4.20.2-build/samba-4.20.2/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): [#def755]
samba-4.20.2-build/samba-4.20.2/source3/client/client.c: scope_hint: In function ‘completion_fn’
samba-4.20.2-build/samba-4.20.2/source3/client/client.c:6110:36: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.20.2-build/samba-4.20.2/source3/client/client.c:6081:27: note: in expansion of macro ‘SMB_MALLOC_ARRAY’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def756]
samba-4.20.2-build/samba-4.20.2/source3/client/clitar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def757]
samba-4.20.2-build/samba-4.20.2/source3/client/smbspool.c: scope_hint: In function ‘main’
samba-4.20.2-build/samba-4.20.2/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): [#def758]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def759]
samba-4.20.2-build/samba-4.20.2/source3/client/smbspool.c:813:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  811|   	 */
#  812|   	len = snprintf(title, sizeof(title), "%s", print_title);
#  813|-> 	if (len != strlen(print_title)) {
#  814|   		return 2;
#  815|   	}

Error: CPPCHECK_WARNING: [#def760]
samba-4.20.2-build/samba-4.20.2/source3/client/smbspool_krb5_wrapper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def761]
samba-4.20.2-build/samba-4.20.2/source3/client/smbspool_krb5_wrapper.c:49:14: warning[deadcode.DeadStores]: Value stored to 'prefix' during its initialization is never read
#   47|   static void cups_smb_debug(enum cups_smb_dbglvl_e lvl, const char *format, ...)
#   48|   {
#   49|-> 	const char *prefix = "DEBUG";
#   50|   	char buffer[1024];
#   51|   	va_list va;

Error: CPPCHECK_WARNING: [#def762]
samba-4.20.2-build/samba-4.20.2/source3/groupdb/mapping.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def763]
samba-4.20.2-build/samba-4.20.2/source3/groupdb/mapping_tdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def764]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def765]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:697:2: warning[deadcode.DeadStores]: Value stored to 'off' is never read
#  695|   
#  696|   	RSSVAL(ad->ad_data, off, h->adx_num_attrs);
#  697|-> 	off += 2;
#  698|   
#  699|   	ok = ad_pack_move_reso(handle, ad, fsp);

Error: CLANG_WARNING: [#def766]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2131:29: warning[core.NullDereference]: Access to field 'fsp' results in a dereference of a null pointer (loaded from variable 'smb_fname')
# 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): [#def767]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c: scope_hint: In function ‘ad_read_meta’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2131:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: 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: CLANG_WARNING: [#def768]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2313:37: warning[core.NullDereference]: Access to field 'base_name' results in a dereference of a null pointer (loaded from variable 'smb_fname')
# 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): [#def769]
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:243: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c: scope_hint: In function ‘ad_open’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2313:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:249:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:249:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2313:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:249:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def770]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2614:6: warning[core.NullDereference]: Access to field 'base_name' results in a dereference of a null pointer (loaded from variable 'smb_fname')
# 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): [#def771]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c: scope_hint: In function ‘ad_get_internal’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2614:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:249:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:257: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:230:29: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2226:24: note: in expansion of macro ‘NT_STATUS_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:51: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2613:17: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:249:29: note: in definition of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def772]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2630:5: warning[core.NullDereference]: Access to field 'base_name' results in a dereference of a null pointer (loaded from variable 'smb_fname')
# 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): [#def773]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2630:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200:20: note: in definition of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2628:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200:20: note: in definition of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200: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: CLANG_WARNING: [#def774]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2768:33: warning[core.NullDereference]: Access to field 'base_name' results in a dereference of a null pointer (loaded from variable 'smb_fname_in')
# 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): [#def775]
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c: scope_hint: In function ‘adouble_path’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2768:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname_in’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/lib/adouble.c:2594:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def776]
samba-4.20.2-build/samba-4.20.2/source3/lib/adt_tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def777]
samba-4.20.2-build/samba-4.20.2/source3/lib/background.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def778]
samba-4.20.2-build/samba-4.20.2/source3/lib/charcnv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def779]
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def780]
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c:2091:10: warning[core.NullDereference]: Access to field 'reqid' results in a dereference of a null pointer (loaded from variable 'hdr')
# 2089|   
# 2090|   	hdr = (struct ctdb_req_header *)pkt;
# 2091|-> 	reqid = hdr->reqid;
# 2092|   	num_pending = talloc_array_length(conn->pending);
# 2093|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def781]
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c: scope_hint: In function ‘ctdbd_conn_received’
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c:2108:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘state’
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c:34: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c:2081:9: note: in expansion of macro ‘SMB_ASSERT’
/usr/include/tevent.h:32: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/ctdbd_conn.c:22: included_from: Included from here.
# 2106|   	}
# 2107|   
# 2108|-> 	state->reply = talloc_move(state, &hdr);
# 2109|   	tevent_req_defer_callback(req, state->ev);
# 2110|   	tevent_req_done(req);

Error: CPPCHECK_WARNING: [#def782]
samba-4.20.2-build/samba-4.20.2/source3/lib/dbwrap/dbwrap_ctdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def783]
samba-4.20.2-build/samba-4.20.2/source3/lib/dbwrap/dbwrap_open.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def784]
samba-4.20.2-build/samba-4.20.2/source3/lib/dbwrap/dbwrap_watch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def785]
samba-4.20.2-build/samba-4.20.2/source3/lib/dbwrap/dbwrap_watch.c: scope_hint: In function ‘db_watched_record_fini_fetcher’
samba-4.20.2-build/samba-4.20.2/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): [#def786]
samba-4.20.2-build/samba-4.20.2/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: [#def787]
samba-4.20.2-build/samba-4.20.2/source3/lib/eventlog/eventlog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def788]
samba-4.20.2-build/samba-4.20.2/source3/lib/filename_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def789]
samba-4.20.2-build/samba-4.20.2/source3/lib/g_lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def790]
samba-4.20.2-build/samba-4.20.2/source3/lib/gencache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def791]
samba-4.20.2-build/samba-4.20.2/source3/lib/interface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def792]
samba-4.20.2-build/samba-4.20.2/source3/lib/messages.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CPPCHECK_WARNING: [#def794]
samba-4.20.2-build/samba-4.20.2/source3/lib/messages_ctdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def795]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def796]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c: scope_hint: In function ‘ms_fnmatch_core’
samba-4.20.2-build/samba-4.20.2/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): [#def797]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:67:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:27: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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): [#def798]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:75:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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): [#def799]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:75:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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): [#def800]
samba-4.20.2-build/samba-4.20.2/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): [#def801]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:82:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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): [#def802]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:85:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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): [#def803]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:96:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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): [#def804]
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:96:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/ms_fnmatch.c:212:25: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def805]
samba-4.20.2-build/samba-4.20.2/source3/lib/namemap_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def806]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/cm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def807]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/common.c: scope_hint: In function ‘popt_common_callback’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def808]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/common.c:175:2: warning[unix.Malloc]: Use of memory after it is freed
#  173|   	}
#  174|   
#  175|-> 	return p;
#  176|   }
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/common.c: scope_hint: In function ‘netapi_save_file_ucs2’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def810]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/file/file_close.c:54:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   52|   
#   53|   	poptSetOtherOptionHelp(pc, "hostname fileid");
#   54|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   55|   	}
#   56|   

Error: CLANG_WARNING: [#def811]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/file/file_enum.c:64:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   62|   
#   63|   	poptSetOtherOptionHelp(pc, "hostname basepath username level");
#   64|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   65|   	}
#   66|   

Error: CLANG_WARNING: [#def812]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/file/file_getinfo.c:59:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   57|   
#   58|   	poptSetOtherOptionHelp(pc, "hostname fileid");
#   59|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   60|   	}
#   61|   

Error: CLANG_WARNING: [#def813]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/getdc/getdc.c:56:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   54|   
#   55|   	poptSetOtherOptionHelp(pc, "hostname domainname");
#   56|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   57|   	}
#   58|   

Error: CLANG_WARNING: [#def814]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_add.c:56:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   54|   
#   55|   	poptSetOtherOptionHelp(pc, "hostname groupname");
#   56|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   57|   	}
#   58|   

Error: CLANG_WARNING: [#def815]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_adduser.c:55:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   53|   
#   54|   	poptSetOtherOptionHelp(pc, "hostname groupname username");
#   55|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   56|   	}
#   57|   

Error: CLANG_WARNING: [#def816]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_del.c:54:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   52|   
#   53|   	poptSetOtherOptionHelp(pc, "hostname groupname");
#   54|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   55|   	}
#   56|   

Error: CLANG_WARNING: [#def817]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_deluser.c:55:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   53|   
#   54|   	poptSetOtherOptionHelp(pc, "hostname groupname username");
#   55|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   56|   	}
#   57|   

Error: CLANG_WARNING: [#def818]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_enum.c:65:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   63|   
#   64|   	poptSetOtherOptionHelp(pc, "hostname level");
#   65|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   66|   	}
#   67|   

Error: CLANG_WARNING: [#def819]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_getinfo.c:61:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   59|   
#   60|   	poptSetOtherOptionHelp(pc, "hostname groupname level");
#   61|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   62|   	}
#   63|   

Error: CLANG_WARNING: [#def820]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_getusers.c:63:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   61|   
#   62|   	poptSetOtherOptionHelp(pc, "hostname groupname level");
#   63|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   64|   	}
#   65|   

Error: CLANG_WARNING: [#def821]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_setinfo.c:64:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   62|   
#   63|   	poptSetOtherOptionHelp(pc, "hostname groupname level option");
#   64|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   65|   	}
#   66|   

Error: CLANG_WARNING: [#def822]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/group/group_setusers.c:63:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   61|   
#   62|   	poptSetOtherOptionHelp(pc, "hostname groupname level");
#   63|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   64|   	}
#   65|   

Error: CLANG_WARNING: [#def823]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/join/djoin.c:81:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   79|   
#   80|   	poptSetOtherOptionHelp(pc, "[provision|requestodj]");
#   81|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   82|   	}
#   83|   

Error: CLANG_WARNING: [#def824]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/join/getjoininformation.c:56:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   54|   
#   55|   	poptSetOtherOptionHelp(pc, "hostname");
#   56|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   57|   	}
#   58|   

Error: CLANG_WARNING: [#def825]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/join/netdomjoin.c:69:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   67|   
#   68|   	poptSetOtherOptionHelp(pc, "hostname");
#   69|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   70|   	}
#   71|   

Error: CLANG_WARNING: [#def826]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/join/provision_computer_account.c:68:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   66|   
#   67|   	poptSetOtherOptionHelp(pc, "domain machine_name");
#   68|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   69|   	}
#   70|   

Error: CLANG_WARNING: [#def827]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/join/rename_machine.c:56:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   54|   
#   55|   	poptSetOtherOptionHelp(pc, "hostname newmachinename");
#   56|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   57|   	}
#   58|   

Error: CLANG_WARNING: [#def828]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/join/request_offline_domain_join.c:60:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   58|   
#   59|   	poptSetOtherOptionHelp(pc, "");
#   60|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   61|   	}
#   62|   

Error: CLANG_WARNING: [#def829]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_add.c:60:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   58|   
#   59|   	poptSetOtherOptionHelp(pc, "hostname groupname comment");
#   60|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   61|   	}
#   62|   

Error: CLANG_WARNING: [#def830]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_addmembers.c:61:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   59|   
#   60|   	poptSetOtherOptionHelp(pc, "hostname groupname member1 member2 ...");
#   61|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   62|   	}
#   63|   

Error: CLANG_WARNING: [#def831]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_del.c:54:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   52|   
#   53|   	poptSetOtherOptionHelp(pc, "hostname groupname");
#   54|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   55|   	}
#   56|   

Error: CLANG_WARNING: [#def832]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_delmembers.c:61:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   59|   
#   60|   	poptSetOtherOptionHelp(pc, "hostname groupname member1 member2 ...");
#   61|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   62|   	}
#   63|   

Error: CLANG_WARNING: [#def833]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_enum.c:62:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   60|   
#   61|   	poptSetOtherOptionHelp(pc, "hostname level");
#   62|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   63|   	}
#   64|   

Error: CLANG_WARNING: [#def834]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_getinfo.c:59:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   57|   
#   58|   	poptSetOtherOptionHelp(pc, "hostname groupname level");
#   59|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   60|   	}
#   61|   

Error: CLANG_WARNING: [#def835]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_getmembers.c:66:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   64|   
#   65|   	poptSetOtherOptionHelp(pc, "hostname groupname level");
#   66|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   67|   	}
#   68|   

Error: CLANG_WARNING: [#def836]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_setinfo.c:89:3: warning[deadcode.DeadStores]: Value stored to 'level' is never read
#   87|   
#   88|   	if (poptPeekArg(pc)) {
#   89|-> 		level = atoi(poptGetArg(pc));
#   90|   	}
#   91|   

Error: CLANG_WARNING: [#def837]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/localgroup/localgroup_setmembers.c:62:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   60|   
#   61|   	poptSetOtherOptionHelp(pc, "hostname groupname member1 member2 ...");
#   62|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   63|   	}
#   64|   

Error: CLANG_WARNING: [#def838]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/netlogon/netlogon_control.c:60:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   58|   
#   59|   	poptSetOtherOptionHelp(pc, "hostname");
#   60|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   61|   	}
#   62|   

Error: CLANG_WARNING: [#def839]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/netlogon/netlogon_control2.c:61:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   59|   
#   60|   	poptSetOtherOptionHelp(pc, "hostname");
#   61|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   62|   	}
#   63|   

Error: CLANG_WARNING: [#def840]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/netlogon/nltest.c:482:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#  480|   
#  481|   	poptSetOtherOptionHelp(pc, "<options>");
#  482|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#  483|   	}
#  484|   

Error: CLANG_WARNING: [#def841]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/server/remote_tod.c:54:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   52|   
#   53|   	poptSetOtherOptionHelp(pc, "hostname");
#   54|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   55|   	}
#   56|   

Error: CLANG_WARNING: [#def842]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/server/server_getinfo.c:60:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   58|   
#   59|   	poptSetOtherOptionHelp(pc, "hostname level");
#   60|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   61|   	}
#   62|   

Error: CLANG_WARNING: [#def843]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/share/share_add.c:58:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   56|   
#   57|   	poptSetOtherOptionHelp(pc, "hostname sharename path");
#   58|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   59|   	}
#   60|   

Error: CLANG_WARNING: [#def844]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/share/share_del.c:54:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   52|   
#   53|   	poptSetOtherOptionHelp(pc, "hostname sharename");
#   54|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   55|   	}
#   56|   

Error: CLANG_WARNING: [#def845]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/share/share_enum.c:63:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   61|   
#   62|   	poptSetOtherOptionHelp(pc, "hostname level");
#   63|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   64|   	}
#   65|   

Error: CLANG_WARNING: [#def846]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/share/share_getinfo.c:62:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   60|   
#   61|   	poptSetOtherOptionHelp(pc, "hostname sharename level");
#   62|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   63|   	}
#   64|   

Error: CLANG_WARNING: [#def847]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/share/share_setinfo.c:60:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   58|   
#   59|   	poptSetOtherOptionHelp(pc, "hostname sharename comment");
#   60|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   61|   	}
#   62|   

Error: CLANG_WARNING: [#def848]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/shutdown/shutdown_abort.c:53:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   51|   
#   52|   	poptSetOtherOptionHelp(pc, "hostname");
#   53|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   54|   	}
#   55|   

Error: CLANG_WARNING: [#def849]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/shutdown/shutdown_init.c:55:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   53|   
#   54|   	poptSetOtherOptionHelp(pc, "hostname message timeout");
#   55|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   56|   	}
#   57|   

Error: CLANG_WARNING: [#def850]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_add.c:57:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   55|   
#   56|   	poptSetOtherOptionHelp(pc, "hostname username password");
#   57|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   58|   	}
#   59|   

Error: CLANG_WARNING: [#def851]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_chgpwd.c:56:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   54|   
#   55|   	poptSetOtherOptionHelp(pc, "hostname username old_password new_password");
#   56|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   57|   	}
#   58|   

Error: CLANG_WARNING: [#def852]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_del.c:54:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   52|   
#   53|   	poptSetOtherOptionHelp(pc, "hostname username");
#   54|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   55|   	}
#   56|   

Error: CLANG_WARNING: [#def853]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_dispinfo.c:59:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   57|   
#   58|   	poptSetOtherOptionHelp(pc, "hostname");
#   59|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   60|   	}
#   61|   

Error: CLANG_WARNING: [#def854]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_enum.c:65:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   63|   
#   64|   	poptSetOtherOptionHelp(pc, "hostname level");
#   65|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   66|   	}
#   67|   

Error: CLANG_WARNING: [#def855]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_getgroups.c:62:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   60|   
#   61|   	poptSetOtherOptionHelp(pc, "hostname username level");
#   62|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   63|   	}
#   64|   

Error: CLANG_WARNING: [#def856]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_getinfo.c:68:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   66|   
#   67|   	poptSetOtherOptionHelp(pc, "hostname username level");
#   68|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   69|   	}
#   70|   

Error: CLANG_WARNING: [#def857]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_getlocalgroups.c:62:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   60|   
#   61|   	poptSetOtherOptionHelp(pc, "hostname username");
#   62|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   63|   	}
#   64|   

Error: CLANG_WARNING: [#def858]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_modalsget.c:61:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   59|   
#   60|   	poptSetOtherOptionHelp(pc, "hostname level");
#   61|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   62|   	}
#   63|   

Error: CLANG_WARNING: [#def859]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_modalsset.c:63:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   61|   
#   62|   	poptSetOtherOptionHelp(pc, "hostname level value");
#   63|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   64|   	}
#   65|   

Error: CLANG_WARNING: [#def860]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_setgroups.c:63:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   61|   
#   62|   	poptSetOtherOptionHelp(pc, "hostname username group1 group2 ...");
#   63|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   64|   	}
#   65|   

Error: CLANG_WARNING: [#def861]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/examples/user/user_setinfo.c:75:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   73|   
#   74|   	poptSetOtherOptionHelp(pc, "hostname username level");
#   75|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   76|   	}
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def862]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/group.c: scope_hint: In function ‘NetGroupAdd_r’
samba-4.20.2-build/samba-4.20.2/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): [#def863]
samba-4.20.2-build/samba-4.20.2/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): [#def864]
samba-4.20.2-build/samba-4.20.2/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): [#def865]
samba-4.20.2-build/samba-4.20.2/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): [#def866]
samba-4.20.2-build/samba-4.20.2/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): [#def867]
samba-4.20.2-build/samba-4.20.2/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): [#def868]
samba-4.20.2-build/samba-4.20.2/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): [#def869]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/group.c: scope_hint: In function ‘NetGroupSetUsers_r’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/group.c:1717:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def870]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def871]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/joindomain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def872]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/joindomain.c:1130:4: warning[deadcode.DeadStores]: Value stored to 'werr' is never read
# 1128|   		b64_bin_data_str = base64_encode_data_blob(ctx, blob);
# 1129|   		if (b64_bin_data_str == NULL) {
# 1130|-> 			werr = WERR_NOT_ENOUGH_MEMORY;
# 1131|   		}
# 1132|   		*r->out.compose_text_data = b64_bin_data_str;

Error: CPPCHECK_WARNING: [#def873]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def874]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c:417:4: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'entries_read')
#  415|   			W_ERROR_HAVE_NO_MEMORY(g0.lgrpi0_name);
#  416|   
#  417|-> 			ADD_TO_ARRAY(mem_ctx, struct LOCALGROUP_INFO_0, g0,
#  418|   				     (struct LOCALGROUP_INFO_0 **)buffer, entries_read);
#  419|   

Error: CLANG_WARNING: [#def875]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c:423:47: warning[core.NullDereference]: Dereference of null pointer
#  421|   		case 1:
#  422|   			g1.lgrpi1_name		= talloc_strdup(mem_ctx, alias_name);
#  423|-> 			g1.lgrpi1_comment	= talloc_strdup(mem_ctx, info->description.string);
#  424|   			W_ERROR_HAVE_NO_MEMORY(g1.lgrpi1_name);
#  425|   

Error: CLANG_WARNING: [#def876]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c:426:4: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'entries_read')
#  424|   			W_ERROR_HAVE_NO_MEMORY(g1.lgrpi1_name);
#  425|   
#  426|-> 			ADD_TO_ARRAY(mem_ctx, struct LOCALGROUP_INFO_1, g1,
#  427|   				     (struct LOCALGROUP_INFO_1 **)buffer, entries_read);
#  428|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def877]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c: scope_hint: In function ‘NetLocalGroupModifyMembers_r’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c:1117:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/localgroup.c:1085:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:260: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def878]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/netapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def879]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def880]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/share.c: scope_hint: In function ‘map_srvsvc_share_info_to_SHARE_INFO_buffer’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/share.c:97:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s501’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:260: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/share.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.20.2-build/samba-4.20.2/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): [#def881]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/share.c:110:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s1005’
samba-4.20.2-build/samba-4.20.2/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.20.2-build/samba-4.20.2/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): [#def882]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/tests/common.c: scope_hint: In function ‘popt_common_callback’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def883]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/tests/netapitest.c:53:9: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#   51|   
#   52|   	poptSetOtherOptionHelp(pc, "hostname");
#   53|-> 	while((opt = poptGetNextOpt(pc)) != -1) {
#   54|   	}
#   55|   

Error: CLANG_WARNING: [#def884]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/tests/netgroup.c:182:21: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  180|   				}
#  181|   
#  182|-> 				if (username && strcasecmp(current_name, username) == 0) {
#  183|   					found_user = 1;
#  184|   				}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def885]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/tests/netgroup.c: scope_hint: In function ‘test_netgroupgetusers’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def886]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def887]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_1’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:848:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:844:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:844:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:257: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def888]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_2’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:871:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:866:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:866:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/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): [#def889]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_3’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:909:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:905:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:905:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/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): [#def890]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_4’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:955:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:951:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:951:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def891]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1018:43: warning[core.NullDereference]: Dereference of null pointer
# 1016|   	ZERO_STRUCTP(i);
# 1017|   
# 1018|-> 	i->usri11_name		= talloc_strdup(mem_ctx, i21->account_name.string);
# 1019|   	NT_STATUS_HAVE_NO_MEMORY(i->usri11_name);
# 1020|   	i->usri11_comment	= talloc_strdup(mem_ctx, i21->description.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def892]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_11’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1023:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1016:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1016:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def893]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1052:43: warning[core.NullDereference]: Dereference of null pointer
# 1050|   	ZERO_STRUCTP(i);
# 1051|   
# 1052|-> 	i->usri20_name		= talloc_strdup(mem_ctx, i21->account_name.string);
# 1053|   	NT_STATUS_HAVE_NO_MEMORY(i->usri20_name);
# 1054|   	i->usri20_comment	= talloc_strdup(mem_ctx, i21->description.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def894]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_20’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1056:69: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1050:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1050:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def895]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1074:43: warning[core.NullDereference]: Dereference of null pointer
# 1072|   	ZERO_STRUCTP(i);
# 1073|   
# 1074|-> 	i->usri23_name		= talloc_strdup(mem_ctx, i21->account_name.string);
# 1075|   	NT_STATUS_HAVE_NO_MEMORY(i->usri23_name);
# 1076|   	i->usri23_comment	= talloc_strdup(mem_ctx, i21->description.string);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def896]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘info21_to_USER_INFO_23’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1078:69: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i21’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1072:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:1072:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def897]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:2814:4: warning[deadcode.DeadStores]: Value stored to 'werr' is never read
# 2812|   		case 1006:
# 2813|   		case 1007:
# 2814|-> 			werr = WERR_NOT_SUPPORTED;
# 2815|   			break;
# 2816|   		default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def898]
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c: scope_hint: In function ‘NetUserSetGroups_r’
samba-4.20.2-build/samba-4.20.2/source3/lib/netapi/user.c:3207:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: 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): [#def899]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def900]
samba-4.20.2-build/samba-4.20.2/source3/lib/privileges.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def901]
samba-4.20.2-build/samba-4.20.2/source3/lib/recvfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def902]
samba-4.20.2-build/samba-4.20.2/source3/lib/sharesec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def903]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def904]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbldap.c:1118:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1116|   
# 1117|   #ifdef HAVE_UNIXSOCKET
# 1118|-> 		if (opt_rc == 0 && addr.sun_family == AF_UNIX)
# 1119|   			reopen = True;
# 1120|   #endif

Error: CLANG_WARNING: [#def905]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbldap.c:1741:6: warning[core.NullDereference]: Access to field 'bind_secret' results in a dereference of a null pointer
# 1739|   	smbldap_close(*ldap_state);
# 1740|   
# 1741|-> 	if ((*ldap_state)->bind_secret) {
# 1742|   		memset((*ldap_state)->bind_secret, '\0', strlen((*ldap_state)->bind_secret));
# 1743|   	}

Error: CPPCHECK_WARNING: [#def906]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbrun.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def907]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbrun.c: scope_hint: In function ‘smbrun_internal’
samba-4.20.2-build/samba-4.20.2/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): [#def908]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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): [#def909]
samba-4.20.2-build/samba-4.20.2/source3/lib/smbrun.c: scope_hint: In function ‘smbrunsecret’
samba-4.20.2-build/samba-4.20.2/source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/smbrun.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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: [#def910]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def911]
samba-4.20.2-build/samba-4.20.2/source3/lib/string_replace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def912]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def913]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas_linux.c:84:9: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
#   82|   				   path, bdev, (unsigned)geteuid()));
#   83|   
#   84|-> 			if ((ret = quotactl(QCMD(Q_GETQUOTA, USRQUOTA), bdev,
#   85|   					    geteuid(), (caddr_t)&D)) == 0) {
#   86|   				qflags |= QUOTAS_DENY_DISK;

Error: CLANG_WARNING: [#def914]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas_linux.c:97:9: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
#   95|   				   path, bdev, (unsigned)getegid()));
#   96|   
#   97|-> 			if ((ret = quotactl(QCMD(Q_GETQUOTA, GRPQUOTA), bdev,
#   98|   					    getegid(), (caddr_t)&D)) == 0) {
#   99|   				qflags |= QUOTAS_DENY_DISK;

Error: CLANG_WARNING: [#def915]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas_xfs.c:240:6: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  238|   
#  239|   				if (q_off != 0) {
#  240|-> 					ret = quotactl(QCMD(Q_XQUOTAOFF,USRQUOTA),bdev, -1, (caddr_t)&q_off);
#  241|   				} else {
#  242|   					ret = 0;

Error: CLANG_WARNING: [#def916]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas_xfs.c:242:6: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  240|   					ret = quotactl(QCMD(Q_XQUOTAOFF,USRQUOTA),bdev, -1, (caddr_t)&q_off);
#  241|   				} else {
#  242|-> 					ret = 0;
#  243|   				}
#  244|   

Error: CLANG_WARNING: [#def917]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas_xfs.c:298:6: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  296|   
#  297|   				if (q_off != 0) {
#  298|-> 					ret = quotactl(QCMD(Q_XQUOTAOFF,GRPQUOTA),bdev, -1, (caddr_t)&q_off);
#  299|   				} else {
#  300|   					ret = 0;

Error: CLANG_WARNING: [#def918]
samba-4.20.2-build/samba-4.20.2/source3/lib/sysquotas_xfs.c:300:6: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  298|   					ret = quotactl(QCMD(Q_XQUOTAOFF,GRPQUOTA),bdev, -1, (caddr_t)&q_off);
#  299|   				} else {
#  300|-> 					ret = 0;
#  301|   				}
#  302|   

Error: CLANG_WARNING: [#def919]
samba-4.20.2-build/samba-4.20.2/source3/lib/system_smbd.c:181:16: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  179|   	 * always determined by the info3 coming back from auth3 or the
#  180|   	 * PAC. */
#  181|-> 	winbind_env = winbind_env_set();
#  182|   	(void)winbind_off();
#  183|   

Error: CPPCHECK_WARNING: [#def920]
samba-4.20.2-build/samba-4.20.2/source3/lib/tldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def921]
samba-4.20.2-build/samba-4.20.2/source3/lib/tldap_gensec_bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def922]
samba-4.20.2-build/samba-4.20.2/source3/lib/tldap_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def923]
samba-4.20.2-build/samba-4.20.2/source3/lib/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def924]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_ea.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def925]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def926]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_matching.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def927]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_nttoken.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def928]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_path.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def929]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_sd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def930]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def931]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_sock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def932]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_sock.c: scope_hint: In function ‘receive_smb_raw’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def933]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_sock.c:351:3: warning[deadcode.DeadStores]: Value stored to 'sock' is never read
#  349|   	if (sock != -1) {
#  350|   		close(sock);
#  351|-> 		sock = -1;
#  352|   	}
#  353|   	return ret;

Error: CPPCHECK_WARNING: [#def934]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_str.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def935]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_tdb.c: scope_hint: In function ‘tdb_unpack’
samba-4.20.2-build/samba-4.20.2/source3/lib/util_tdb.c:191:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/util_tdb.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/lib/util_tdb.c:196:39: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def936]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_transfer_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def937]
samba-4.20.2-build/samba-4.20.2/source3/lib/util_tsock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def938]
samba-4.20.2-build/samba-4.20.2/source3/lib/wins_srv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def939]
samba-4.20.2-build/samba-4.20.2/source3/lib/xattr_tdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def940]
samba-4.20.2-build/samba-4.20.2/source3/lib/xattr_tdb.c:199:14: warning[core.NullDereference]: Access to field 'num_eas' results in a dereference of an undefined pointer value (loaded from variable 'attribs')
#  197|   	}
#  198|   
#  199|-> 	for (i=0; i<attribs->num_eas; i++) {
#  200|   		if (strcmp(attribs->eas[i].name, name) == 0) {
#  201|   			break;

Error: CLANG_WARNING: [#def941]
samba-4.20.2-build/samba-4.20.2/source3/lib/xattr_tdb.c:257:14: warning[core.NullDereference]: Access to field 'num_eas' results in a dereference of an undefined pointer value (loaded from variable 'attribs')
#  255|   	}
#  256|   
#  257|-> 	for (i=0; i<attribs->num_eas; i++) {
#  258|   		if (strcmp(attribs->eas[i].name, name) == 0) {
#  259|   			if (flags & XATTR_CREATE) {

Error: CLANG_WARNING: [#def942]
samba-4.20.2-build/samba-4.20.2/source3/lib/xattr_tdb.c:340:6: warning[core.NullDereference]: Access to field 'num_eas' results in a dereference of an undefined pointer value (loaded from variable 'attribs')
#  338|   
#  339|   	DEBUG(10, ("xattr_tdb_listattr: Found %d xattrs\n",
#  340|-> 		   attribs->num_eas));
#  341|   
#  342|   	for (i=0; i<attribs->num_eas; i++) {

Error: CLANG_WARNING: [#def943]
samba-4.20.2-build/samba-4.20.2/source3/lib/xattr_tdb.c:342:14: warning[core.NullDereference]: Access to field 'num_eas' results in a dereference of an undefined pointer value (loaded from variable 'attribs')
#  340|   		   attribs->num_eas));
#  341|   
#  342|-> 	for (i=0; i<attribs->num_eas; i++) {
#  343|   		size_t tmp;
#  344|   

Error: CLANG_WARNING: [#def944]
samba-4.20.2-build/samba-4.20.2/source3/lib/xattr_tdb.c:416:14: warning[core.NullDereference]: Access to field 'num_eas' results in a dereference of an undefined pointer value (loaded from variable 'attribs')
#  414|   	}
#  415|   
#  416|-> 	for (i=0; i<attribs->num_eas; i++) {
#  417|   		if (strcmp(attribs->eas[i].name, name) == 0) {
#  418|   			break;

Error: CPPCHECK_WARNING: [#def945]
samba-4.20.2-build/samba-4.20.2/source3/libads/ads_struct.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def946]
samba-4.20.2-build/samba-4.20.2/source3/libads/cldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def947]
samba-4.20.2-build/samba-4.20.2/source3/libads/disp_sec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def948]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def949]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap.c:2061:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 2059|   	new_ln = wkn_ln - bind_ln;
# 2060|   
# 2061|-> 	ret = SMB_STRDUP(wkn_dn_exp[0]);
# 2062|   	if (!ret) {
# 2063|   		goto out;

Error: CPPCHECK_WARNING: [#def950]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap_printer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def951]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap_schema.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def952]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap_schema.c:289:13: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<' is a garbage value
#  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-457): [#def953]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap_schema.c: scope_hint: In function ‘ads_check_posix_schema_mapping’
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap_schema.c:289:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_names’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def954]
samba-4.20.2-build/samba-4.20.2/source3/libads/ldap_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def955]
samba-4.20.2-build/samba-4.20.2/source3/libads/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def956]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def957]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c:546:24: warning[core.NullDereference]: Access to field 'version' results in a dereference of a null pointer (loaded from variable 'new_utdv')
#  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): [#def958]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c: scope_hint: In function ‘libnet_dssync_getncchanges’
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c:546:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:260: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def959]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c:571:24: warning[core.NullDereference]: Access to field 'version' results in a dereference of a null pointer (loaded from variable 'new_utdv')
#  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): [#def960]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c:571:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.20.2-build/samba-4.20.2/libcli/util/werror.h:44:27: note: in expansion of macro ‘W_ERROR_V’
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync.c:500:22: note: in expansion of macro ‘W_ERROR_IS_OK’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def961]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_dssync_passdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def962]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_join.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def963]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_join.c:290:11: warning[core.NullDereference]: Dereference of null pointer
#  288|   	if (!r->out.netbios_domain_name) {
#  289|   		r->out.netbios_domain_name = talloc_strdup(mem_ctx,
#  290|-> 							   r->in.ads->server.workgroup);
#  291|   		ADS_ERROR_HAVE_NO_MEMORY(r->out.netbios_domain_name);
#  292|   	}

Error: CLANG_WARNING: [#def964]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_join.c:296:14: warning[core.NullDereference]: Dereference of null pointer
#  294|   	if (!r->out.dns_domain_name) {
#  295|   		r->out.dns_domain_name = talloc_strdup(mem_ctx,
#  296|-> 						       r->in.ads->config.realm);
#  297|   		ADS_ERROR_HAVE_NO_MEMORY(r->out.dns_domain_name);
#  298|   	}

Error: CLANG_WARNING: [#def965]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_join.c:1681:2: warning[deadcode.DeadStores]: Value stored to 'old_timeout' is never read
# 1679|   
# 1680|   error:
# 1681|-> 	old_timeout = rpccli_set_timeout(pipe_hnd, old_timeout);
# 1682|   
# 1683|   	if (!NT_STATUS_IS_OK(status)) {

Error: CPPCHECK_WARNING: [#def966]
samba-4.20.2-build/samba-4.20.2/source3/libnet/libnet_join_offline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def967]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/async_smb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def968]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/auth_generic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def969]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def970]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c: scope_hint: In function ‘cli_smb2_set_info_fnum_send’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:618:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:257: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:29: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:220:37: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def971]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:629:3: warning[core.NullDereference]: Access to field 'fid_persistent' results in a dereference of a null pointer (loaded from variable 'ph')
#  627|   		in_input_buffer,
#  628|   		in_additional_info,
#  629|-> 		ph->fid_persistent,
#  630|   		ph->fid_volatile);
#  631|   	if (tevent_req_nomem(subreq, req)) {

Error: CLANG_WARNING: [#def972]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:1818:22: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1816|   	ZERO_STRUCTP(sbuf);
# 1817|   
# 1818|-> 	sbuf->st_ex_atime = nt_time_to_unix_timespec(cr.last_access_time);
# 1819|   	sbuf->st_ex_mtime = nt_time_to_unix_timespec(cr.last_write_time);
# 1820|   	sbuf->st_ex_ctime = nt_time_to_unix_timespec(cr.change_time);

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

Error: CLANG_WARNING: [#def974]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:1874:3: warning[core.NullDereference]: Access to field 'fid_persistent' results in a dereference of a null pointer (loaded from variable 'ph')
# 1872|   		in_additional_info,
# 1873|   		in_flags,
# 1874|-> 		ph->fid_persistent,
# 1875|   		ph->fid_volatile);
# 1876|   	if (tevent_req_nomem(subreq, req)) {

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

Error: CLANG_WARNING: [#def976]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:4788:3: warning[core.NullDereference]: Access to field 'fid_persistent' results in a dereference of a null pointer (loaded from variable 'ph')
# 4786|   		cli->smb2.tcon,
# 4787|   		buffer_size,
# 4788|-> 		ph->fid_persistent,
# 4789|   		ph->fid_volatile,
# 4790|   		completion_filter,

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

Error: CLANG_WARNING: [#def978]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cli_smb2_fnum.c:4982:3: warning[core.NullDereference]: Access to field 'fid_persistent' results in a dereference of a null pointer (loaded from variable 'ph')
# 4980|   		cli->smb2.session,
# 4981|   		cli->smb2.tcon,
# 4982|-> 		ph->fid_persistent,
# 4983|   		ph->fid_volatile,
# 4984|   		ctl_code,

Error: CLANG_WARNING: [#def979]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliconnect.c:754:3: warning[deadcode.DeadStores]: Value stored to 'in_mpx_max' is never read
#  752|   
#  753|   		in_buf_size = CLI_BUFFER_SIZE;
#  754|-> 		in_mpx_max = smbXcli_conn_max_requests(state->cli->conn);
#  755|   		in_vc_num = cli_state_get_vc_num(state->cli);
#  756|   		in_sess_key = smb1cli_conn_server_session_key(state->cli->conn);

Error: CLANG_WARNING: [#def980]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliconnect.c:755:3: warning[deadcode.DeadStores]: Value stored to 'in_vc_num' is never read
#  753|   		in_buf_size = CLI_BUFFER_SIZE;
#  754|   		in_mpx_max = smbXcli_conn_max_requests(state->cli->conn);
#  755|-> 		in_vc_num = cli_state_get_vc_num(state->cli);
#  756|   		in_sess_key = smb1cli_conn_server_session_key(state->cli->conn);
#  757|   		in_capabilities = cli_session_setup_capabilities(state->cli,

Error: CLANG_WARNING: [#def981]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliconnect.c:756:3: warning[deadcode.DeadStores]: Value stored to 'in_sess_key' is never read
#  754|   		in_mpx_max = smbXcli_conn_max_requests(state->cli->conn);
#  755|   		in_vc_num = cli_state_get_vc_num(state->cli);
#  756|-> 		in_sess_key = smb1cli_conn_server_session_key(state->cli->conn);
#  757|   		in_capabilities = cli_session_setup_capabilities(state->cli,
#  758|   								CAP_EXTENDED_SECURITY);

Error: CLANG_WARNING: [#def982]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliconnect.c:1640:2: warning[deadcode.DeadStores]: Value stored to 'in_mpx_max' is never read
# 1638|   
# 1639|   	in_buf_size = CLI_BUFFER_SIZE;
# 1640|-> 	in_mpx_max = smbXcli_conn_max_requests(cli->conn);
# 1641|   	in_vc_num = cli_state_get_vc_num(cli);
# 1642|   	in_sess_key = smb1cli_conn_server_session_key(cli->conn);

Error: CLANG_WARNING: [#def983]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliconnect.c:3951:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 3949|   
# 3950|   	if (NT_STATUS_IS_OK(nt_status)) {
# 3951|-> 		return cli;
# 3952|   	}
# 3953|   	if (is_ipaddress(server)) {

Error: CPPCHECK_WARNING: [#def984]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clidfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def985]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clidfs.c: scope_hint: In function ‘cli_check_msdfs_proxy’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clidfs.c:1328:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘refs’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clidfs.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:62:6: note: in expansion of macro ‘PUSH_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:116:28: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clidfs.c:698:9: note: in expansion of macro ‘SSVAL’
# 1326|   	}
# 1327|   
# 1328|-> 	if (!refs[0].dfspath) {
# 1329|   		return false;
# 1330|   	}

Error: CPPCHECK_WARNING: [#def986]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clidgram.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def987]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clientgen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def988]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clifile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def989]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clifile.c:5121:11: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 5119|   	}
# 5120|   
# 5121|-> 	subreq = cli_close_send(state, state->ev, state->cli, fnum, 0);
# 5122|   	if (tevent_req_nomem(subreq, req)) {
# 5123|   		return;

Error: CPPCHECK_WARNING: [#def990]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clifsinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def991]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def992]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c:786:7: warning[deadcode.DeadStores]: Although the value stored to 'p' is used in the enclosing expression, the value is never actually read from 'p'
#  784|   	state->finfo = tmp;
#  785|   
#  786|-> 	p2 = p = (char *)data;
#  787|   	data_end = (char *)data + num_data;
#  788|   	last_name_raw = data_blob_null;

Error: CLANG_WARNING: [#def993]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c:861:37: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'finfo')
#  859|   
#  860|   	TALLOC_FREE(state->mask);
#  861|-> 	state->mask = talloc_strdup(state, finfo->name);
#  862|   	if (tevent_req_nomem(state->mask, req)) {
#  863|   		return;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def994]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c: scope_hint: In function ‘cli_list_trans_done’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c:861:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘finfo’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c:20: included_from: Included from here.
#  859|   
#  860|   	TALLOC_FREE(state->mask);
#  861|-> 	state->mask = talloc_strdup(state, finfo->name);
#  862|   	if (tevent_req_nomem(state->mask, req)) {
#  863|   		return;

Error: CLANG_WARNING: [#def995]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c:1119:12: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'src_finfo')
# 1117|   			return NT_STATUS_NO_MEMORY;
# 1118|   		}
# 1119|-> 		*finfo = *src_finfo;
# 1120|   		finfo->name = talloc_move(finfo, &src_finfo->name);
# 1121|   		finfo->short_name = talloc_move(finfo, &src_finfo->short_name);

Error: CLANG_WARNING: [#def996]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clilist.c:1171:23: warning[core.NullDereference]: Access to field 'attr' results in a dereference of an undefined pointer value (loaded from variable 'finfo')
# 1169|   	}
# 1170|   
# 1171|-> 	ok = dir_check_ftype(finfo->attr, state->attribute);
# 1172|   	if (!ok) {
# 1173|   		/*

Error: CPPCHECK_WARNING: [#def997]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/cliquota.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def998]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-121): [#def999]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c: scope_hint: In function ‘cli_RNetShareEnum’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:119:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:119:9: note: write of 2 bytes to beyond the end of ‘param’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:119:9: note: valid subscripts for ‘param’ are ‘[0]’ to ‘[1023]’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1000]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c: scope_hint: In function ‘cli_NetServerEnum’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:255:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:255:25: note: write of 2 bytes to beyond the end of ‘param’
samba-4.20.2-build/samba-4.20.2/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): [#def1001]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c: scope_hint: In function ‘cli_oem_change_password’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:477:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:62:6: note: in expansion of macro ‘PUSH_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:116:28: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:475:9: note: in expansion of macro ‘SSVAL’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clirap.c:477:9: note: write of 2 bytes to beyond the end of ‘param’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1002]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clireadwrite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1003]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clireadwrite.c:1722:14: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value
# 1720|   	}
# 1721|   
# 1722|-> 	if (written > expected) {
# 1723|   		tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);
# 1724|   		return;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1004]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clireadwrite.c: scope_hint: In function ‘cli_splice_fallback’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/clireadwrite.c:1817:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nread’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:663: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1005]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/dsgetdcname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1006]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/dsgetdcname.c:1101:6: warning[core.NullDereference]: Access to field 'dc_flags' results in a dereference of a null pointer (loaded from variable 'info')
# 1099|   static bool is_closest_site(struct netr_DsRGetDCNameInfo *info)
# 1100|   {
# 1101|-> 	if (info->dc_flags & DS_SERVER_CLOSEST) {
# 1102|   		return true;
# 1103|   	}

Error: CPPCHECK_WARNING: [#def1007]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1008]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_compat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1009]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_context.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1010]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1011]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c: scope_hint: In function ‘list_unique_wg_fn’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:260:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir_list’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:110:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:114:33: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:114:33: note: in expansion of macro ‘SMB_MALLOC_P’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:117:25: note: in expansion of macro ‘SAFE_FREE’
#  258|                dir_list = dir_list->next) {
#  259|                   if (! do_remove &&
#  260|->                     strcmp(dir_list->dirent->name, dirent->name) == 0) {
#  261|                           /* Duplicate.  End end of list need to be removed. */
#  262|                           do_remove = 1;

Error: CLANG_WARNING: [#def1012]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:1515:19: warning[deadcode.DeadStores]: Although the value stored to 'dirlist' is used in the enclosing expression, the value is never actually read from 'dirlist'
# 1513|   		}
# 1514|   
# 1515|-> 		dir->dir_next = dirlist = dirlist -> next;
# 1516|   
# 1517|   		/*

Error: CPPCHECK_WARNING (CWE-768): [#def1013]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_dir.c:2150: 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
# 2148|   		(struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT },
# 2149|   		access_time,
# 2150|-> 		write_time,
# 2151|   		(struct timespec) { .tv_nsec = SAMBA_UTIME_OMIT },
# 2152|   		0);

Error: CPPCHECK_WARNING: [#def1014]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1015]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_path.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1016]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_printjob.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1017]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1018]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_server.c:594:3: warning[deadcode.DeadStores]: Value stored to 'username_used' is never read
#  592|   
#  593|                   /* Failed.  Try an anonymous login, if allowed by flags. */
#  594|-> 		username_used = "";
#  595|   		password_used = "";
#  596|   

Error: CLANG_WARNING: [#def1019]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_server.c:595:3: warning[deadcode.DeadStores]: Value stored to 'password_used' is never read
#  593|                   /* Failed.  Try an anonymous login, if allowed by flags. */
#  594|   		username_used = "";
#  595|-> 		password_used = "";
#  596|   
#  597|                   if (smbc_getOptionNoAutoAnonymousLogin(context) ||

Error: CPPCHECK_WARNING: [#def1020]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_stat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1021]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_xattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1022]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_xattr.c:1483:25: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
# 1481|                                   return -1;
# 1482|                           }
# 1483|->                         buf += n;
# 1484|                           n_used += n;
# 1485|                           bufsize -= n;

Error: CLANG_WARNING: [#def1023]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_xattr.c:1485:25: warning[deadcode.DeadStores]: Value stored to 'bufsize' is never read
# 1483|                           buf += n;
# 1484|                           n_used += n;
# 1485|->                         bufsize -= n;
# 1486|                           n = 0;
# 1487|                   }

Error: CLANG_WARNING: [#def1024]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_xattr.c:1486:25: warning[deadcode.DeadStores]: Value stored to 'n' is never read
# 1484|                           n_used += n;
# 1485|                           bufsize -= n;
# 1486|->                         n = 0;
# 1487|                   }
# 1488|   

Error: CLANG_WARNING: [#def1025]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_xattr.c:1490:17: warning[deadcode.DeadStores]: Value stored to 'name' is never read
# 1488|   
# 1489|                   /* Restore name pointer to its original value */
# 1490|->                 name -= 16;
# 1491|           }
# 1492|   

Error: CLANG_WARNING: [#def1026]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/libsmb_xattr.c:1816:25: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1814|                   if (! namevalue) {
# 1815|                           errno = ENOMEM;
# 1816|->                         ret = -1;
# 1817|   			TALLOC_FREE(frame);
# 1818|                           return -1;

Error: CPPCHECK_WARNING (CWE-768): [#def1027]
samba-4.20.2-build/samba-4.20.2/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): [#def1028]
samba-4.20.2-build/samba-4.20.2/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): [#def1029]
samba-4.20.2-build/samba-4.20.2/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): [#def1030]
samba-4.20.2-build/samba-4.20.2/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): [#def1031]
samba-4.20.2-build/samba-4.20.2/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): [#def1032]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1033]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/namecache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1034]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/namequery.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1035]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/namequery.c:2583:31: warning[core.NullDereference]: Array access (via field 'ss_s') results in a null pointer dereference
# 2581|   			char addr[INET6_ADDRSTRLEN];
# 2582|   
# 2583|-> 			srv_addrs[num_srv_addrs] = dcs[i].ss_s[j];
# 2584|   			if (is_zero_addr(&srv_addrs[num_srv_addrs])) {
# 2585|   				continue;

Error: CPPCHECK_WARNING: [#def1036]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/namequery_dc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1037]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/nmblib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1038]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/passchange.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1041]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_write’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c:1405:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
# 1403|   	}
# 1404|   
# 1405|-> 	req = cli_write_send(NULL, self->ev, self->cli, fnum, mode,
# 1406|   			     (uint8_t *)buf, offset, buflen);
# 1407|   	if (!py_tevent_req_wait_exc(self, req)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1042]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_read’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c:1548:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
# 1546|   	}
# 1547|   
# 1548|-> 	result = PyBytes_FromStringAndSize(NULL, size);
# 1549|   	if (result == NULL) {
# 1550|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1043]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_ftruncate’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c:1602:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
# 1600|   	}
# 1601|   
# 1602|-> 	req = cli_ftruncate_send(NULL, self->ev, self->cli, fnum, size);
# 1603|   	if (!py_tevent_req_wait_exc(self, req)) {
# 1604|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1044]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_delete_on_close’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c:1632:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag’
# 1630|   	}
# 1631|   
# 1632|-> 	req = cli_nt_delete_on_close_send(NULL, self->ev, self->cli, fnum,
# 1633|   					  flag);
# 1634|   	if (!py_tevent_req_wait_exc(self, req)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1045]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c: scope_hint: In function ‘py_cli_fsctl’
samba-4.20.2-build/samba-4.20.2/source3/libsmb/pylibsmb.c:2645:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
# 2643|   	}
# 2644|   
# 2645|-> 	in = (DATA_BLOB) { .data = (uint8_t *)buf, .length = buflen, };
# 2646|   
# 2647|   	req = cli_fsctl_send(

Error: CPPCHECK_WARNING: [#def1046]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/samlogon_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1047]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/smbsock_connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1048]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/trusts_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1049]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/unexpected.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1050]
samba-4.20.2-build/samba-4.20.2/source3/libsmb/unexpected.c: scope_hint: In function ‘nb_packet_server_create’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1051]
samba-4.20.2-build/samba-4.20.2/source3/locking/brlock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1052]
samba-4.20.2-build/samba-4.20.2/source3/locking/brlock.c:951:2: warning[deadcode.DeadStores]: Value stored to 'locks' is never read
#  949|   	TALLOC_FREE(br_lck->lock_data);
#  950|   	br_lck->lock_data = tp;
#  951|-> 	locks = tp;
#  952|   	br_lck->modified = True;
#  953|   

Error: CLANG_WARNING: [#def1053]
samba-4.20.2-build/samba-4.20.2/source3/locking/brlock.c:1230:2: warning[deadcode.DeadStores]: Value stored to 'locks' is never read
# 1228|   	br_lck->num_locks = count;
# 1229|   	TALLOC_FREE(br_lck->lock_data);
# 1230|-> 	locks = tp;
# 1231|   	br_lck->lock_data = tp;
# 1232|   	br_lck->modified = True;

Error: CPPCHECK_WARNING: [#def1054]
samba-4.20.2-build/samba-4.20.2/source3/locking/leases_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1055]
samba-4.20.2-build/samba-4.20.2/source3/locking/locking.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1056]
samba-4.20.2-build/samba-4.20.2/source3/locking/posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1057]
samba-4.20.2-build/samba-4.20.2/source3/locking/share_mode_lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1058]
samba-4.20.2-build/samba-4.20.2/source3/modules/nfs4_acls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1059]
samba-4.20.2-build/samba-4.20.2/source3/modules/posixacl_xattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1060]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_acl_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1061]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_aio_fork.c:253:3: warning[deadcode.DeadStores]: Value stored to 'child' is never read
#  251|   
#  252|   		TALLOC_FREE(child);
#  253|-> 		child = next;
#  254|   	}
#  255|   

Error: CLANG_WARNING: [#def1062]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_aio_fork.c:320:7: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  318|   
#  319|   		DEBUG(10, ("aio_child_loop: %s %d bytes at %d from fd %d\n",
#  320|-> 			   cmd_type_str(cmd_struct.cmd),
#  321|   			   (int)cmd_struct.n, (int)cmd_struct.offset, fd));
#  322|   

Error: CLANG_WARNING: [#def1063]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_aio_fork.c:323:7: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  321|   			   (int)cmd_struct.n, (int)cmd_struct.offset, fd));
#  322|   
#  323|-> 		if (cmd_struct.erratic_testing_mode) {
#  324|   			/*
#  325|   			 * For developer testing, we want erratic behaviour for

Error: CLANG_WARNING: [#def1064]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_aio_fork.c:529:21: warning[core.NullDereference]: Access to field 'dont_delete' results in a dereference of a null pointer (loaded from variable 'child')
#  527|   	}
#  528|   
#  529|-> 	child->dont_delete = true;
#  530|   	child->busy = true;
#  531|   

Error: CLANG_WARNING: [#def1065]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_aio_pthread.c:279:12: warning[core.NullDereference]: Access to field 'connections' results in a dereference of a null pointer (loaded from field 'client')
#  277|   		 * For now we only have one connection, so this is correct...
#  278|   		 */
#  279|-> 		.xconn = fsp->conn->sconn->client->connections,
#  280|   		.initial_allocation_size = fsp->initial_allocation_size,
#  281|   	};

Error: CPPCHECK_WARNING: [#def1066]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_default.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1067]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_dirsort.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_dirsort.c: scope_hint: In function ‘dirsort_fdopendir’
samba-4.20.2-build/samba-4.20.2/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): [#def1068]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_fileid.c: scope_hint: In function ‘fileid_find_mount_entry’
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_fileid.c:180:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*data.mount_entries’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1069]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_fileid.c: scope_hint: In function ‘fileid_find_mount_entry.part.0’
samba-4.20.2-build/samba-4.20.2/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): [#def1070]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_fruit.c:839: error[uninitvar]: Uninitialized variable: p
#  837|   	SIVAL(p, 4, 0);
#  838|   	SBVAL(p, 8, req_bitmap);
#  839|-> 	ok = data_blob_append(req, &blob, p, 16);
#  840|   	if (!ok) {
#  841|   		return NT_STATUS_UNSUCCESSFUL;

Error: CLANG_WARNING: [#def1071]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_fruit.c:5305:25: warning[core.DivideZero]: Division by zero
# 5303|   	 * the total did not overflow either.
# 5304|   	 */
# 5305|-> 	if (bandsize > SIZE_MAX/nbands) {
# 5306|   		DBG_ERR("tmsize potential overflow: bandsize [%zu] nbands [%zu]\n",
# 5307|   			bandsize, nbands);

Error: COMPILER_WARNING: [#def1072]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_set_quota’
samba-4.20.2-build/samba-4.20.2/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: [#def1073]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_shadow_copy_data’
samba-4.20.2-build/samba-4.20.2/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: [#def1074]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_statvfs’
samba-4.20.2-build/samba-4.20.2/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: [#def1075]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fs_capabilities’
samba-4.20.2-build/samba-4.20.2/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: [#def1076]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_dfs_referrals’
samba-4.20.2-build/samba-4.20.2/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: [#def1077]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_check_path’
samba-4.20.2-build/samba-4.20.2/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: [#def1078]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_create’
samba-4.20.2-build/samba-4.20.2/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: [#def1079]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_delete’
samba-4.20.2-build/samba-4.20.2/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: [#def1080]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_readdir’
samba-4.20.2-build/samba-4.20.2/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: [#def1081]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_rewinddir’
samba-4.20.2-build/samba-4.20.2/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: [#def1082]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_closedir’
samba-4.20.2-build/samba-4.20.2/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: [#def1083]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_translate_name’
samba-4.20.2-build/samba-4.20.2/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: [#def1084]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fsctl’
samba-4.20.2-build/samba-4.20.2/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: [#def1085]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_read_send’
samba-4.20.2-build/samba-4.20.2/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: [#def1086]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_read_recv’
samba-4.20.2-build/samba-4.20.2/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: [#def1087]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_write_send’
samba-4.20.2-build/samba-4.20.2/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: [#def1088]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_write_recv’
samba-4.20.2-build/samba-4.20.2/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: [#def1089]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_durable_reconnect’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1090]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_preopen.c:238:2: warning[deadcode.DeadStores]: Value stored to 'nread' is never read
#  236|   		goto done;
#  237|   	}
#  238|-> 	nread = read(fd, filebuf, to_read);
#  239|   	close(fd);
#  240|   

Error: CLANG_WARNING: [#def1091]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_snapper.c:1655:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1653|   	}
# 1654|   	/* we should always get at least one snapshot (current) */
# 1655|-> 	if (num_snaps == 0) {
# 1656|   		DEBUG(1, ("zero snapshots in snap list response\n"));
# 1657|   		status = NT_STATUS_UNSUCCESSFUL;

Error: CLANG_WARNING: [#def1092]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_snapper.c:1782:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1780|   	}
# 1781|   
# 1782|-> 	if (num_snaps == 0) {
# 1783|   		DEBUG(4, ("no snapshots found with time: %lu\n",
# 1784|   			  (unsigned long)snaptime));

Error: CLANG_WARNING: [#def1093]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_snapper.c:2470:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 2468|   	}
# 2469|   
# 2470|-> 	status = synthetic_pathref(
# 2471|   		talloc_tos(),
# 2472|   		dirfsp->conn->cwd_fsp,

Error: CLANG_WARNING: [#def1094]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_streams_depot.c:624:18: warning[core.NullDereference]: Access to field 'st' results in a dereference of a null pointer (loaded from variable 'smb_fname_stream')
#  622|   
#  623|   	/* Update the original smb_fname with the stat info. */
#  624|-> 	smb_fname->st = smb_fname_stream->st;
#  625|    done:
#  626|   	TALLOC_FREE(smb_fname_stream);

Error: CLANG_WARNING: [#def1095]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_streams_xattr.c:447:3: warning[deadcode.DeadStores]: Value stored to 'fakefd' is never read
#  445|   	if (fakefd >= 0) {
#  446|   		vfs_fake_fd_close(fakefd);
#  447|-> 		fakefd = -1;
#  448|   	}
#  449|   

Error: CLANG_WARNING: [#def1096]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_virusfilter_fsav.c:359:4: warning[deadcode.DeadStores]: Value stored to 'reply_token' is never read
#  357|   			/* INFECTED\t<FILEPATH>\t<REPORT>\t<ENGINE> */
#  358|   			result = VIRUSFILTER_RESULT_INFECTED;
#  359|-> 			reply_token = strtok_r(NULL, "\t", &reply_saveptr);
#  360|   			reply_token = strtok_r(NULL, "\t", &reply_saveptr);
#  361|   			if (reply_token != NULL) {

Error: CLANG_WARNING: [#def1097]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_virusfilter_fsav.c:380:4: warning[deadcode.DeadStores]: Value stored to 'reply_token' is never read
#  378|   		{
#  379|   			result = VIRUSFILTER_RESULT_SUSPECTED;
#  380|-> 			reply_token = strtok_r(NULL, "\t", &reply_saveptr);
#  381|   			reply_token = strtok_r(NULL, "\t", &reply_saveptr);
#  382|   			if (reply_token != NULL) {

Error: CLANG_WARNING: [#def1098]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_virusfilter_fsav.c:393:4: warning[deadcode.DeadStores]: Value stored to 'reply_token' is never read
#  391|   			/* SCAN_FAILURE\t<FILEPATH>\t0x<CODE>\t<REPORT> [<ENGINE>] */
#  392|   			result = VIRUSFILTER_RESULT_ERROR;
#  393|-> 			reply_token = strtok_r(NULL, "\t", &reply_saveptr);
#  394|   			reply_token = strtok_r(NULL, "\t", &reply_saveptr);
#  395|   			DBG_ERR("fsavd: SCANFILE: Scaner error: %s\n",

Error: CPPCHECK_WARNING: [#def1099]
samba-4.20.2-build/samba-4.20.2/source3/modules/vfs_virusfilter_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1100]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/asyncdns.c: scope_hint: In function ‘start_async_dns’
samba-4.20.2-build/samba-4.20.2/source3/nmbd/asyncdns.c:148:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd1[0]’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/nmbd/asyncdns.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:284:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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): [#def1101]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/asyncdns.c:148:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd1[1]’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:284:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1102]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd.c:846:10: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#  844|   	}
#  845|   
#  846|-> 	while ((opt = poptGetNextOpt(pc)) != -1) {
#  847|   		d_fprintf(stderr, "\nInvalid options\n\n");
#  848|   		poptPrintUsage(pc, stderr, 0);

Error: COMPILER_WARNING: [#def1103]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_become_lmb.c: scope_hint: In function ‘become_local_master_browser’
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_become_lmb.c:549:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_become_lmb.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd.h:212:14: note: destination object ‘data’ of size 16
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_become_lmb.c:23: included_from: Included from here.
/usr/include/string.h:506:15: note: in a call to function ‘strlcpy’ declared with attribute ‘access (write_only, 1, 3)’
#  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: [#def1104]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_browsesync.c: scope_hint: In function ‘find_domain_master_name_query_success’
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_browsesync.c:337:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_browsesync.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd.h:212:14: note: destination object ‘data’ of size 16
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_browsesync.c:23: included_from: Included from here.
/usr/include/string.h:506:15: note: in a call to function ‘strlcpy’ declared with attribute ‘access (write_only, 1, 3)’
#  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: CLANG_WARNING: [#def1105]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_incomingdgrams.c:695:3: warning[deadcode.DeadStores]: Value stored to 'search_subrec' is never read
#  693|   		}
#  694|   
#  695|-> 		search_subrec = unicast_subnet;
#  696|   	} else if (name_type == 0x1d) {
#  697|   		/* We must be a local master browser in order to process this packet. */

Error: CLANG_WARNING: [#def1106]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_mynames.c:37:22: warning[core.NullDereference]: Array access (from variable 'mynames') results in a null pointer dereference
#   35|   
#   36|   	for (i=0; i<num_names; i++) {
#   37|-> 		if (strequal(name, mynames[i])) {
#   38|   			return true;
#   39|   		}

Error: CPPCHECK_WARNING (CWE-590): [#def1107]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1108]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_namelistdb.c:670:2: warning[deadcode.DeadStores]: Value stored to 'fd' is never read
#  668|   		return;
#  669|   	}
#  670|-> 	fd = -1;
#  671|   
#  672|   	for (subrec = FIRST_SUBNET; subrec; subrec = NEXT_SUBNET_INCLUDING_UNICAST(subrec)) {

Error: CLANG_WARNING: [#def1109]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_processlogon.c:518:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  516|   		 */
#  517|   		if ((p->locked == False) &&
#  518|-> 		    (strlen(request.req.logon.user_name) == 0) &&
#  519|   		    delay_logon(source_name, source_addr))
#  520|   		{

Error: CLANG_WARNING: [#def1110]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_serverlistdb.c:334:2: warning[deadcode.DeadStores]: Value stored to 'fd' is never read
#  332|   		return;
#  333|   	}
#  334|-> 	fd = -1;
#  335|   
#  336|   	/*

Error: CLANG_WARNING: [#def1111]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_synclists.c:193:2: warning[deadcode.DeadStores]: Value stored to 'fd' is never read
#  191|   		_exit(1);
#  192|   	}
#  193|-> 	fd = -1;
#  194|   
#  195|   	sync_child(name, nm_type, work->work_group, ip, local, servers,

Error: CPPCHECK_WARNING (CWE-590): [#def1112]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1113]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_winsserver.c:1461:27: warning[deadcode.DeadStores]: Value stored to 'userdata' during its initialization is never read
# 1459|   	if( namerec != NULL ) {
# 1460|   		long *ud[(sizeof(struct userdata_struct) + sizeof(struct packet_struct *))/sizeof(long *) + 1];
# 1461|-> 		struct userdata_struct *userdata = (struct userdata_struct *)ud;
# 1462|   
# 1463|   		/*

Error: CLANG_WARNING: [#def1114]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_winsserver.c:1795:27: warning[deadcode.DeadStores]: Value stored to 'userdata' during its initialization is never read
# 1793|   	if(namerec != NULL) {
# 1794|   		long *ud[(sizeof(struct userdata_struct) + sizeof(struct packet_struct *))/sizeof(long *) + 1];
# 1795|-> 		struct userdata_struct *userdata = (struct userdata_struct *)ud;
# 1796|   
# 1797|   		/*

Error: CLANG_WARNING: [#def1115]
samba-4.20.2-build/samba-4.20.2/source3/nmbd/nmbd_winsserver.c:2520:2: warning[deadcode.DeadStores]: Value stored to 'fd' is never read
# 2518|   		goto err_exit;
# 2519|   	}
# 2520|-> 	fd = -1;
# 2521|   
# 2522|   	DEBUG(4,("wins_write_database: Dump of WINS name list.\n"));

Error: CPPCHECK_WARNING: [#def1116]
samba-4.20.2-build/samba-4.20.2/source3/param/loadparm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1117]
samba-4.20.2-build/samba-4.20.2/source3/param/service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1118]
samba-4.20.2-build/samba-4.20.2/source3/passdb/account_pol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1119]
samba-4.20.2-build/samba-4.20.2/source3/passdb/login_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1120]
samba-4.20.2-build/samba-4.20.2/source3/passdb/lookup_sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1121]
samba-4.20.2-build/samba-4.20.2/source3/passdb/lookup_sid.c:1038:14: warning[core.NullDereference]: Dereference of null pointer
# 1036|   
# 1037|   		for (j=0; j<dom->num_idxs; j++) {
# 1038|-> 			rids[j] = name_infos[dom->idxs[j]].rid;
# 1039|   		}
# 1040|   

Error: CLANG_WARNING: [#def1122]
samba-4.20.2-build/samba-4.20.2/source3/passdb/lookup_sid.c:1055:25: warning[core.NullDereference]: Dereference of null pointer
# 1053|   		for (j=0; j<dom->num_idxs; j++) {
# 1054|   			int idx = dom->idxs[j];
# 1055|-> 			name_infos[idx].type = types[j];
# 1056|   			if (types[j] != SID_NAME_UNKNOWN) {
# 1057|   				name_infos[idx].name =

Error: CPPCHECK_WARNING: [#def1123]
samba-4.20.2-build/samba-4.20.2/source3/passdb/machine_sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1124]
samba-4.20.2-build/samba-4.20.2/source3/passdb/passdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1125]
samba-4.20.2-build/samba-4.20.2/source3/passdb/passdb.c:2419:11: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'cur_pw')
# 2417|   		struct timeval expire;
# 2418|   
# 2419|-> 		*cur_pw = pwd;
# 2420|   
# 2421|   		if (account_name != NULL) {

Error: CPPCHECK_WARNING: [#def1126]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_interface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1127]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_interface.c:1631:16: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1629|   
# 1630|   	/* We only look at our own sam, so don't care about imported stuff */
# 1631|-> 	winbind_env = winbind_env_set();
# 1632|   	(void)winbind_off();
# 1633|   

Error: CLANG_WARNING: [#def1128]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_ldap.c:1775:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 1773|   		}
# 1774|   
# 1775|-> 	        if ((rc = ber_flatten (ber, &bv))<0) {
# 1776|   			DEBUG(0,("ldapsam_modify_entry: ber_flatten returns a value <0\n"));
# 1777|   			ber_free(ber,1);

Error: CPPCHECK_WARNING: [#def1129]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_ldap_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1130]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_nds.c:521:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  519|   	err = berDecodeLoginData(replyBV, &serverVersion, NULL, NULL);
#  520|   
#  521|-> 	if(serverVersion != NMAS_LDAP_EXT_VERSION)
#  522|   	{
#  523|   		err = LDAP_OPERATIONS_ERROR;

Error: CLANG_WARNING: [#def1131]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_nds.c:619:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  617|   	err = berDecodeLoginData(replyBV, &serverVersion, &pwdBufLen, pwdBuf);
#  618|   
#  619|-> 	if(serverVersion != NMAS_LDAP_EXT_VERSION)
#  620|   	{
#  621|   		err = LDAP_OPERATIONS_ERROR;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1132]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_samba_dsdb.c: scope_hint: In function ‘pdb_samba_dsdb_update_sam_account’
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_samba_dsdb.c:860:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  858|   	int ret;
#  859|   
#  860|-> 	ret = pdb_samba_dsdb_replace_by_sam(state, pdb_element_is_changed, msg->dn,
#  861|   					sam);
#  862|   	return dsdb_ldb_err_to_ntstatus(ret);

Error: CPPCHECK_WARNING: [#def1133]
samba-4.20.2-build/samba-4.20.2/source3/passdb/pdb_secrets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1134]
samba-4.20.2-build/samba-4.20.2/source3/passdb/secrets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1135]
samba-4.20.2-build/samba-4.20.2/source3/passdb/secrets.c:289:10: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  287|   	/* the trust's password */
#  288|   	if (pwd) {
#  289|-> 		*pwd = SMB_STRDUP(pass.pass);
#  290|   		if (!*pwd) {
#  291|   			return False;

Error: CPPCHECK_WARNING: [#def1136]
samba-4.20.2-build/samba-4.20.2/source3/passdb/secrets_lsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1137]
samba-4.20.2-build/samba-4.20.2/source3/printing/load.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1138]
samba-4.20.2-build/samba-4.20.2/source3/printing/lpq_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1139]
samba-4.20.2-build/samba-4.20.2/source3/printing/notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1140]
samba-4.20.2-build/samba-4.20.2/source3/printing/notify.c: scope_hint: In function ‘print_notify_pid_list’
samba-4.20.2-build/samba-4.20.2/source3/printing/notify.c:679:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pid_list’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/printing/notify.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1141]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1142]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing.c:1453:24: warning[deadcode.DeadStores]: Although the value stored to 'version' is used in the enclosing expression, the value is never actually read from 'version'
# 1451|   	}
# 1452|   
# 1453|-> 	if (version != -1 && (version = file_version_is_newer(conn, old_name, new_name)) > 0) {
# 1454|   		struct files_struct *dirfsp = NULL;
# 1455|   

Error: CPPCHECK_WARNING: [#def1143]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_ads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1144]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_ads.c:621:3: warning[deadcode.DeadStores]: Value stored to 'ads_rc' is never read
#  619|   			return WERR_NOT_ENOUGH_MEMORY;
#  620|   		}
#  621|-> 		ads_rc = ads_del_dn(ads, prt_dn);
#  622|   		TALLOC_FREE(prt_dn);
#  623|   	}

Error: CPPCHECK_WARNING: [#def1145]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_migrate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1146]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_migrate.c:337:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  335|   				  key_name, keyname, valuename,
#  336|   				  win_errstr(result)));
#  337|-> 			status = werror_to_ntstatus(result);
#  338|   			break;
#  339|   		}

Error: CPPCHECK_WARNING: [#def1147]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_migrate_internal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1148]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_os2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1149]
samba-4.20.2-build/samba-4.20.2/source3/printing/nt_printing_tdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1150]
samba-4.20.2-build/samba-4.20.2/source3/printing/pcap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1151]
samba-4.20.2-build/samba-4.20.2/source3/printing/print_cups.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1152]
samba-4.20.2-build/samba-4.20.2/source3/printing/print_generic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1153]
samba-4.20.2-build/samba-4.20.2/source3/printing/print_iprint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1154]
samba-4.20.2-build/samba-4.20.2/source3/printing/print_standard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1155]
samba-4.20.2-build/samba-4.20.2/source3/printing/printer_list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1156]
samba-4.20.2-build/samba-4.20.2/source3/printing/printer_list.c:212:2: warning[deadcode.DeadStores]: Value stored to 'len' is never read
#  210|   	data.dsize = len;
#  211|   
#  212|-> 	len = tdb_pack(data.dptr, data.dsize,
#  213|   		       PL_DATA_FORMAT,
#  214|   		       time_h,

Error: CLANG_WARNING: [#def1157]
samba-4.20.2-build/samba-4.20.2/source3/printing/printer_list.c:291:2: warning[deadcode.DeadStores]: Value stored to 'len' is never read
#  289|   	data.dsize = len;
#  290|   
#  291|-> 	len = tdb_pack(data.dptr, data.dsize,
#  292|   		       PL_TSTAMP_FORMAT, time_h, time_l);
#  293|   

Error: CPPCHECK_WARNING: [#def1158]
samba-4.20.2-build/samba-4.20.2/source3/printing/printing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1159]
samba-4.20.2-build/samba-4.20.2/source3/printing/printing_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CPPCHECK_WARNING: [#def1161]
samba-4.20.2-build/samba-4.20.2/source3/profile/profile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1162]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_api.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1163]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_backend_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1164]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_format.c:317:3: warning[deadcode.DeadStores]: Value stored to 'cpl' is never read
#  315|   			goto done;
#  316|   		}
#  317|-> 		cpl += n;
#  318|   	}
#  319|   

Error: CPPCHECK_WARNING: [#def1165]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_objects.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1166]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1167]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse.c:836:3: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
#  834|   	if (nread == 0) {
#  835|   		/* Empty file. */
#  836|-> 		eof = true;
#  837|   		goto done;
#  838|   	}

Error: CLANG_WARNING: [#def1168]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse.c:853:3: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
#  851|   	if (ilen == 0) {
#  852|   		/* File only contained charset info. */
#  853|-> 		eof = true;
#  854|   		ret = -1;
#  855|   		goto done;

Error: CPPCHECK_WARNING: [#def1169]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_internal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1170]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_internal.c: scope_hint: In function ‘set_iconv’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/source3/registry/reg_parse_internal.c:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1171]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:388:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*data32’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:57:41: note: in definition of macro ‘PUSH_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:388:25: note: in expansion of macro ‘SIVAL’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:379:13: note: in expansion of macro ‘UNMARSHALLING’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:57:41: note: in definition of macro ‘PUSH_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_parse_prs.c:388:25: note: in expansion of macro ‘SIVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:57:41: note: in definition of macro ‘PUSH_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1172]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_perfcount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1173]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_perfcount.c:1040:3: warning[deadcode.DeadStores]: Value stored to 'instance' is never read
# 1038|   		object[obj].TotalByteLength = 0;
# 1039|   		object[obj].DefinitionLength = 0;
# 1040|-> 		instance = object[obj].instances;
# 1041|   		counter = object[obj].counters;
# 1042|   		for(cnt = 0; cnt < object[obj].NumCounters; cnt++)

Error: CLANG_WARNING: [#def1174]
samba-4.20.2-build/samba-4.20.2/source3/registry/reg_perfcount.c:1437:2: warning[deadcode.DeadStores]: Value stored to 'buffer_size' is never read
# 1435|   	uint32_t buffer_size, base_index;
# 1436|   
# 1437|-> 	buffer_size = 0;
# 1438|   	base_index = reg_perfcount_get_base_index();
# 1439|   	ZERO_STRUCT(block);

Error: CPPCHECK_WARNING: [#def1175]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1176]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:100:18: warning[deadcode.DeadStores]: Although the value stored to 'returned' is used in the enclosing expression, the value is never actually read from 'returned'
#   98|   	}
#   99|   
#  100|-> 	bytes_written = returned = 0;
#  101|   	while ( bytes_written < buffer_size ) {
#  102|   		if ( (returned = write( file->fd, buffer+bytes_written, buffer_size-bytes_written )) == -1 ) {

Error: CLANG_WARNING: [#def1177]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:173:15: warning[deadcode.DeadStores]: Although the value stored to 'returned' is used in the enclosing expression, the value is never actually read from 'returned'
#  171|   	}
#  172|   	buffer = prs_data_p( ps );
#  173|-> 	bytes_read = returned = 0;
#  174|   
#  175|   	while ( bytes_read < block_size ) {

Error: CLANG_WARNING: [#def1178]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:425:29: warning[core.NullDereference]: Array access (via field 'keyname') results in a null pointer dereference
#  423|   
#  424|   		if ( UNMARSHALLING(ps) )
#  425|-> 			nk->keyname[name_length] = '\0';
#  426|   	}
#  427|   

Error: CLANG_WARNING: [#def1179]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:453:13: warning[deadcode.DeadStores]: Although the value stored to 'x' is used in the enclosing expression, the value is never actually read from 'x'
#  451|   	/* XOR of all bytes 0x0000 - 0x01FB */
#  452|   
#  453|-> 	checksum = x = 0;
#  454|   
#  455|   	for ( i=0; i<0x01FB; i+=4 ) {

Error: CLANG_WARNING: [#def1180]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:932:7: warning[core.NullDereference]: Access to field 'io' results in a dereference of a null pointer
#  930|   		return True;
#  931|   
#  932|-> 	if ( UNMARSHALLING(&hbin->ps) ) {
#  933|   		if ( !(nk->values = PRS_ALLOC_MEM( &hbin->ps, REGF_VK_REC, nk->num_values ) ) )
#  934|   			return False;

Error: CLANG_WARNING: [#def1181]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:1631:2: warning[deadcode.DeadStores]: Value stored to 'size_mod8' is never read
# 1629|   	uint32_t size, size_mod8;
# 1630|   
# 1631|-> 	size_mod8 = 0;
# 1632|   
# 1633|   	/* the record size is sizeof(hdr) + name + static members + data_size_field */

Error: CLANG_WARNING: [#def1182]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:1652:2: warning[deadcode.DeadStores]: Value stored to 'size_mod8' is never read
# 1650|   	uint32_t size, size_mod8;
# 1651|   
# 1652|-> 	size_mod8 = 0;
# 1653|   
# 1654|   	/* the record size is sizeof(hdr) + name + static members + data_size_field */

Error: CLANG_WARNING: [#def1183]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:1676:2: warning[deadcode.DeadStores]: Value stored to 'size_mod8' is never read
# 1674|   	uint32_t size, size_mod8;
# 1675|   
# 1676|-> 	size_mod8 = 0;
# 1677|   
# 1678|   	/* the record size is sizeof(hdr) + num_keys + sizeof of hash_array + data_size_uint32_t */

Error: CLANG_WARNING: [#def1184]
samba-4.20.2-build/samba-4.20.2/source3/registry/regfio.c:1697:2: warning[deadcode.DeadStores]: Value stored to 'size_mod8' is never read
# 1695|   	uint32_t size, size_mod8;
# 1696|   
# 1697|-> 	size_mod8 = 0;
# 1698|   
# 1699|   	/* the record size is static + length_of_keyname + length_of_classname + data_size_uint32_t */

Error: CPPCHECK_WARNING: [#def1185]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_lsarpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1186]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_mdssvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1187]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_mdssvc_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1188]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1189]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_netlogon.c:211:41: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'cli')
#  209|   	}
#  210|   
#  211|-> 	remote_name = smbXcli_conn_remote_name(cli->conn);
#  212|   	remote_sockaddr = smbXcli_conn_remote_sockaddr(cli->conn);
#  213|   

Error: CPPCHECK_WARNING: [#def1190]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1191]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:56:53: warning[core.NullDereference]: Access to field 'desthost' results in a dereference of a null pointer (loaded from variable 'cli')
#   54|   				   struct rpc_pipe_client *cli)
#   55|   {
#   56|-> 	char *result = talloc_asprintf(mem_ctx, "host %s", cli->desthost);
#   57|   	if (result == NULL) {
#   58|   		return "pipe";

Error: CLANG_WARNING: [#def1192]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:108:11: warning[core.NullDereference]: Access to field 'read_send' results in a dereference of a null pointer (loaded from variable 'transport')
#  106|   	DBG_INFO("data_to_read: %zu\n", size);
#  107|   
#  108|-> 	subreq = transport->read_send(state, ev, (uint8_t *)data, size,
#  109|   				      transport->priv);
#  110|   	if (subreq == NULL) {

Error: CLANG_WARNING: [#def1193]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:1293:6: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 1291|   	}
# 1292|   
# 1293|-> 	if (is_last_frag) {
# 1294|   		subreq = rpc_api_pipe_send(state, ev, state->cli,
# 1295|   					   &state->rpc_out,

Error: CLANG_WARNING: [#def1194]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:1664:6: warning[core.NullDereference]: Access to field 'secondary_address_size' results in a dereference of a null pointer (loaded from variable 'r')
# 1662|   	bool equal;
# 1663|   
# 1664|-> 	if (r->secondary_address_size == 0) {
# 1665|   		DEBUG(4,("Ignoring length check -- ASU bug (server didn't fill in the pipe name correctly)\n"));
# 1666|   	}

Error: CLANG_WARNING: [#def1195]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:1817:12: warning[core.NullDereference]: Access to field 'auth' results in a dereference of a null pointer (loaded from variable 'cli')
# 1815|   	state->rpc_call_id = get_rpc_call_id();
# 1816|   
# 1817|-> 	cli->auth = talloc_move(cli, &auth);
# 1818|   
# 1819|   	/* Marshall the outgoing data. */

Error: CLANG_WARNING: [#def1196]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:3360:11: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 3358|   	}
# 3359|   
# 3360|-> 	status = rpccli_anon_bind_data(result, &auth);
# 3361|   	if (!NT_STATUS_IS_OK(status)) {
# 3362|   		DEBUG(0, ("rpccli_anon_bind_data returned %s\n",

Error: CLANG_WARNING: [#def1197]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:3465:11: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 3463|   	}
# 3464|   
# 3465|-> 	status = rpccli_generic_bind_data_from_creds(result,
# 3466|   						     auth_type, auth_level,
# 3467|   						     server, target_service,

Error: CLANG_WARNING: [#def1198]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe.c:3525:11: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 3523|   	auth_level = netlogon_creds_cli_auth_level(netlogon_creds);
# 3524|   
# 3525|-> 	status = netlogon_creds_bind_cli_credentials(
# 3526|   		netlogon_creds, rpccli, &cli_creds);
# 3527|   	if (!NT_STATUS_IS_OK(status)) {

Error: CPPCHECK_WARNING: [#def1199]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_pipe_schannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1200]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_winreg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1201]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_winreg.c:545:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  543|   	NTSTATUS status;
#  544|   
#  545|-> 	status = dcerpc_winreg_query_multi_sz(mem_ctx,
#  546|   					      h,
#  547|   					      key_handle,

Error: CPPCHECK_WARNING: [#def1202]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_winreg_int.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1203]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_winreg_spoolss.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1204]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_winreg_spoolss.c:1205:7: warning[core.NullDereference]: Access to field 'size' results in a dereference of a null pointer (loaded from variable 'devmode')
# 1203|   		}
# 1204|   
# 1205|-> 		if (devmode->size != (ndr_size_spoolss_DeviceMode(devmode, 0) - devmode->__driverextra_length)) {
# 1206|   			result = WERR_INVALID_PARAMETER;
# 1207|   			goto done;

Error: CLANG_WARNING: [#def1205]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/cli_winreg_spoolss.c:1707:6: warning[core.NullDereference]: Access to field 'value_name' results in a dereference of a null pointer (loaded from variable 'v')
# 1705|   		DEBUG(0, ("winreg_get_printer: winreg_enumval_to_TYPE() failed "
# 1706|   					"for %s: %s\n",
# 1707|-> 					v->value_name,
# 1708|   					win_errstr(result)));
# 1709|   		goto done;

Error: CPPCHECK_WARNING (CWE-457): [#def1206]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/init_spoolss.c:431: warning[uninitvar]: Uninitialized variable: sd_size
#  429|   	}
#  430|   
#  431|-> 	DEBUG(4,("construct_default_printer_sdb: size = %u.\n",
#  432|   		 (unsigned int)sd_size));
#  433|   

Error: CPPCHECK_WARNING: [#def1207]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/local_np.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1208]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/local_np.c:646:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  644|   	}
#  645|   
#  646|-> 	ok = winbind_env_set();
#  647|   	if (ok) {
#  648|   		npa_flags |= SAMBA_NPA_FLAGS_WINBIND_OFF;

Error: CPPCHECK_WARNING: [#def1209]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/rpc_transport_tstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1210]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/util_netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1211]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/wsp_cli.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1212]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/wsp_cli.c:1420:17: warning[core.NullDereference]: Access to field 'weight' results in a dereference of a null pointer (loaded from variable '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): [#def1213]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/wsp_cli.c: scope_hint: In function ‘process_andornot_node’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1214]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/wsp_cli.c:1457:16: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'crestriction')
# 1455|   			t_query *node)
# 1456|   {
# 1457|-> 	*crestriction = *node->restriction;
# 1458|   }
# 1459|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1215]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/wsp_cli.c:1457:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestriction’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1216]
samba-4.20.2-build/samba-4.20.2/source3/rpc_client/wsp_cli.c:2181:2: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 2179|   		req_blob = ndr_push_blob(push_ndr);
# 2180|   	}
# 2181|-> 	err = insert_header_and_checksum(ctx, &req_blob, &request->header);
# 2182|   
# 2183|   	DBG_NOTICE("\nsending raw message from client len %d\n", (int)req_blob.length);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1217]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/dfs/srv_dfs_nt.c: scope_hint: In function ‘init_reply_dfs_info_1’
samba-4.20.2-build/samba-4.20.2/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): [#def1218]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/dfs/srv_dfs_nt.c: scope_hint: In function ‘init_reply_dfs_info_2’
samba-4.20.2-build/samba-4.20.2/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): [#def1219]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/dfs/srv_dfs_nt.c: scope_hint: In function ‘init_reply_dfs_info_3’
samba-4.20.2-build/samba-4.20.2/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): [#def1220]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1221]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/epmapper/srv_epmapper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1222]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/epmapper/srv_epmapper.c:536:7: warning[deadcode.DeadStores]: Value stored to 'match' is never read
#  534|   					    r->in.interface_id->vers_minor ==
#  535|   					    (eps->e[i].syntax_id.if_version & 0xFFFF)) {
#  536|-> 						match = true;
#  537|   					}
#  538|   					match = true;

Error: CLANG_WARNING: [#def1223]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/epmapper/srv_epmapper.c:549:7: warning[deadcode.DeadStores]: Value stored to 'match' is never read
#  547|   					if (r->in.interface_id->vers_major ==
#  548|   					    (eps->e[i].syntax_id.if_version >> 16)) {
#  549|-> 						match = true;
#  550|   					}
#  551|   					match = true;

Error: CLANG_WARNING: [#def1224]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:159:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  157|   		}
#  158|   
#  159|-> 		status = dcerpc_winreg_set_dword(tmp_ctx,
#  160|   						 h,
#  161|   						 &key_hnd,

Error: CLANG_WARNING: [#def1225]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:166:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  164|   						 &result);
#  165|   
#  166|-> 		status = dcerpc_winreg_set_dword(tmp_ctx,
#  167|   						 h,
#  168|   						 &key_hnd,

Error: CLANG_WARNING: [#def1226]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:173:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  171|   						 &result);
#  172|   
#  173|-> 		status = dcerpc_winreg_set_sz(tmp_ctx,
#  174|   					      h,
#  175|   					      &key_hnd,

Error: CLANG_WARNING: [#def1227]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:186:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  184|   			goto done;
#  185|   		}
#  186|-> 		status = dcerpc_winreg_set_expand_sz(tmp_ctx,
#  187|   						     h,
#  188|   						     &key_hnd,

Error: CLANG_WARNING: [#def1228]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:194:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  192|   		TALLOC_FREE(evt_tdb);
#  193|   
#  194|-> 		status = dcerpc_winreg_add_multi_sz(tmp_ctx,
#  195|   						    h,
#  196|   						    &key_hnd,

Error: CLANG_WARNING: [#def1229]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:239:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  237|   			}
#  238|   
#  239|-> 			status = dcerpc_winreg_set_dword(tmp_ctx,
#  240|   							 h,
#  241|   							 &key_hnd,

Error: CLANG_WARNING: [#def1230]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/eventlog/srv_eventlog_reg.c:246:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  244|   							 &result);
#  245|   
#  246|-> 			status = dcerpc_winreg_set_expand_sz(tmp_ctx,
#  247|   							     h,
#  248|   							     &key_hnd,

Error: CPPCHECK_WARNING: [#def1231]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/fss/srv_fss_agent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1232]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/fss/srv_fss_state.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1233]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1234]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c: scope_hint: In function ‘_lsa_LookupSids’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c:994:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c:5235: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/ntdomain.h:33: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c:33: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_pipes.h:68:45: note: in definition of macro ‘find_policy_by_hnd’
#  992|   
#  993|   	for (i=0; i<num_sids; i++) {
#  994|-> 		names_out[i].sid_type = names[i].sid_type;
#  995|   		names_out[i].name = names[i].name;
#  996|   		names_out[i].sid_index = names[i].sid_index;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1235]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c: scope_hint: In function ‘_lsa_OpenTrustedDomain_base’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c:1653:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
# 1651|   					  acc_granted,
# 1652|   					  &info->sid,
# 1653|-> 					  info->name,
# 1654|   					  psd,
# 1655|   					  handle);

Error: CLANG_WARNING: [#def1236]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/lsa/srv_lsa_nt.c:3860:6: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 3858|   	/* TODO: should we fetch previous values from the existing entry
# 3859|   	 * and append them ? */
# 3860|-> 	if (auth_struct.incoming.count) {
# 3861|   		nt_status = get_trustauth_inout_blob(mem_ctx,
# 3862|   						     &auth_struct.incoming,

Error: CPPCHECK_WARNING: [#def1237]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/mdssvc/dalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1238]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/mdssvc/es_mapping.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1239]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/mdssvc/es_parser_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1240]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/mdssvc/marshalling.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1241]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/netlogon/srv_netlog_nt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1242]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/netlogon/srv_netlog_nt.c:207:3: warning[deadcode.DeadStores]: Value stored to 'fn' is never read
#  205|   	switch (dce_call->pkt.u.request.opnum) {
#  206|   	case NDR_NETR_LOGONCONTROL:
#  207|-> 		fn = "_netr_LogonControl";
#  208|   		break;
#  209|   	case NDR_NETR_LOGONCONTROL2:

Error: CLANG_WARNING: [#def1243]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/netlogon/srv_netlog_nt.c:210:3: warning[deadcode.DeadStores]: Value stored to 'fn' is never read
#  208|   		break;
#  209|   	case NDR_NETR_LOGONCONTROL2:
#  210|-> 		fn = "_netr_LogonControl2";
#  211|   		break;
#  212|   	case NDR_NETR_LOGONCONTROL2EX:

Error: CLANG_WARNING: [#def1244]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/netlogon/srv_netlog_nt.c:213:3: warning[deadcode.DeadStores]: Value stored to 'fn' is never read
#  211|   		break;
#  212|   	case NDR_NETR_LOGONCONTROL2EX:
#  213|-> 		fn = "_netr_LogonControl2Ex";
#  214|   		break;
#  215|   	default:

Error: CPPCHECK_WARNING: [#def1245]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_handles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1246]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:1361:3: warning[deadcode.DeadStores]: Value stored to 'client_type' is never read
# 1359|   		bool found;
# 1360|   
# 1361|-> 		client_type = "new";
# 1362|   
# 1363|   		found = security_token_find_npa_flags(

Error: CLANG_WARNING: [#def1247]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:1555:17: warning[core.NullDereference]: Access to field 'bindings' results in a dereference of a null pointer (loaded from variable 'map')
# 1553|   		}
# 1554|   
# 1555|-> 		p = strv_find(map->bindings, binding_string);
# 1556|   		if (p == NULL) {
# 1557|   			int ret = strv_add(

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1248]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_iface_binding_map_add_endpoint’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:1555:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
# 1553|   		}
# 1554|   
# 1555|-> 		p = strv_find(map->bindings, binding_string);
# 1556|   		if (p == NULL) {
# 1557|   			int ret = strv_add(

Error: CLANG_WARNING: [#def1249]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:1612:23: warning[core.NullDereference]: Access to field 'bindings' results in a dereference of a null pointer (loaded from variable 'map')
# 1610|   		char *keystr = ndr_syntax_id_buf_string(&map->iface, &buf);
# 1611|   		TDB_DATA value = {
# 1612|-> 			.dptr = (uint8_t *)map->bindings,
# 1613|   			.dsize = talloc_array_length(map->bindings),
# 1614|   		};

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

Error: CLANG_WARNING: [#def1251]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:2157:18: warning[core.NullDereference]: Access to field 'binding' results in a dereference of a null pointer (loaded from variable 'client')
# 2155|   	}
# 2156|   
# 2157|-> 	client->binding = dcerpc_binding_string(client, endpoint->binding);
# 2158|   	if (client->binding == NULL) {
# 2159|   		DBG_WARNING("dcerpc_binding_string failed, dropping client\n");

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

Error: CLANG_WARNING: [#def1253]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:2554:23: warning[core.NullDereference]: Access to field 'server_index' results in a dereference of a null pointer (loaded from variable 'server')
# 2552|   	}
# 2553|   
# 2554|-> 	server->server_index = state->num_prepared;
# 2555|   	host->servers[state->num_prepared] = server;
# 2556|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1254]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_host_server_setup_done’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_host.c:2554:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2552|   	}
# 2553|   
# 2554|-> 	server->server_index = state->num_prepared;
# 2555|   	host->servers[state->num_prepared] = server;
# 2556|   

Error: CPPCHECK_WARNING: [#def1255]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_worker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1256]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/rpc_worker.c:243:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  241|   			client, b);
#  242|   		if (b_without_port == NULL) {
#  243|-> 			status = NT_STATUS_NO_MEMORY;
#  244|   			goto fail;
#  245|   		}

Error: CPPCHECK_WARNING: [#def1257]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_chgpasswd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1258]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_chgpasswd.c: scope_hint: In function ‘dochild’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_chgpasswd.c:48: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_chgpasswd.c:95:34: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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): [#def1259]
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_chgpasswd.c:95:34: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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): [#def1260]
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_chgpasswd.c:95:34: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1261]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1262]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:800:2: warning[deadcode.DeadStores]: Value stored to 'info' is never read
#  798|   	struct dom_sid_buf buf;
#  799|   
#  800|-> 	info = samr_policy_handle_find(p,
#  801|   				       r->in.handle,
#  802|   				       SAMR_HANDLE_CONNECT,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1263]
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:243: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:34: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c: scope_hint: In function ‘make_samr_lookup_rids’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:2186:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200:20: note: in definition of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:7910: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:257: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:8:22: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:195:16: note: in expansion of macro ‘NT_STATUS_OK’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:2186:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:2186:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200:20: note: in definition of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200:20: note: in definition of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:200: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): [#def1264]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:2187:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:8:22: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:195:16: note: in expansion of macro ‘NT_STATUS_OK’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1265]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_nt.c:3988:14: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 3986|   	 */
# 3987|   
# 3988|-> 	nt_status = access_check_object(psd, session_info->security_token,
# 3989|   					needed_priv, SEC_PRIV_INVALID,
# 3990|   					GENERIC_RIGHTS_USER_WRITE, des_access,

Error: CPPCHECK_WARNING: [#def1266]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/samr/srv_samr_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1267]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/spoolss/srv_spoolss_nt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1268]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/srv_pipe_hnd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1269]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/srvsvc/srv_srvsvc_nt.c:902:31: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'sd_buf')
#  900|   				struct sec_desc_buf *sd_buf = NULL;
#  901|   				init_srv_share_info_1501(p, &sd_buf, snum);
#  902|-> 				ctr.ctr1501->array[i++] = *sd_buf;
#  903|   			}
#  904|   		}

Error: CPPCHECK_WARNING: [#def1270]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/winreg/srv_winreg_nt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1271]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/winreg/srv_winreg_nt.c:295:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  293|   			if (!prs_init(&prs_hkpd, *r->in.data_size, p->mem_ctx, MARSHALL))
#  294|   				return WERR_NOT_ENOUGH_MEMORY;
#  295|-> 			status = reg_perfcount_get_hkpd(
#  296|   				&prs_hkpd, *r->in.data_size, &outbuf_size, NULL);
#  297|   			outbuf = (uint8_t *)prs_hkpd.data_p;

Error: CLANG_WARNING: [#def1272]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/winreg/srv_winreg_nt.c:317:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  315|   			if (!prs_init(&prs_hkpd, *r->in.data_size, p->mem_ctx, MARSHALL))
#  316|   				return WERR_NOT_ENOUGH_MEMORY;
#  317|-> 			status = reg_perfcount_get_hkpd(
#  318|   				&prs_hkpd, *r->in.data_size, &outbuf_size,
#  319|   				r->in.value_name->name);

Error: CLANG_WARNING: [#def1273]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/winreg/srv_winreg_nt.c:355:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  353|   	}
#  354|   
#  355|-> 	status = WERR_FILE_NOT_FOUND;
#  356|   
#  357|   	if (*r->in.data_size < outbuf_size) {

Error: CLANG_WARNING: [#def1274]
samba-4.20.2-build/samba-4.20.2/source3/rpc_server/wkssvc/srv_wkssvc_nt.c:425:32: warning[core.NullDereference]: Dereference of null pointer
#  423|   	for (i=0; i<num_dom_users; i++) {
#  424|   		ctr1->user1[i].user_name =
#  425|-> 				talloc_strdup(ctr1->user1, dom_users[i].name);
#  426|   		ctr1->user1[i].logon_domain =
#  427|   				talloc_strdup(ctr1->user1, dom_users[i].domain);

Error: CLANG_WARNING: [#def1275]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_samr.c:3253:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 3251|   			rc = sess_crypt_blob(&out, &in, &session_key, SAMBA_GNUTLS_ENCRYPT);
# 3252|   			if (rc != 0) {
# 3253|-> 				status = gnutls_error_to_ntstatus(rc,
# 3254|   								  NT_STATUS_ACCESS_DISABLED_BY_POLICY_OTHER);
# 3255|   			}

Error: CLANG_WARNING: [#def1276]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_samr.c:3268:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 3266|   			rc = sess_crypt_blob(&out, &in, &session_key, SAMBA_GNUTLS_ENCRYPT);
# 3267|   			if (rc != 0) {
# 3268|-> 				status = gnutls_error_to_ntstatus(rc,
# 3269|   								  NT_STATUS_ACCESS_DISABLED_BY_POLICY_OTHER);
# 3270|   			}

Error: CLANG_WARNING: [#def1277]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_samr.c:3309:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 3307|   			rc = sess_crypt_blob(&out, &in, &session_key, SAMBA_GNUTLS_ENCRYPT);
# 3308|   			if (rc != 0) {
# 3309|-> 				status = gnutls_error_to_ntstatus(rc,
# 3310|   								  NT_STATUS_ACCESS_DISABLED_BY_POLICY_OTHER);
# 3311|   			}

Error: CLANG_WARNING: [#def1278]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_samr.c:3321:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 3319|   			rc = sess_crypt_blob(&out, &in, &session_key, SAMBA_GNUTLS_ENCRYPT);
# 3320|   			if (rc != 0) {
# 3321|-> 				status = gnutls_error_to_ntstatus(rc,
# 3322|   								  NT_STATUS_ACCESS_DISABLED_BY_POLICY_OTHER);
# 3323|   			}

Error: CLANG_WARNING: [#def1279]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1515:2: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1513|   static void display_printdriverdir_1(struct spoolss_DriverDirectoryInfo1 *r)
# 1514|   {
# 1515|-> 	printf("\tDirectory Name:[%s]\n", r->directory_name);
# 1516|   }
# 1517|   

Error: CLANG_WARNING: [#def1280]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1734:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1732|   
# 1733|   	/* fill in the UNISTR fields */
# 1734|-> 	str = get_driver_3_param(mem_ctx, args, ":", &r->driver_name, &saveptr);
# 1735|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->driver_path, &saveptr);
# 1736|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->data_file, &saveptr);

Error: CLANG_WARNING: [#def1281]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1735:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1733|   	/* fill in the UNISTR fields */
# 1734|   	str = get_driver_3_param(mem_ctx, args, ":", &r->driver_name, &saveptr);
# 1735|-> 	str = get_driver_3_param(mem_ctx, NULL, ":", &r->driver_path, &saveptr);
# 1736|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->data_file, &saveptr);
# 1737|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->config_file, &saveptr);

Error: CLANG_WARNING: [#def1282]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1736:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1734|   	str = get_driver_3_param(mem_ctx, args, ":", &r->driver_name, &saveptr);
# 1735|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->driver_path, &saveptr);
# 1736|-> 	str = get_driver_3_param(mem_ctx, NULL, ":", &r->data_file, &saveptr);
# 1737|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->config_file, &saveptr);
# 1738|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->help_file, &saveptr);

Error: CLANG_WARNING: [#def1283]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1737:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1735|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->driver_path, &saveptr);
# 1736|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->data_file, &saveptr);
# 1737|-> 	str = get_driver_3_param(mem_ctx, NULL, ":", &r->config_file, &saveptr);
# 1738|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->help_file, &saveptr);
# 1739|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->monitor_name, &saveptr);

Error: CLANG_WARNING: [#def1284]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1738:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1736|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->data_file, &saveptr);
# 1737|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->config_file, &saveptr);
# 1738|-> 	str = get_driver_3_param(mem_ctx, NULL, ":", &r->help_file, &saveptr);
# 1739|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->monitor_name, &saveptr);
# 1740|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->default_datatype, &saveptr);

Error: CLANG_WARNING: [#def1285]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1739:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1737|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->config_file, &saveptr);
# 1738|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->help_file, &saveptr);
# 1739|-> 	str = get_driver_3_param(mem_ctx, NULL, ":", &r->monitor_name, &saveptr);
# 1740|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->default_datatype, &saveptr);
# 1741|   

Error: CLANG_WARNING: [#def1286]
samba-4.20.2-build/samba-4.20.2/source3/rpcclient/cmd_spoolss.c:1740:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 1738|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->help_file, &saveptr);
# 1739|   	str = get_driver_3_param(mem_ctx, NULL, ":", &r->monitor_name, &saveptr);
# 1740|-> 	str = get_driver_3_param(mem_ctx, NULL, ":", &r->default_datatype, &saveptr);
# 1741|   
# 1742|   	/* <Comma Separated List of Dependent Files> */

Error: CPPCHECK_WARNING (CWE-457): [#def1287]
samba-4.20.2-build/samba-4.20.2/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: [#def1288]
samba-4.20.2-build/samba-4.20.2/source3/services/svc_winreg_glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1289]
samba-4.20.2-build/samba-4.20.2/source3/services/svc_winreg_glue.c:312:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  310|   	}
#  311|   
#  312|-> 	status = dcerpc_winreg_query_sz(mem_ctx,
#  313|   					h,
#  314|   					&key_hnd,

Error: CPPCHECK_WARNING: [#def1290]
samba-4.20.2-build/samba-4.20.2/source3/smbd/blocking.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1291]
samba-4.20.2-build/samba-4.20.2/source3/smbd/close.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1292]
samba-4.20.2-build/samba-4.20.2/source3/smbd/conn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1293]
samba-4.20.2-build/samba-4.20.2/source3/smbd/dfree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1294]
samba-4.20.2-build/samba-4.20.2/source3/smbd/dir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1295]
samba-4.20.2-build/samba-4.20.2/source3/smbd/dir.c:1172:28: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'dir_hnd')
# 1170|   	const char *n;
# 1171|   	char *talloced = NULL;
# 1172|-> 	connection_struct *conn = dir_hnd->conn;
# 1173|   
# 1174|   	if (dir_hnd->file_number < 2) {

Error: CPPCHECK_WARNING: [#def1296]
samba-4.20.2-build/samba-4.20.2/source3/smbd/dosmode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1297]
samba-4.20.2-build/samba-4.20.2/source3/smbd/durable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1298]
samba-4.20.2-build/samba-4.20.2/source3/smbd/filename.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1299]
samba-4.20.2-build/samba-4.20.2/source3/smbd/files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1300]
samba-4.20.2-build/samba-4.20.2/source3/smbd/mangle_hash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1301]
samba-4.20.2-build/samba-4.20.2/source3/smbd/mangle_hash2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1302]
samba-4.20.2-build/samba-4.20.2/source3/smbd/mangle_hash2.c:762:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  760|   	/* now form the mangled name. */
#  761|   	for (i=0;i<mangle_prefix;i++) {
#  762|-> 		new_name[i] = lead_chars[i];
#  763|   	}
#  764|   	new_name[7] = base_forward(v % 36);

Error: CPPCHECK_WARNING: [#def1303]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1304]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:750:6: warning[core.NullDereference]: Access to field 'fsp' results in a dereference of a null pointer (loaded from variable 'parent_smb_fname')
#  748|   	}
#  749|   
#  750|-> 	if (parent_smb_fname->fsp == NULL) {
#  751|   		/* Unable to open parent. */
#  752|   		DBG_DEBUG("dfspath = %s. reqpath = %s. "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1305]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c: scope_hint: In function ‘dfs_path_lookup’
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:750:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parent_smb_fname’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:50: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:692:25: note: in expansion of macro ‘talloc_stackframe’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/util/ntstatus.h:124:29: note: in expansion of macro ‘likely’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1306]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:1050:9: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'c')
# 1048|   		return status;
# 1049|   	}
# 1050|-> 	conn = c->conn;
# 1051|   
# 1052|   	/*

Error: CLANG_WARNING: [#def1307]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:1251:14: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'c')
# 1249|   	}
# 1250|   	*pp_path_out = path_out;
# 1251|-> 	*conn_out = c->conn;
# 1252|   	return True;
# 1253|   }

Error: CLANG_WARNING: [#def1308]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:1510:9: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'c')
# 1508|   		return 0;
# 1509|   	}
# 1510|-> 	conn = c->conn;
# 1511|   
# 1512|   	/* Count a link for the msdfs root - convention */

Error: CLANG_WARNING: [#def1309]
samba-4.20.2-build/samba-4.20.2/source3/smbd/msdfs.c:1619:9: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'c')
# 1617|   		return 0;
# 1618|   	}
# 1619|-> 	conn = c->conn;
# 1620|   
# 1621|   	/* form a junction for the msdfs root - convention

Error: CPPCHECK_WARNING: [#def1310]
samba-4.20.2-build/samba-4.20.2/source3/smbd/notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1311]
samba-4.20.2-build/samba-4.20.2/source3/smbd/notify_inotify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1312]
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1313]
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c: scope_hint: In function ‘notifyd_apply_rec_change’
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c:407:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘instance’
/usr/include/tevent.h:32: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c:1290:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd.c:357:9: note: in expansion of macro ‘DBG_DEBUG’
#  405|   
#  406|   	if (i < num_instances) {
#  407|-> 		instance->instance = *chg;
#  408|   	} else {
#  409|   		/*

Error: CPPCHECK_WARNING: [#def1314]
samba-4.20.2-build/samba-4.20.2/source3/smbd/notifyd/notifyd_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1315]
samba-4.20.2-build/samba-4.20.2/source3/smbd/ntquotas.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1316]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1317]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c:589:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  587|   		 * with an empty name argument to readlinkat
#  588|   		 */
#  589|-> 		status = readlink_talloc(talloc_tos(), fsp, NULL, &target);
#  590|   	} else {
#  591|   		status = readlink_talloc(

Error: CLANG_WARNING: [#def1318]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c:591:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  589|   		status = readlink_talloc(talloc_tos(), fsp, NULL, &target);
#  590|   	} else {
#  591|-> 		status = readlink_talloc(
#  592|   			talloc_tos(), dirfsp, symlink_name, &target);
#  593|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def1319]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c:3139: error[unknownEvaluationOrder]: Expression 'req,NULL,(struct timeval){.tv_usec=timeout_usecs},(struct timeval){.tv_usec=200000}' depends on order of evaluation of side effects
# 3137|   		req,
# 3138|   		NULL,
# 3139|-> 		(struct timeval) { .tv_usec = timeout_usecs },
# 3140|   		(struct timeval) { .tv_usec = 200000 });
# 3141|   	return ok;

Error: CLANG_WARNING: [#def1320]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c:4790:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 4788|   
# 4789|   			if (dir_existed) {
# 4790|-> 				status = NT_STATUS_OK;
# 4791|   				info = FILE_WAS_OPENED;
# 4792|   			} else {

Error: CLANG_WARNING: [#def1321]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c:6296:3: warning[deadcode.DeadStores]: Value stored to 'oplock_request' is never read
# 6294|   		 */
# 6295|   
# 6296|-> 		oplock_request = 0;
# 6297|   		status = open_directory(conn,
# 6298|   					req,

Error: CLANG_WARNING: [#def1322]
samba-4.20.2-build/samba-4.20.2/source3/smbd/open.c:6352:4: warning[deadcode.DeadStores]: Value stored to 'oplock_request' is never read
# 6350|   			}
# 6351|   
# 6352|-> 			oplock_request = 0;
# 6353|   			status = open_directory(conn,
# 6354|   						req,

Error: CPPCHECK_WARNING: [#def1323]
samba-4.20.2-build/samba-4.20.2/source3/smbd/posix_acls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1324]
samba-4.20.2-build/samba-4.20.2/source3/smbd/posix_acls.c:1442:3: warning[deadcode.DeadStores]: Value stored to 'pace_other' is never read
# 1440|   
# 1441|   		DLIST_ADD(*pp_ace, pace);
# 1442|-> 		pace_other = pace;
# 1443|   	}
# 1444|   

Error: CLANG_WARNING: [#def1325]
samba-4.20.2-build/samba-4.20.2/source3/smbd/posix_acls.c:1523:3: warning[deadcode.DeadStores]: Value stored to 'got_duplicate_user' is never read
# 1521|   		DLIST_ADD(*pp_ace, pace);
# 1522|   
# 1523|-> 		got_duplicate_user = true;
# 1524|   	}
# 1525|   

Error: CLANG_WARNING: [#def1326]
samba-4.20.2-build/samba-4.20.2/source3/smbd/posix_acls.c:1544:3: warning[deadcode.DeadStores]: Value stored to 'got_duplicate_group' is never read
# 1542|   		DLIST_ADD(*pp_ace, pace);
# 1543|   
# 1544|-> 		got_duplicate_group = true;
# 1545|   	}
# 1546|   

Error: CLANG_WARNING: [#def1327]
samba-4.20.2-build/samba-4.20.2/source3/smbd/posix_acls.c:3860:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 3858|   
# 3859|   	/* Ensure the stat struct in the fsp is correct. */
# 3860|-> 	status = vfs_stat_fsp(fsp);
# 3861|   
# 3862|   	return NT_STATUS_OK;

Error: CLANG_WARNING: [#def1328]
samba-4.20.2-build/samba-4.20.2/source3/smbd/pysmbd.c:630:8: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'fsp')
#  628|   	}
#  629|   
#  630|-> 	ret = SMB_VFS_FCHOWN(fsp, uid, gid);
#  631|   	if (ret != 0) {
#  632|   		int saved_errno = errno;

Error: CLANG_WARNING: [#def1329]
samba-4.20.2-build/samba-4.20.2/source3/smbd/pysmbd.c:904:10: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  902|   	}
#  903|   
#  904|-> 	py_sd = py_return_ndr_struct("samba.dcerpc.security", "descriptor", sd, sd);
#  905|   
#  906|   	TALLOC_FREE(frame);

Error: CPPCHECK_WARNING: [#def1330]
samba-4.20.2-build/samba-4.20.2/source3/smbd/sec_ctx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1331]
samba-4.20.2-build/samba-4.20.2/source3/smbd/server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1332]
samba-4.20.2-build/samba-4.20.2/source3/smbd/server.c:314: error[uninitvar]: Uninitialized variable: buf
#  312|   		SIVAL(buf, 0, am_parent->num_children);
#  313|   		messaging_send_buf(ctx, srv_id, MSG_SMB_NUM_CHILDREN,
#  314|-> 				   buf, sizeof(buf));
#  315|   	}
#  316|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1333]
samba-4.20.2-build/samba-4.20.2/source3/smbd/server.c: scope_hint: In function ‘smbd_open_one_socket’
samba-4.20.2-build/samba-4.20.2/source3/smbd/server.c:1107:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.fd’
# 1105|   	set_blocking(s->fd, False);
# 1106|   
# 1107|-> 	if (listen(s->fd, SMBD_LISTEN_BACKLOG) == -1) {
# 1108|   		DEBUG(0,("smbd_open_one_socket: listen: "
# 1109|   			"%s\n", strerror(errno)));

Error: CLANG_WARNING: [#def1334]
samba-4.20.2-build/samba-4.20.2/source3/smbd/server.c:2109:2: warning[deadcode.DeadStores]: Value stored to 'frame' is never read
# 2107|   	TALLOC_FREE(frame);
# 2108|   	/* make sure we always have a valid stackframe */
# 2109|-> 	frame = talloc_stackframe();
# 2110|   
# 2111|   	if (!cmdline_daemon_cfg->fork) {

Error: CPPCHECK_WARNING: [#def1335]
samba-4.20.2-build/samba-4.20.2/source3/smbd/server_exit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1336]
samba-4.20.2-build/samba-4.20.2/source3/smbd/server_reload.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1337]
samba-4.20.2-build/samba-4.20.2/source3/smbd/share_access.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1338]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_aio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1339]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c: scope_hint: In function ‘copy_trans_params_and_data’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:70:17: warning[-Wanalyzer-null-argument]: use of NULL ‘rdata’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:27: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:684:17: note: in expansion of macro ‘SVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:827:22: note: in expansion of macro ‘talloc_tos’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:243: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:621:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:555:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/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): [#def1340]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:80:17: warning[-Wanalyzer-null-argument]: use of NULL ‘rdata’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:684:17: note: in expansion of macro ‘SVAL’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:827:22: note: in expansion of macro ‘talloc_tos’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:621:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:555:17: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_ipc.c:484:25: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1341]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_lanman.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1342]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_message.c:228:2: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  226|   		&xconn->smb1.msg_state->from, p,
#  227|   		STR_ASCII|STR_TERMINATE) + 1;
#  228|-> 	p += srvstr_pull_req_talloc(
#  229|   		xconn->smb1.msg_state, req,
#  230|   		&xconn->smb1.msg_state->to, p,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1343]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c: scope_hint: In function ‘send_nt_replies’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:218:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pp’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:2655:13: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:2000:20: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/source3/include/vfs.h:1405: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:137: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/vfs_macros.h:409:81: note: in definition of macro ‘SMB_VFS_FSCTL’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1344]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:232:4: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  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): [#def1345]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:232:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pd’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:2655:13: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:1841:29: note: in expansion of macro ‘SVAL’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:1847:32: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:42:24: note: in expansion of macro ‘SMB_REALLOC’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:62:6: note: in expansion of macro ‘PUSH_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:67:6: note: in expansion of macro ‘PUSH_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:117:28: note: in expansion of macro ‘PUSH_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:1873: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: CLANG_WARNING: [#def1346]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:1458:2: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 1456|   
# 1457|   	p++;
# 1458|-> 	p += srvstr_get_path_req(ctx, req, &newname, p, STR_TERMINATE,
# 1459|   				       &status);
# 1460|   	if (!NT_STATUS_IS_OK(status)) {

Error: CLANG_WARNING: [#def1347]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:1829:8: warning[deadcode.DeadStores]: Value stored to 'data' during its initialization is never read
# 1827|   {
# 1828|   	char *params = *ppparams;
# 1829|-> 	char *data = *ppdata;
# 1830|   	size_t sd_size = 0;
# 1831|   	uint32_t security_info_wanted;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1348]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c: scope_hint: In function ‘call_nt_transact_get_user_quota’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:2168:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:2655:13: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:2103:9: note: in expansion of macro ‘DBG_DEBUG’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_nttrans.c:42:24: note: in expansion of macro ‘SMB_REALLOC’
samba-4.20.2-build/samba-4.20.2/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
# 2166|   	SIVAL(params, 0, data_len);
# 2167|   	pdata = nttrans_realloc(ppdata, data_len);
# 2168|-> 	memcpy(pdata, resp_data, data_len);
# 2169|   
# 2170|   	TALLOC_FREE(tmp_ctx);

Error: CPPCHECK_WARNING: [#def1349]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_pipes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1350]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1351]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_process.c:361:4: warning[deadcode.DeadStores]: Value stored to 'doff' is never read
#  359|   	                }
#  360|   		} else {
#  361|-> 			doff = STANDARD_WRITE_AND_X_HEADER_SIZE;
#  362|   		}
#  363|   

Error: CLANG_WARNING: [#def1352]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_process.c:1139:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1137|   		switch (type) {
# 1138|   		case SMBsesssetupX:
# 1139|-> 			status = NT_STATUS_OK;
# 1140|   			break;
# 1141|   		default:

Error: CPPCHECK_WARNING: [#def1353]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1354]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_sesssetup.c:143:2: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  141|   	native_lanman = tmp ? tmp : "";
#  142|   
#  143|-> 	p += srvstr_pull_req_talloc(talloc_tos(), req, &tmp, p,
#  144|   				     STR_TERMINATE);
#  145|   	primary_domain = tmp ? tmp : "";

Error: CLANG_WARNING: [#def1355]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_sesssetup.c:825:4: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  823|   		byte_count = SVAL(req->vwv+13, 0);
#  824|   		if ( PTR_DIFF(p, save_p) < byte_count) {
#  825|-> 			p += srvstr_pull_req_talloc(talloc_tos(), req, &tmp, p,
#  826|   						    STR_TERMINATE);
#  827|   			primary_domain = tmp ? tmp : "";

Error: CLANG_WARNING: [#def1356]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:226:4: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  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-688): [#def1357]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c: scope_hint: In function ‘send_trans2_replies’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:226:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pd’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:5642:13: note: in expansion of macro ‘SVAL’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:5220:13: note: in expansion of macro ‘ENCRYPTION_REQUIRED’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:542:17: note: in expansion of macro ‘SVAL’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:559:13: note: in expansion of macro ‘IS_IPC’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:559:13: note: in expansion of macro ‘IS_IPC’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:588:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:36:6: note: in expansion of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:46:17: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:111:23: note: in expansion of macro ‘PULL_LE_U32’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:640:21: note: in expansion of macro ‘IVAL’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1358]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:1173:3: warning[deadcode.DeadStores]: Value stored to 'dptr_num' is never read
# 1171|   
# 1172|   	if(numentries == 0) {
# 1173|-> 		dptr_num = -1;
# 1174|   		/*
# 1175|   		 * We may have already closed the file in the

Error: CLANG_WARNING: [#def1359]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:1623:3: warning[deadcode.DeadStores]: Value stored to 'dptr_num' is never read
# 1621|   	if(close_after_request || (finished && close_if_end)) {
# 1622|   		DBG_INFO("closing dptr_num = %d\n", dptr_num);
# 1623|-> 		dptr_num = -1;
# 1624|   		close_file_free(NULL, &fsp, NORMAL_CLOSE);
# 1625|   	}

Error: CLANG_WARNING: [#def1360]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:1929:8: warning[deadcode.DeadStores]: Value stored to 'params' during its initialization is never read
# 1927|   				 unsigned int max_data_bytes)
# 1928|   {
# 1929|-> 	char *params = *pparams;
# 1930|   	char *pdata = *ppdata;
# 1931|   	unsigned int data_size = 0;

Error: CLANG_WARNING: [#def1361]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:1930:8: warning[deadcode.DeadStores]: Value stored to 'pdata' during its initialization is never read
# 1928|   {
# 1929|   	char *params = *pparams;
# 1930|-> 	char *pdata = *ppdata;
# 1931|   	unsigned int data_size = 0;
# 1932|   	unsigned int param_size = 2;

Error: CLANG_WARNING: [#def1362]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:2055:8: warning[deadcode.DeadStores]: Value stored to 'params' during its initialization is never read
# 2053|   				     unsigned int max_data_bytes)
# 2054|   {
# 2055|-> 	char *params = *pparams;
# 2056|   	char *pdata = *ppdata;
# 2057|   	unsigned int data_size = 0;

Error: CLANG_WARNING: [#def1363]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:5073:8: warning[deadcode.DeadStores]: Value stored to 'params' during its initialization is never read
# 5071|   				      unsigned int max_data_bytes)
# 5072|   {
# 5073|-> 	char *params = *pparams;
# 5074|   
# 5075|   	DEBUG(3,("call_trans2findnotifynext\n"));

Error: CLANG_WARNING: [#def1364]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_trans2.c:5160:8: warning[deadcode.DeadStores]: Value stored to 'pdata' during its initialization is never read
# 5158|   	const struct loadparm_substitution *lp_sub =
# 5159|   		loadparm_s3_global_substitution();
# 5160|-> 	char *pdata = *ppdata;
# 5161|   	files_struct *fsp = file_fsp(req, SVAL(req->vwv+15, 0));
# 5162|   	NTSTATUS status;

Error: CPPCHECK_WARNING: [#def1365]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb1_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1366]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_aio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1367]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_break.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1368]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_create.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1369]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_create.c:370:11: warning[core.CallAndMessage]: Passed-by-value struct argument contains uninitialized data (e.g., field: 'num_blobs')
#  368|   	}
#  369|   
#  370|-> 	status = smb2_create_blob_push(smb2req, &out_context_buffer, out_context_blobs);
#  371|   	if (!NT_STATUS_IS_OK(status)) {
#  372|   		error = smbd_smb2_request_error(smb2req, status);

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

Error: CLANG_WARNING: [#def1371]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_create.c:507:3: warning[deadcode.DeadStores]: Value stored to 'is_dfs' is never read
#  505|   		 */
#  506|   		smb1req->flags2 &= ~FLAGS2_DFS_PATHNAMES;
#  507|-> 		is_dfs = false;
#  508|   	}
#  509|   

Error: CLANG_WARNING: [#def1372]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_create.c:869:3: warning[deadcode.DeadStores]: Value stored to 'is_dfs' is never read
#  867|   		 */
#  868|   		smb1req->flags2 &= ~FLAGS2_DFS_PATHNAMES;
#  869|-> 		is_dfs = false;
#  870|   	}
#  871|   

Error: CLANG_WARNING: [#def1373]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_create.c:1367:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1365|   			state->_purge_create_guid = state->_create_guid;
# 1366|   			state->purge_create_guid = &state->_purge_create_guid;
# 1367|-> 			status = NT_STATUS_OK;
# 1368|   			state->replay_operation = false;
# 1369|   		} else if (NT_STATUS_EQUAL(status, NT_STATUS_FILE_NOT_AVAILABLE)) {

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

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

Error: CPPCHECK_WARNING: [#def1376]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_flush.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1377]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_getinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1378]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1379]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_ioctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1380]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_ioctl_dfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1381]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_ioctl_filesys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1382]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_ioctl_named_pipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1383]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_ioctl_network_fs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1384]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1385]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_negprot.c:234:11: warning[deadcode.DeadStores]: Value stored to 'max_trans' during its initialization is never read
#  232|   	enum protocol_types protocol = PROTOCOL_NONE;
#  233|   	uint32_t max_limit;
#  234|-> 	uint32_t max_trans = lp_smb2_max_trans();
#  235|   	uint32_t max_read = lp_smb2_max_read();
#  236|   	uint32_t max_write = lp_smb2_max_write();

Error: CLANG_WARNING: [#def1386]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_negprot.c:235:11: warning[deadcode.DeadStores]: Value stored to 'max_read' during its initialization is never read
#  233|   	uint32_t max_limit;
#  234|   	uint32_t max_trans = lp_smb2_max_trans();
#  235|-> 	uint32_t max_read = lp_smb2_max_read();
#  236|   	uint32_t max_write = lp_smb2_max_write();
#  237|   	NTTIME now = timeval_to_nttime(&req->request_time);

Error: CLANG_WARNING: [#def1387]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_negprot.c:236:11: warning[deadcode.DeadStores]: Value stored to 'max_write' during its initialization is never read
#  234|   	uint32_t max_trans = lp_smb2_max_trans();
#  235|   	uint32_t max_read = lp_smb2_max_read();
#  236|-> 	uint32_t max_write = lp_smb2_max_write();
#  237|   	NTTIME now = timeval_to_nttime(&req->request_time);
#  238|   	bool posix = false;

Error: CPPCHECK_WARNING: [#def1388]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1389]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_nttrans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1390]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_oplock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1391]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_pipes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1392]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1393]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_query_directory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1394]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-465): [#def1395]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_read.c: scope_hint: In function ‘smb2_sendfile_send_data’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_read.c:238:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.20.2-build/samba-4.20.2/source3/include/vfs.h:1405: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:137: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_read.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_read.c:218:17: note: in expansion of macro ‘SMB_VFS_SENDFILE’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:51: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/smb_macros.h:76:35: note: in definition of macro ‘SNUM’
#  236|   
#  237|   		if (errno == ENOTSUP) {
#  238|-> 			set_use_sendfile(SNUM(fsp->conn), false);
#  239|   			DBG_WARNING("Disabling sendfile use as sendfile is "
#  240|   				    "not supported by the system\n");

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

Error: CPPCHECK_WARNING: [#def1397]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_reply.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1398]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1399]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_server.c:2706:17: warning[core.NullDereference]: Access to field 'global' results in a dereference of a null pointer (loaded from variable 'session')
# 2704|   	}
# 2705|   
# 2706|-> 	session_info = session->global->auth_session_info;
# 2707|   	if (session_info == NULL) {
# 2708|   		return NT_STATUS_INVALID_HANDLE;

Error: CLANG_WARNING: [#def1400]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_server.c:3180:3: warning[deadcode.DeadStores]: Value stored to 'signing_required' is never read
# 3178|   
# 3179|   	if (req->was_encrypted) {
# 3180|-> 		signing_required = false;
# 3181|   	} else if (signing_required || (flags & SMB2_HDR_FLAG_SIGNED)) {
# 3182|   		struct smb2_signing_key *signing_key = NULL;

Error: CPPCHECK_WARNING: [#def1401]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1402]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_sesssetup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1403]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_setinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1404]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_setinfo.c:601:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  599|   			return tevent_req_post(req, ev);
#  600|   		}
#  601|-> 		status = NT_STATUS_OK;
#  602|   		break;
#  603|   #else

Error: CPPCHECK_WARNING: [#def1405]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_tcon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1406]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_trans2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1407]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_trans2.c:1154:2: warning[deadcode.DeadStores]: Value stored to 'off' is never read
# 1152|   	}
# 1153|   
# 1154|-> 	off += pad;
# 1155|   	/* initialize padding to 0 */
# 1156|   	if (pad) {

Error: CLANG_WARNING: [#def1408]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_trans2.c:1168:2: warning[deadcode.DeadStores]: Value stored to 'pad' is never read
# 1166|   	last_entry_ptr = p;
# 1167|   
# 1168|-> 	pad = 0;
# 1169|   	off = 0;
# 1170|   

Error: CLANG_WARNING: [#def1409]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_trans2.c:1169:2: warning[deadcode.DeadStores]: Value stored to 'off' is never read
# 1167|   
# 1168|   	pad = 0;
# 1169|-> 	off = 0;
# 1170|   
# 1171|   	switch (info_level) {

Error: CLANG_WARNING: [#def1410]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_trans2.c:2986:4: warning[deadcode.DeadStores]: Value stored to 'ofs' is never read
# 2984|   
# 2985|   			SIVAL(data, ofs, next_offset - ofs);
# 2986|-> 			ofs = next_offset;
# 2987|   		}
# 2988|   

Error: CLANG_WARNING: [#def1411]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_trans2.c:3014:8: warning[deadcode.DeadStores]: Value stored to 'pdata' during its initialization is never read
# 3012|   			       unsigned int *pdata_size)
# 3013|   {
# 3014|-> 	char *pdata = *ppdata;
# 3015|   	char *dstart, *dend;
# 3016|   	unsigned int data_size;

Error: CPPCHECK_WARNING: [#def1412]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smb2_write.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1413]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1414]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1415]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:295:25: warning[core.NullDereference]: Access to field 'server_id' results in a dereference of a null pointer (loaded from variable 'global0')
#  293|   
#  294|   	DBG_WARNING("smbd %s did not clean up record %s\n",
#  295|-> 		    server_id_str_buf(global0->server_id, &buf),
#  296|   		    tdb_data_dbg(key));
#  297|   

Error: CPPCHECK_WARNING (CWE-457): [#def1416]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:1077: error[uninitvar]: Uninitialized variable: data
# 1075|   		uint8_t data[SMBXSRV_OPEN_REPLAY_CACHE_FIXED_SIZE];
# 1076|   
# 1077|-> 		blob = data_blob_const(data, ARRAY_SIZE(data));
# 1078|   		ndr_err = ndr_push_struct_into_fixed_blob(&blob, &rc,
# 1079|   			(ndr_push_flags_fn_t)ndr_push_smbXsrv_open_replay_cache);

Error: CLANG_WARNING: [#def1417]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:1232:7: warning[core.NullDereference]: Access to field 'durable' results in a dereference of a null pointer (loaded from variable 'global')
# 1230|   	}
# 1231|   
# 1232|-> 	if (!global->durable) {
# 1233|   		DBG_NOTICE("%"PRIu64"/%"PRIu64" not durable in %s\n",
# 1234|   			   global->open_persistent_id,

Error: CLANG_WARNING: [#def1418]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:1447:3: warning[deadcode.DeadStores]: Value stored to 'delete_open' is never read
# 1445|   			    dbwrap_name(dbwrap_record_get_db(rec)),
# 1446|   			    nt_errstr(state->status));
# 1447|-> 		delete_open = true;
# 1448|   		goto do_delete;
# 1449|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1419]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c: scope_hint: In function ‘smbXsrv_open_cleanup_fn’
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:1457:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘global’
# 1455|   		int64_t tdiff;
# 1456|   
# 1457|-> 		nttime_to_timeval(&disconnect_time, global->disconnect_time);
# 1458|   		tdiff = usec_time_diff(&now, &disconnect_time);
# 1459|   		delete_open = (tdiff >= 1000*global->durable_timeout_msec);

Error: CLANG_WARNING: [#def1420]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:1457:39: warning[core.NullDereference]: Access to field 'disconnect_time' results in a dereference of a null pointer (loaded from variable 'global')
# 1455|   		int64_t tdiff;
# 1456|   
# 1457|-> 		nttime_to_timeval(&disconnect_time, global->disconnect_time);
# 1458|   		tdiff = usec_time_diff(&now, &disconnect_time);
# 1459|   		delete_open = (tdiff >= 1000*global->durable_timeout_msec);

Error: CLANG_WARNING: [#def1421]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_open.c:1477:24: warning[core.NullDereference]: Access to field 'server_id' results in a dereference of a null pointer (loaded from variable 'global')
# 1475|   			  "server[%s] does not exist\n",
# 1476|   			  state->global_id,
# 1477|-> 			  server_id_str_buf(global->server_id, &idbuf));
# 1478|   		delete_open = true;
# 1479|   	}

Error: CPPCHECK_WARNING: [#def1422]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1423]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_session.c:121: warning[uninitvar]: Uninitialized variable: key_buf
#  119|   	RSIVAL(key_buf, 0, id);
#  120|   
#  121|-> 	key = make_tdb_data(key_buf, SMBXSRV_SESSION_GLOBAL_TDB_KEY_SIZE);
#  122|   
#  123|   	return key;

Error: CPPCHECK_WARNING (CWE-457): [#def1424]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_session.c:152: warning[uninitvar]: Uninitialized variable: key_buf
#  150|   	RSIVAL(key_buf, 0, id);
#  151|   
#  152|-> 	key = make_tdb_data(key_buf, SMBXSRV_SESSION_LOCAL_TDB_KEY_SIZE);
#  153|   
#  154|   	return key;

Error: CLANG_WARNING: [#def1425]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_session.c:354:6: warning[core.NullDereference]: Access to field 'global' results in a dereference of a null pointer (loaded from variable 'session')
#  352|   	}
#  353|   
#  354|-> 	if (session->global->session_global_id != close_info0->old_session_global_id) {
#  355|   		DBG_WARNING("smbXsrv_session_close_loop: "
#  356|   			 "old_session_wire_id %llu - global %u != %u\n",

Error: CLANG_WARNING: [#def1426]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_session.c:1853:10: warning[core.NullDereference]: Access to field 'sconn' results in a dereference of a null pointer (loaded from field 'client')
# 1851|   	session->table = NULL;
# 1852|   
# 1853|-> 	sconn = session->client->sconn;
# 1854|   	session->client = NULL;
# 1855|   	session->status = NT_STATUS_USER_SESSION_DELETED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1427]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_session.c: scope_hint: In function ‘smbXsrv_session_logoff’
samba-4.20.2-build/samba-4.20.2/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: [#def1428]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_tcon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1429]
samba-4.20.2-build/samba-4.20.2/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): [#def1430]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_tcon.c:133: warning[uninitvar]: Uninitialized variable: key_buf
#  131|   	RSIVAL(key_buf, 0, id);
#  132|   
#  133|-> 	key = make_tdb_data(key_buf, SMBXSRV_TCON_LOCAL_TDB_KEY_SIZE);
#  134|   
#  135|   	return key;

Error: CPPCHECK_WARNING: [#def1431]
samba-4.20.2-build/samba-4.20.2/source3/smbd/smbXsrv_version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1432]
samba-4.20.2-build/samba-4.20.2/source3/smbd/uid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1433]
samba-4.20.2-build/samba-4.20.2/source3/smbd/utmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1434]
samba-4.20.2-build/samba-4.20.2/source3/smbd/utmp.c:488:2: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  486|   	i /= nbase;
#  487|   	fourbyte[2] = ut_id_encstr[i % nbase];
#  488|-> 	i /= nbase;
#  489|   
#  490|   	/* we do not care about overflows as i is a random number */

Error: CPPCHECK_WARNING: [#def1435]
samba-4.20.2-build/samba-4.20.2/source3/smbd/vfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1436]
samba-4.20.2-build/samba-4.20.2/source3/smbd/vfs.c:79:34: warning[deadcode.DeadStores]: Value stored to 'entry' during its initialization is never read
#   77|   			  const struct vfs_fn_pointers *fns)
#   78|   {
#   79|-> 	struct vfs_init_function_entry *entry = backends;
#   80|   
#   81|    	if ((version != SMB_VFS_INTERFACE_VERSION)) {

Error: CLANG_WARNING: [#def1437]
samba-4.20.2-build/samba-4.20.2/source3/smbd/vfs.c:1086:26: warning[core.NullDereference]: Dereference of null pointer
# 1084|   	}
# 1085|   
# 1086|-> 	if (lp_getwd_cache() && VALID_STAT(smb_fname_dot->st)) {
# 1087|   		key = vfs_file_id_from_sbuf(conn, &smb_fname_dot->st);
# 1088|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1438]
samba-4.20.2-build/samba-4.20.2/source3/utils/log2pcaphex.c: scope_hint: In function ‘print_netbios_packet’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1439]
samba-4.20.2-build/samba-4.20.2/source3/utils/log2pcaphex.c:175:2: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  173|   	memcpy(newdata+offset, &HDR_IP, sizeof(HDR_IP));offset+=sizeof(HDR_IP);
#  174|   	memcpy(newdata+offset, &HDR_TCP, sizeof(HDR_TCP));offset+=sizeof(HDR_TCP);
#  175|-> 	memcpy(newdata+offset,data,length);
#  176|   
#  177|   	print_pcap_packet(out, newdata, newlen, actual_length+offset);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1440]
samba-4.20.2-build/samba-4.20.2/source3/utils/log2pcaphex.c: scope_hint: In function ‘read_log_msg’
samba-4.20.2-build/samba-4.20.2/source3/utils/log2pcaphex.c:217:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buffer’ where non-null expected
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1441]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_dns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1442]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c: scope_hint: In function ‘net_idmap_restore’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c:359:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘input’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:50: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c:362:19: note: in expansion of macro ‘talloc_stackframe’
samba-4.20.2-build/samba-4.20.2/source3/utils/net.h:31: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1443]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c:359:24: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap.c:362:19: note: in expansion of macro ‘talloc_stackframe’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1444]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap_check.c:582:36: warning[core.NullDereference]: Array access (via field 'dptr') results in a null pointer dereference
#  580|   
#  581|   static bool is_cstr(TDB_DATA str) {
#  582|-> 	return !tdb_data_is_empty(str) && str.dptr[str.dsize-1] == '\0';
#  583|   }
#  584|   

Error: CLANG_WARNING: [#def1445]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap_check.c:645:14: warning[core.NullDereference]: Array access (via field 'dptr') results in a null pointer dereference
#  643|   		ret->key_type = DT_HWM;
#  644|   		if (val.dsize == 4) {
#  645|-> 			ret->id = IVAL(val.dptr,0);
#  646|   			ret->val_type = DT_UID;
#  647|   		}

Error: CLANG_WARNING: [#def1446]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap_check.c:651:14: warning[core.NullDereference]: Array access (via field 'dptr') results in a null pointer dereference
#  649|   		ret->key_type = DT_HWM;
#  650|   		if (val.dsize == 4) {
#  651|-> 			ret->id = IVAL(val.dptr,0);
#  652|   			ret->val_type = DT_GID;
#  653|   		}

Error: CLANG_WARNING: [#def1447]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap_check.c:657:14: warning[core.NullDereference]: Array access (via field 'dptr') results in a null pointer dereference
#  655|   		ret->key_type = DT_VER;
#  656|   		if (val.dsize == 4) {
#  657|-> 			ret->id = IVAL(val.dptr,0);
#  658|   			ret->val_type = DT_VER;
#  659|   		}

Error: CLANG_WARNING: [#def1448]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap_check.c:663:14: warning[core.NullDereference]: Dereference of null pointer
#  661|   		ret->key_type = DT_SEQ;
#  662|   		if (val.dsize == 8) {
#  663|-> 			ret->id = *(uint64_t*)val.dptr;
#  664|   			ret->val_type = DT_SEQ;
#  665|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1449]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_idmap_check.c: scope_hint: In function ‘check_open_db’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1450]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_offlinejoin.c:400:2: warning[deadcode.DeadStores]: Value stored to 'machine_account_name' is never read
#  398|   	netbios_domain_name = cli_credentials_get_domain(creds);
#  399|   
#  400|-> 	machine_account_name = cli_credentials_get_username_and_obtained(creds, &obtained);
#  401|   	if (obtained < CRED_CALLBACK_RESULT) {
#  402|   		const char *netbios_name = cli_credentials_get_workstation(creds);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1451]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rap.c: scope_hint: In function ‘rap_share_add.part.0’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rap.c:246:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘sharename’ where non-null expected
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rap.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rap.c:245:21: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/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): [#def1452]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_registry_check.c: scope_hint: In function ‘check_ctx_transaction_stop’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1453]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_registry_check.c:833:11: warning[deadcode.DeadStores]: Value stored to 'version' during its initialization is never read
#  831|   static bool get_version(struct check_ctx *ctx) {
#  832|   	static const uint32_t curr_version = REGDB_CODE_VERSION;
#  833|-> 	uint32_t version = ctx->opt.version ? ctx->opt.version : curr_version;
#  834|   	uint32_t info_version = 0;
#  835|   	NTSTATUS status;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1454]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_conf.c: scope_hint: In function ‘rpc_conf_import_internal’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_conf.c:1244:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘services’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_conf.c: scope_hint: In function ‘rpc_conf_import_internal’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1455]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_conf.c:1244:29: warning[core.NullDereference]: Array access (from variable 'services') results in a null pointer dereference
# 1242|   		}
# 1243|   		for (i = 0; i < num_shares; i++) {
# 1244|-> 			rpc_conf_print_shares(1, services[i]);
# 1245|   		}
# 1246|   		goto error;

Error: CLANG_WARNING: [#def1456]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_printer.c:426:4: warning[deadcode.DeadStores]: Value stored to 'nt_status' is never read
#  424|   			DEBUG(0,("cannot create directory %s: %s\n",
#  425|   				dst_name, nt_errstr(nt_status)));
#  426|-> 			nt_status = NT_STATUS_NO_SUCH_FILE;
#  427|   		}
#  428|   

Error: CLANG_WARNING: [#def1457]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_registry.c:247:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  245|   		if (W_ERROR_EQUAL(werr,
#  246|   				  WERR_NO_MORE_ITEMS) ) {
#  247|-> 			status = NT_STATUS_OK;
#  248|   			break;
#  249|   		}

Error: CLANG_WARNING: [#def1458]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_registry.c:372:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  370|   		if ( W_ERROR_EQUAL(err,
#  371|   				   WERR_NO_MORE_ITEMS) ) {
#  372|-> 			status = NT_STATUS_OK;
#  373|   			break;
#  374|   		}

Error: CLANG_WARNING: [#def1459]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_registry.c:494:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  492|   
#  493|   		if ( W_ERROR_EQUAL(err, WERR_NO_MORE_ITEMS) ) {
#  494|-> 			status = NT_STATUS_OK;
#  495|   			break;
#  496|   		}

Error: CLANG_WARNING: [#def1460]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_registry.c:622:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  620|   		value.type = REG_SZ;
#  621|   		if (!push_reg_sz(mem_ctx, &value.data, argv[3])) {
#  622|-> 			status = NT_STATUS_NO_MEMORY;
#  623|   			goto error;
#  624|   		}

Error: CLANG_WARNING: [#def1461]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_registry.c:628:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  626|   	else {
#  627|   		d_fprintf(stderr, _("type \"%s\" not implemented\n"), argv[2]);
#  628|-> 		status = NT_STATUS_NOT_IMPLEMENTED;
#  629|   		goto error;
#  630|   	}

Error: CLANG_WARNING: [#def1462]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:581:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  579|   					NULL);
#  580|   		if (rc < 0) {
#  581|-> 			status = gnutls_error_to_ntstatus(rc, NT_STATUS_CRYPTO_SYSTEM_INVALID);
#  582|   			goto done;
#  583|   		}

Error: CLANG_WARNING: [#def1463]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:589:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  587|   		gnutls_cipher_deinit(cipher_hnd);
#  588|   		if (rc < 0) {
#  589|-> 			status = gnutls_error_to_ntstatus(rc, NT_STATUS_CRYPTO_SYSTEM_INVALID);
#  590|   			goto done;
#  591|   		}

Error: CLANG_WARNING: [#def1464]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:626:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  624|   						NULL);
#  625|   			if (rc < 0) {
#  626|-> 				status = gnutls_error_to_ntstatus(rc, NT_STATUS_CRYPTO_SYSTEM_INVALID);
#  627|   				goto done;
#  628|   			}

Error: CLANG_WARNING: [#def1465]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:634:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  632|   			gnutls_cipher_deinit(cipher_hnd);
#  633|   			if (rc < 0) {
#  634|-> 				status = gnutls_error_to_ntstatus(rc, NT_STATUS_CRYPTO_SYSTEM_INVALID);
#  635|   				goto done;
#  636|   			}

Error: CLANG_WARNING: [#def1466]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:651:12: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
#  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-476): [#def1467]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c: scope_hint: In function ‘rpc_trust_common’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:651:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1468]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_rpc_trust.c:660:13: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
#  658|   
#  659|   		if (other_net_ctx != NULL) {
#  660|-> 			status = delete_trust(mem_ctx,
#  661|   					      pipe_hnd[1]->binding_handle,
#  662|   					      &pol_hnd[1], dom_data[0].domsid);

Error: CLANG_WARNING: [#def1469]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:392:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'server_name'
#  390|   		if (!net_find_server(c, domain, flags, &server_ss,
#  391|   				     &server_name)) {
#  392|-> 			d_fprintf(stderr, _("Unable to find a suitable server "
#  393|   				"for domain %s\n"), domain);
#  394|   			nt_status = NT_STATUS_UNSUCCESSFUL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1470]
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c: scope_hint: In function ‘net_make_ipc_connection_ex’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:428:16: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.20.2-build/samba-4.20.2/source3/include/smb.h:626: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:264: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:280:32: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:280:32: note: in expansion of macro ‘SMB_STRDUP’
samba-4.20.2-build/samba-4.20.2/source3/utils/net.h:31: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/net_util.c:392:43: note: in expansion of macro ‘_’
#  426|   		*pcli = cli;
#  427|   	}
#  428|-> 	return nt_status;
#  429|   }
#  430|   

Error: CLANG_WARNING: [#def1471]
samba-4.20.2-build/samba-4.20.2/source3/utils/ntlm_auth.c:813:14: warning[deadcode.DeadStores]: Value stored to 'domain' during its initialization is never read
#  811|   	char *unixuser;
#  812|   	NTSTATUS status;
#  813|-> 	const char *domain = "";
#  814|   	const char *user = "";
#  815|   

Error: CLANG_WARNING: [#def1472]
samba-4.20.2-build/samba-4.20.2/source3/utils/ntlm_auth.c:814:14: warning[deadcode.DeadStores]: Value stored to 'user' during its initialization is never read
#  812|   	NTSTATUS status;
#  813|   	const char *domain = "";
#  814|-> 	const char *user = "";
#  815|   
#  816|   	tmp_ctx = talloc_new(mem_ctx);

Error: CLANG_WARNING: [#def1473]
samba-4.20.2-build/samba-4.20.2/source3/utils/ntlm_auth.c:2465:3: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 2463|   
# 2464|   	if (!NT_STATUS_IS_OK(nt_status)) {
# 2465|-> 		printf("%s (0x%x)\n", error_string,
# 2466|   		       NT_STATUS_V(nt_status));
# 2467|   		SAFE_FREE(error_string);

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

Error: CLANG_WARNING: [#def1475]
samba-4.20.2-build/samba-4.20.2/source3/utils/pdbedit.c:916:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  914|   	if (!NT_STATUS_IS_OK(status)) {
#  915|   		if (err) fprintf(stderr, "%s", err);
#  916|-> 		ret = -1;
#  917|   	}
#  918|   

Error: CLANG_WARNING: [#def1476]
samba-4.20.2-build/samba-4.20.2/source3/utils/py_net.c:257:3: warning[deadcode.DeadStores]: Value stored to 'werr' is never read
#  255|   		d_printf(_("Disabled account for '%s' in realm '%s'\n"),
#  256|   			r->in.machine_name, r->out.dns_domain_name);
#  257|-> 		werr = WERR_OK;
#  258|   		Py_RETURN_TRUE;
#  259|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1477]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_set_submit_cb’
samba-4.20.2-build/samba-4.20.2/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): [#def1478]
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_section_set_name’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:157:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:60: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1479]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_section_set_justify’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:164:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:171:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/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): [#def1480]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c: scope_hint: In function ‘dialog_append_section’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:173:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dia’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1481]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:2044:8: warning[core.CallAndMessage]: Passed-by-value struct argument contains uninitialized data (e.g., field: 'data')
# 2042|   
# 2043|   	if (W_ERROR_IS_OK(rv)) {
# 2044|-> 		rv = reg_val_set(edit->key, name, edit->type, blob);
# 2045|   	}
# 2046|   

Error: CLANG_WARNING: [#def1482]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_dialog.c:2327:2: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 2325|   	talloc_free(dia);
# 2326|   
# 2327|-> 	return action;
# 2328|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1483]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_treeview.c: scope_hint: In function ‘tree_node_append’
samba-4.20.2-build/samba-4.20.2/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): [#def1484]
samba-4.20.2-build/samba-4.20.2/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): [#def1485]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_treeview.c: scope_hint: In function ‘tree_node_load_children’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_treeview.c:312:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rv.w’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_treeview.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1486]
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_treeview.c: scope_hint: In function ‘tree_node_print_path’
samba-4.20.2-build/samba-4.20.2/source3/utils/regedit_treeview.c:696:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:50: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1487]
samba-4.20.2-build/samba-4.20.2/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): [#def1488]
samba-4.20.2-build/samba-4.20.2/source3/utils/smbfilter.c: scope_hint: In function ‘start_filter’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1489]
samba-4.20.2-build/samba-4.20.2/source3/utils/smbget.c:594:3: warning[deadcode.DeadStores]: Value stored to 'offset_check' is never read
#  592|   		start_offset = 0;
#  593|   		offset_download = 0;
#  594|-> 		offset_check = 0;
#  595|   	}
#  596|   

Error: CLANG_WARNING: [#def1490]
samba-4.20.2-build/samba-4.20.2/source3/utils/status.c:339:4: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value
#  337|   						timestr);
#  338|   		} else {
#  339|-> 			print_share_mode_json(state,
#  340|   					      d,
#  341|   					      e,

Error: CLANG_WARNING: [#def1491]
samba-4.20.2-build/samba-4.20.2/source3/utils/wspsearch.c:630:10: warning[deadcode.DeadStores]: Although the value stored to 'opt' is used in the enclosing expression, the value is never actually read from 'opt'
#  628|   	poptSetOtherOptionHelp(pc, "[OPTIONS] //server1/share1");
#  629|   
#  630|-> 	while ((opt = poptGetNextOpt(pc)) != -1) ;
#  631|   
#  632|   	if(!poptPeekArg(pc)) {

Error: CLANG_WARNING: [#def1492]
samba-4.20.2-build/samba-4.20.2/source3/utils/wspsearch.c:812:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  810|   	}
#  811|   
#  812|-> 	status = create_querystatusex(talloc_tos(),
#  813|   				      wsp_ctx,
#  814|   				      bindings_used.hcursor,

Error: CPPCHECK_WARNING: [#def1493]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def1494]
samba-4.20.2-build/samba-4.20.2/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): [#def1495]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap.c:182: warning[nullPointer]: Possible null pointer dereference: buf
#  180|   static int idmap_config_name(const char *domname, char *buf, size_t buflen)
#  181|   {
#  182|-> 	int len = snprintf(buf, buflen, "idmap config %s", domname);
#  183|   	SMB_ASSERT(len > 0);
#  184|   	return len + 1;

Error: CPPCHECK_WARNING: [#def1496]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1497]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c: scope_hint: In function ‘get_posix_schema_names’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c:246:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘names[0]’
samba-4.20.2-build/samba-4.20.2/lib/util/charset/charset.h:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:246: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/server_id.h:8: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/debug_s3.h:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:257: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:8:22: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c:439:16: note: in expansion of macro ‘NT_STATUS_OK’
#  244|   	}
#  245|   
#  246|-> 	schema->uid = names[0];
#  247|   	schema->gid = names[1];
#  248|   	schema->dir = names[2];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1498]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c: scope_hint: In function ‘idmap_ad_dn_filter’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c:610:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c:1087:9: note: in expansion of macro ‘DBG_DEBUG’
#  608|   	}
#  609|   
#  610|-> 	if ((ctx->allow_ous == NULL) && (ctx->deny_ous == NULL)) {
#  611|   		/*
#  612|   		 * Nothing to check

Error: CLANG_WARNING: [#def1499]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad.c:1050:13: warning[core.NullDereference]: Access to field 'schema' results in a dereference of a null pointer (loaded from variable 'ctx')
# 1048|   	}
# 1049|   
# 1050|-> 	attrs[2] = ctx->schema->uid;
# 1051|   	attrs[3] = ctx->schema->gid;
# 1052|   

Error: CLANG_WARNING: [#def1500]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad_nss.c:210:13: warning[deadcode.DeadStores]: Value stored to 'ads_status' during its initialization is never read
#  208|   	char *filter = NULL;
#  209|   	LDAPMessage *msg = NULL;
#  210|-> 	ADS_STATUS ads_status = ADS_ERROR_NT(NT_STATUS_UNSUCCESSFUL);
#  211|   	NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
#  212|   	struct idmap_domain *dom;

Error: CLANG_WARNING: [#def1501]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_ad_nss.c:289:13: warning[deadcode.DeadStores]: Value stored to 'ads_status' during its initialization is never read
#  287|   	char *filter = NULL;
#  288|   	LDAPMessage *msg = NULL;
#  289|-> 	ADS_STATUS ads_status = ADS_ERROR_NT(NT_STATUS_UNSUCCESSFUL);
#  290|   	NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
#  291|   	char *username = NULL;

Error: CPPCHECK_WARNING: [#def1502]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_autorid_tdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1503]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_hash/mapfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1504]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_nss.c:259:6: warning[deadcode.DeadStores]: Value stored to 'domname' is never read
#  257|   					*p = '\0';
#  258|   					namespace = p + 1;
#  259|-> 					domname = "";
#  260|   					domuser = name;
#  261|   				} else {

Error: CLANG_WARNING: [#def1505]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_rfc2307.c:74:14: warning[deadcode.DeadStores]: Value stored to 'dom_name' during its initialization is never read
#   72|   {
#   73|   	struct idmap_rfc2307_context *ctx;
#   74|-> 	const char *dom_name = dom->name;
#   75|   	ADS_STATUS status;
#   76|   

Error: CPPCHECK_WARNING: [#def1506]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/idmap_tdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1507]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/nss_info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1508]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/nss_info.c:35:29: warning[deadcode.DeadStores]: Value stored to 'entry' during its initialization is never read
#   33|   static struct nss_function_entry *nss_get_backend(const char *name )
#   34|   {
#   35|-> 	struct nss_function_entry *entry = backends;
#   36|   
#   37|   	for(entry = backends; entry; entry = entry->next) {

Error: CPPCHECK_WARNING: [#def1509]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_dsgetdcname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1510]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_getgrsid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1511]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_getpwsid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1512]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_gettoken.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1513]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_group_members.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1514]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_lookupsids.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1515]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_queryuser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1516]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_sids2xids.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1517]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/wb_xids2sids.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

Error: CPPCHECK_WARNING: [#def1520]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_ads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1521]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_ads.c:1201:59: warning[core.NullDereference]: Dereference of null pointer
# 1199|   	args.critical = True;
# 1200|   
# 1201|-> 	rc = ads_ranged_search(ads, tmp_ctx, LDAP_SCOPE_SUBTREE, ads->config.bind_path,
# 1202|   			       ldap_exp, &args, "member", &members, &num_members);
# 1203|   

Error: CPPCHECK_WARNING: [#def1522]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1523]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cache.c:525: error[uninitvar]: Uninitialized variable: buf
#  523|   	SIVAL(buf, 4, last_seq_check);
#  524|   
#  525|-> 	ret = tdb_store(wcache->tdb, key, make_tdb_data(buf, sizeof(buf)),
#  526|   			TDB_REPLACE);
#  527|   	if (ret != 0) {

Error: CLANG_WARNING: [#def1524]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_ccache_access.c:310:37: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  308|   	}
#  309|   
#  310|-> 	state->response->extra_data.data = talloc_memdup(
#  311|   		state->mem_ctx, auth.data, auth.length);
#  312|   	if (!state->response->extra_data.data) {

Error: CPPCHECK_WARNING: [#def1525]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_cm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1526]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_creds.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1527]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_dual.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1528]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_dual.c:1193:23: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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-688): [#def1529]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_dual.c: scope_hint: In function ‘winbind_msg_dump_domain_list’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1530]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_dual_srv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1531]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_dual_srv.c:1133:3: warning[deadcode.DeadStores]: Value stored to 'identity_info' is never read
# 1131|   		}
# 1132|   
# 1133|-> 		identity_info = &r->in.logon.generic->identity_info;
# 1134|   		/*
# 1135|   		 * Not implemented here...

Error: CPPCHECK_WARNING: [#def1532]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_getsidaliases.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1533]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_idmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1534]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_irpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1535]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_list_groups.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1536]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_lookuprids.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1537]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1538]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1539]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c: scope_hint: In function ‘msrpc_name_to_sid’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:275:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domains’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:246:9: note: in expansion of macro ‘DEBUG’
#  273|   		const char *dom_name;
#  274|   
#  275|-> 		dom_name = talloc_strdup(mem_ctx, domains[0]);
#  276|   		if (dom_name == NULL) {
#  277|   			return NT_STATUS_NO_MEMORY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1540]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:284:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘types’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:246:9: note: in expansion of macro ‘DEBUG’
#  282|   
#  283|   	sid_copy(sid, &sids[0]);
#  284|-> 	*type = types[0];
#  285|   
#  286|   	return NT_STATUS_OK;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1541]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c: scope_hint: In function ‘msrpc_sid_to_name’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:325:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘types’
#  323|   
#  324|   
#  325|-> 	*type = (enum lsa_SidType)types[0];
#  326|   	*domain_name = domains[0];
#  327|   	*name = names[0];

Error: CLANG_WARNING: [#def1542]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_msrpc.c:404:19: warning[core.NullDereference]: Array access (from variable 'domains') results in an undefined pointer dereference
#  402|   			}
#  403|   
#  404|-> 			*domain_name = domains[i];
#  405|   		}
#  406|   	}

Error: CPPCHECK_WARNING: [#def1543]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_ndr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1544]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:1683:3: warning[deadcode.DeadStores]: Value stored to 'retry' is never read
# 1681|   		*authoritative = 1;
# 1682|   
# 1683|-> 		retry = false;
# 1684|   
# 1685|   		D_DEBUG("Creating a DCERPC netlogon connection for SAM logon. "

Error: CLANG_WARNING: [#def1545]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:2591:4: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 2589|   		    && lp_winbind_offline_logon()) {
# 2590|   
# 2591|-> 			result = winbindd_store_creds(domain,
# 2592|   						      r->in.info->username,
# 2593|   						      r->in.info->password,

Error: CLANG_WARNING: [#def1546]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:3439:3: warning[deadcode.DeadStores]: Value stored to 'k5ret' is never read
# 3437|   			break;
# 3438|   		}
# 3439|-> 		k5ret = smb_krb5_kt_free_entry(krbctx, &entry);
# 3440|   		k5ret = krb5_kt_next_entry(krbctx, keytab, &entry, &cursor);
# 3441|   	}

Error: CLANG_WARNING: [#def1547]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:3511:16: warning[core.NullDereference]: Access to field 'num_buffers' results in a dereference of a null pointer (loaded from variable 'pac_data')
# 3509|   	}
# 3510|   
# 3511|-> 	for (i=0; i < pac_data->num_buffers; i++) {
# 3512|   		if (pac_data->buffers[i].type == PAC_TYPE_LOGON_INFO) {
# 3513|   			logon_info = pac_data->buffers[i].info->logon_info.info;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1548]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c: scope_hint: In function ‘winbindd_pam_auth_pac_verify’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:3511:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pac_data’
samba-4.20.2-build/samba-4.20.2/source3/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/util/ntstatus.h:124:29: note: in expansion of macro ‘likely’
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam.c:3505:14: note: in expansion of macro ‘NT_STATUS_IS_OK’
# 3509|   	}
# 3510|   
# 3511|-> 	for (i=0; i < pac_data->num_buffers; i++) {
# 3512|   		if (pac_data->buffers[i].type == PAC_TYPE_LOGON_INFO) {
# 3513|   			logon_info = pac_data->buffers[i].info->logon_info.info;

Error: CPPCHECK_WARNING: [#def1549]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1550]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam_auth_crap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1551]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam_chauthtok.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1552]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_pam_chng_pswd_auth_crap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1553]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_ping_dc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1554]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_rpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1555]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_rpc.c: scope_hint: In function ‘rpc_lookup_useraliases’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1556]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1557]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1558]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_util.c:690:2: warning[deadcode.DeadStores]: Value stored to 'te' is never read
#  688|   	add_trusted_domains( find_our_domain() );
#  689|   
#  690|-> 	te = tevent_add_timer(
#  691|   		ev, NULL, timeval_current_ofs(WINBINDD_RESCAN_FREQ, 0),
#  692|   		rescan_trusted_domains, NULL);

Error: CPPCHECK_WARNING: [#def1559]
samba-4.20.2-build/samba-4.20.2/source3/winbindd/winbindd_wins_byip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1560]
samba-4.20.2-build/samba-4.20.2/source4/auth/gensec/gensec_krb5.c:549:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  547|   		/* TODO: check the tok_id */
#  548|   
#  549|-> 		inbuf.data = (char *)unwrapped_in.data;
#  550|   		inbuf.length = unwrapped_in.length;
#  551|   		ret = krb5_rd_rep(gensec_krb5_state->smb_krb5_context->krb5_context, 

Error: CLANG_WARNING: [#def1561]
samba-4.20.2-build/samba-4.20.2/source4/auth/gensec/gensec_krb5.c:618:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  616|   		if (gensec_krb5_state->gssapi
#  617|   		    && gensec_gssapi_parse_krb5_wrap(out_mem_ctx, &in, &unwrapped_in, tok_id)) {
#  618|-> 			inbuf.data = (char *)unwrapped_in.data;
#  619|   			inbuf.length = unwrapped_in.length;
#  620|   		} else {

Error: CPPCHECK_WARNING: [#def1562]
samba-4.20.2-build/samba-4.20.2/source4/auth/gensec/gensec_tstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1563]
samba-4.20.2-build/samba-4.20.2/source4/auth/ntlm/auth_simple.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1564]
samba-4.20.2-build/samba-4.20.2/source4/auth/ntlm/auth_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1565]
samba-4.20.2-build/samba-4.20.2/source4/auth/ntlm/auth_util.c:155: error[uninitvar]: Uninitialized variable: lanman
#  153|   				user_info_temp->password.hash.lanman = talloc(user_info_temp,
#  154|   									      struct samr_Password);
#  155|-> 				*user_info_temp->password.hash.lanman = lanman;
#  156|   			} else {
#  157|   				user_info_temp->password.hash.lanman = NULL;

Error: CPPCHECK_WARNING (CWE-457): [#def1566]
samba-4.20.2-build/samba-4.20.2/source4/auth/ntlm/auth_util.c:163: error[uninitvar]: Uninitialized variable: nt
#  161|   			user_info_temp->password.hash.nt = talloc(user_info_temp,
#  162|   								   struct samr_Password);
#  163|-> 			*user_info_temp->password.hash.nt = nt;
#  164|   			
#  165|   			user_info_in = user_info_temp;

Error: CPPCHECK_WARNING: [#def1567]
samba-4.20.2-build/samba-4.20.2/source4/auth/ntlm/auth_winbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1568]
samba-4.20.2-build/samba-4.20.2/source4/auth/system_session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1569]
samba-4.20.2-build/samba-4.20.2/source4/auth/unix_token.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1570]
samba-4.20.2-build/samba-4.20.2/source4/client/cifsdd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-686): [#def1571]
samba-4.20.2-build/samba-4.20.2/source4/client/cifsdd.c: scope_hint: In function ‘set_arg_val’
samba-4.20.2-build/samba-4.20.2/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): [#def1572]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1573]
samba-4.20.2-build/samba-4.20.2/source4/client/cifsddio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1574]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1575]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:966:2: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  964|   	dos_clean_name(rname);
#  965|   
#  966|-> 	rc = do_get(ctx, rname, lname, false);
#  967|   
#  968|   	pager=getenv("PAGER");

Error: CLANG_WARNING: [#def1576]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:998:4: warning[deadcode.DeadStores]: Value stored to 'mget_mask' is never read
#  996|   		mget_mask = talloc_strdup(ctx, ctx->remote_cur_dir);
#  997|   		if(mget_mask[strlen(mget_mask)-1]!='\\')
#  998|-> 			mget_mask = talloc_append_string(ctx, mget_mask, "\\");
#  999|   		
# 1000|   		mget_mask = talloc_strdup(ctx, args[i]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1577]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c: scope_hint: In function ‘do_put’
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:1134:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:32: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:1172:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1578]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:1134:40: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:1172:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/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): [#def1579]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c: scope_hint: In function ‘completion_remote_filter’
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:2927:52: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:41: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1580]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c: scope_hint: In function ‘remote_completion’
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:2996:33: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(info.matches[1])’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1581]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:3435:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'base_directory'
# 3433|   	poptSetOtherOptionHelp(pc, "[OPTIONS] service <password>");
# 3434|   
# 3435|-> 	while ((opt = poptGetNextOpt(pc)) != -1) {
# 3436|   		switch (opt) {
# 3437|   		case 'M':

Error: CLANG_WARNING: [#def1582]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:3435:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'query_host'
# 3433|   	poptSetOtherOptionHelp(pc, "[OPTIONS] service <password>");
# 3434|   
# 3435|-> 	while ((opt = poptGetNextOpt(pc)) != -1) {
# 3436|   		switch (opt) {
# 3437|   		case 'M':

Error: CLANG_WARNING: [#def1583]
samba-4.20.2-build/samba-4.20.2/source4/client/client.c:3445:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'desthost'
# 3443|   			desthost = strdup(poptGetOptArg(pc));
# 3444|   			if( 0 == port ) port = 139;
# 3445|->  			message = true;
# 3446|    			break;
# 3447|   		case 'I':

Error: CPPCHECK_WARNING: [#def1584]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_crypto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1585]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1586]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_query.c: scope_hint: In function ‘accept_gss_ticket’
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_query.c:772:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tkey’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1587]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1588]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1589]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dns_update.c:145:5: warning[deadcode.DeadStores]: Value stored to 'werror' is never read
#  143|   			}
#  144|   			if (W_ERROR_EQUAL(werror, DNS_ERR(NAME_ERROR))) {
#  145|-> 				werror = WERR_OK;
#  146|   			}
#  147|   

Error: CPPCHECK_WARNING: [#def1590]
samba-4.20.2-build/samba-4.20.2/source4/dns_server/dnsserver_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1591]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/rodc_helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1592]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/tests/dsdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1593]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/tests/dsdb_dn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1594]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1595]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_reference_dn’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:1838:56: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
# 1836|   	}
# 1837|   
# 1838|-> 	*dn = ldb_msg_find_attr_as_dn(ldb, mem_ctx, res->msgs[0], attribute);
# 1839|   	if (!*dn) {
# 1840|   		if (!ldb_msg_find_element(res->msgs[0], attribute)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1596]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:2971:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘user_msg’
# 2969|   	}
# 2970|   
# 2971|-> 	nt_status = samdb_set_password_internal(ldb, mem_ctx,
# 2972|   						user_msg->dn, NULL,
# 2973|   						new_password,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1597]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: scope_hint: In function ‘dsdb_find_dn_by_guid’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:3263:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:5466:9: note: in expansion of macro ‘SMB_ASSERT’
# 3261|   	}
# 3262|   
# 3263|-> 	*dn = talloc_steal(mem_ctx, res->msgs[0]->dn);
# 3264|   	talloc_free(res);
# 3265|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1598]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: scope_hint: In function ‘dsdb_find_dn_by_sid’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:3417:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:5466:9: note: in expansion of macro ‘SMB_ASSERT’
# 3415|   	}
# 3416|   
# 3417|-> 	*dn = talloc_steal(mem_ctx, res->msgs[0]->dn);
# 3418|   	talloc_free(res);
# 3419|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1599]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_get_ntds_obj_by_guid’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:3686:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:5466:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/lib/util/fault.h:36:13: note: in expansion of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:5466:9: note: in expansion of macro ‘SMB_ASSERT’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:5466:9: note: in expansion of macro ‘SMB_ASSERT’
# 3684|   	}
# 3685|   	if (msg) {
# 3686|-> 		*msg = talloc_steal(mem_ctx, res->msgs[0]);
# 3687|   	}
# 3688|   	TALLOC_FREE(res);

Error: CLANG_WARNING: [#def1600]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:3731:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 3729|   	}
# 3730|   
# 3731|-> 	ret = ldb_msg_find_attr_as_bool(msg, "msDS-isRODC", 0);
# 3732|   	*is_rodc = (ret == 1);
# 3733|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1601]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_is_rodc’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:3731:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘msg’
# 3729|   	}
# 3730|   
# 3731|-> 	ret = ldb_msg_find_attr_as_bool(msg, "msDS-isRODC", 0);
# 3732|   	*is_rodc = (ret == 1);
# 3733|   

Error: CLANG_WARNING: [#def1602]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:3769:10: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3767|   		return ldb_oom(sam_ctx);
# 3768|   	}
# 3769|-> 	*cached = *am_rodc;
# 3770|   
# 3771|   	ret = ldb_set_opaque(sam_ctx, "cache.am_rodc", cached);

Error: CLANG_WARNING: [#def1603]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:4135:6: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 4133|   	}
# 4134|   
# 4135|-> 	if (am_rodc) {
# 4136|   		DBG_WARNING("Unable to update DC's msDS-Behavior-Version "
# 4137|   			    "(from %d to %d) and operatingSystem[Version] "

Error: CLANG_WARNING: [#def1604]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:4865:8: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 4863|   	}
# 4864|   
# 4865|-> 	ret = dsdb_wellknown_dn(ldb, mem_ctx, nc_root, DS_GUID_DELETED_OBJECTS_CONTAINER, do_dn);
# 4866|   	talloc_free(nc_root);
# 4867|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1605]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c: scope_hint: In function ‘dsdb_load_udv_v2’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:4982:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:288:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util.c:5403:9: note: in expansion of macro ‘DBG_DEBUG’
# 4980|   	for (i=0; i<*count; i++) {
# 4981|   		if (GUID_equal(our_invocation_id, &(*cursors)[i].source_dsa_invocation_id)) {
# 4982|-> 			(*cursors)[i].highest_usn = highest_usn;
# 4983|   			(*cursors)[i].last_sync_success = nt1970;
# 4984|   			TYPESAFE_QSORT(*cursors, *count, drsuapi_DsReplicaCursor2_compare);

Error: CPPCHECK_WARNING: [#def1606]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util_groups.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1607]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util_links.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1608]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util_links.c:40: error[uninitvar]: Uninitialized variable: v2_data
#   38|   	struct ldb_val v1 = data_blob_const(v1_data, sizeof(v1_data));
#   39|   	uint8_t v2_data[16];
#   40|-> 	struct ldb_val v2 = data_blob_const(v2_data, sizeof(v2_data));
#   41|   
#   42|   	/* This can't fail */

Error: CPPCHECK_WARNING: [#def1609]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util_samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1610]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/common/util_trusts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1611]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/dns/dns_update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1612]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/garbage_collect_tombstones.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1613]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/kcc_connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1614]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/kcc_drs_replica_info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1615]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/kcc_drs_replica_info.c:277:40: warning[core.NullDereference]: Access to field 'lDAPDisplayName' results in a dereference of a null pointer (loaded from variable 'schema_attr')
#  275|   						  struct drsuapi_DsReplicaObjMetaData2, j + 1);
#  276|   		W_ERROR_HAVE_NO_MEMORY(metadata2->array);
#  277|-> 		metadata2->array[j].attribute_name = schema_attr->lDAPDisplayName;
#  278|   		metadata2->array[j].local_usn = attr->local_usn;
#  279|   		metadata2->array[j].originating_change_time = attr->originating_change_time;

Error: CPPCHECK_WARNING: [#def1616]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/kcc_periodic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1617]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/kcc_periodic.c:744:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  742|   
#  743|           if (service->samba_kcc_code)
#  744|-> 		status = kccsrv_samba_kcc(service);
#  745|   	else {
#  746|   		status = kccsrv_simple_update(service, mem_ctx);

Error: CPPCHECK_WARNING: [#def1618]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/kcc/scavenge_dns_records.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1619]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/drepl_extended.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1620]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/drepl_notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1621]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/drepl_out_helpers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1622]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/drepl_out_pull.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1623]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/drepl_partitions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1624]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/drepl_ridalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1625]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/repl/replicated_objects.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1626]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/cracknames.c:1222:27: warning[deadcode.DeadStores]: Value stored to '_dom' during its initialization is never read
# 1220|   
# 1221|   		const struct dom_sid *sid = samdb_result_dom_sid(mem_ctx, result, "objectSid");
# 1222|-> 		const char *_acc = "", *_dom = "";
# 1223|   		if (sid == NULL) {
# 1224|   			info1->status = DRSUAPI_DS_NAME_STATUS_NO_MAPPING;

Error: CLANG_WARNING: [#def1627]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:696:12: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'msg')
#  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): [#def1628]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c: scope_hint: In function ‘acl_check_spn’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:696:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:34: included_from: Included from here.
/usr/include/ldb_module.h:36: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:35: included_from: Included from here.
#  694|   		if (ret != LDB_SUCCESS) {
#  695|   			dsdb_acl_debug(sd, acl_user_token(module),
#  696|-> 				       msg->dn,
#  697|   				       true,
#  698|   				       10);

Error: CLANG_WARNING: [#def1629]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:722:20: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'msg')
#  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): [#def1630]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:722:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
#  720|   
#  721|   		ret = dsdb_module_search_dn(module, tmp_ctx,
#  722|-> 					    &acl_res, msg->dn,
#  723|   					    acl_attrs,
#  724|   					    DSDB_FLAG_NEXT_MODULE |

Error: CLANG_WARNING: [#def1631]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:771:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  769|   	}
#  770|   
#  771|-> 	ret = dsdb_module_search(module, tmp_ctx,
#  772|   				 &netbios_res, partitions_dn,
#  773|   				 LDB_SCOPE_ONELEVEL,

Error: CLANG_WARNING: [#def1632]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:791:13: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'msg')
#  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): [#def1633]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:791:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
#  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: CLANG_WARNING: [#def1634]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:898:12: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'msg')
#  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): [#def1635]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c: scope_hint: In function ‘acl_check_dns_host_name’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:898:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
#  896|   		if (ret != LDB_SUCCESS) {
#  897|   			dsdb_acl_debug(sd, acl_user_token(module),
#  898|-> 				       msg->dn,
#  899|   				       true,
#  900|   				       10);

Error: CLANG_WARNING: [#def1636]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:931:20: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'msg')
#  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): [#def1637]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:931:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
#  929|   
#  930|   		ret = dsdb_module_search_dn(module, tmp_ctx,
#  931|-> 					    &acl_res, msg->dn,
#  932|   					    acl_attrs,
#  933|   					    DSDB_FLAG_NEXT_MODULE |

Error: CLANG_WARNING: [#def1638]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:1042:5: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'search_res')
# 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): [#def1639]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:1042:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘search_res’
# 1040|   	ret = dsdb_find_nc_root(ldb,
# 1041|   				tmp_ctx,
# 1042|-> 				search_res->dn,
# 1043|   				&nc_root);
# 1044|   	if (ret != LDB_SUCCESS) {

Error: CLANG_WARNING: [#def1640]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:2687:11: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'acl_res')
# 2685|   		if (ac->allowedAttributes || ac->allowedAttributesEffective) {
# 2686|   			ret = acl_allowedAttributes(ac->module, ac->schema,
# 2687|-> 						    acl_res->msgs[0],
# 2688|   						    ares->message, ac);
# 2689|   			if (ret != LDB_SUCCESS) {

Error: CLANG_WARNING: [#def1641]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:2696:13: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'acl_res')
# 2694|   		if (ac->allowedChildClasses) {
# 2695|   			ret = acl_childClasses(ac->module, ac->schema,
# 2696|-> 					       acl_res->msgs[0],
# 2697|   					       ares->message,
# 2698|   					       "allowedChildClasses");

Error: CLANG_WARNING: [#def1642]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:2706:8: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'acl_res')
# 2704|   		if (ac->allowedChildClassesEffective) {
# 2705|   			ret = acl_childClassesEffective(ac->module, ac->schema,
# 2706|-> 							acl_res->msgs[0],
# 2707|   							ares->message, ac);
# 2708|   			if (ret != LDB_SUCCESS) {

Error: CLANG_WARNING: [#def1643]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl.c:2715:11: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'acl_res')
# 2713|   		if (ac->sDRightsEffective) {
# 2714|   			ret = acl_sDRightsEffective(ac->module,
# 2715|-> 						    acl_res->msgs[0],
# 2716|   						    ares->message, ac);
# 2717|   			if (ret != LDB_SUCCESS) {

Error: CPPCHECK_WARNING: [#def1644]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl_read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1645]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl_read.c:663:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  661|   			      ldb_dn_get_linearized(msg->dn), ldb_strerror(ret));
#  662|   		return LDB_ERR_OPERATIONS_ERROR;
#  663|-> 	} else if (ctx->sd == NULL) {
#  664|   		ldb_debug_set(ldb_module_get_ctx(ac->module), LDB_DEBUG_FATAL,
#  665|   			      "acl_read: cannot get descriptor of %s (attribute not found)\n",

Error: CLANG_WARNING: [#def1646]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl_read.c:823:10: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value
#  821|   			 * confidential, or access-controlled.
#  822|   			 */
#  823|-> 			ret = acl_redact_attr(ac,
#  824|   					      el,
#  825|   					      ac,

Error: CLANG_WARNING: [#def1647]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/acl_read.c:1118:9: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value
# 1116|   		 * confidential, or access-controlled.
# 1117|   		 */
# 1118|-> 		ret = acl_redact_attr(ac,
# 1119|   				      el,
# 1120|   				      ac,

Error: CPPCHECK_WARNING: [#def1648]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/anr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1649]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/count_attrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1650]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/count_attrs.c: scope_hint: In function ‘count_attrs_search’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/count_attrs.c:484:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1651]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/descriptor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1652]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/descriptor.c:676:11: warning[deadcode.DeadStores]: Value stored to 'sd_flags' during its initialization is never read
#  674|   	enum ndr_err_code ndr_err;
#  675|   	struct dsdb_control_calculated_default_sd *control_sd = NULL;
#  676|-> 	uint32_t sd_flags = dsdb_request_sd_flags(req, NULL);
#  677|   	struct security_descriptor *user_descriptor = NULL;
#  678|   

Error: CPPCHECK_WARNING: [#def1653]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dirsync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1654]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dirsync.c:465:10: warning[core.NullDereference]: Dereference of null pointer
#  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): [#def1655]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dirsync.c: scope_hint: In function ‘dirsync_filter_entry’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dirsync.c:465:79: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tab’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dirsync.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/ldb/include/ldb.h:1945:39: note: in definition of macro ‘ldb_attr_cmp’
samba-4.20.2-build/samba-4.20.2/lib/ldb/include/ldb.h:1945:39: note: in definition of macro ‘ldb_attr_cmp’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dirsync.c:361:21: note: in expansion of macro ‘ldb_attr_cmp’
samba-4.20.2-build/samba-4.20.2/lib/ldb/include/ldb.h:1945:39: note: in definition of macro ‘ldb_attr_cmp’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1656]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dns_notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1657]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/dsdb_notification.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1658]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1659]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/extended_dn_in.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1660]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/extended_dn_out.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1661]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/extended_dn_store.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1662]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1663]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c: scope_hint: In function ‘dn_compare’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c:346:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn1’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:284:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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): [#def1664]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c:346:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn2’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:284:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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): [#def1665]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c: scope_hint: In function ‘log_membership_changes’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c:742:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘old_val’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:284:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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): [#def1666]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/group_audit.c:839:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_val’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/lib/util/debug.h:284:33: note: in expansion of macro ‘DBG_PREFIX’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1667]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/linked_attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1668]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/new_partition.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1669]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/objectclass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1670]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/objectclass_attrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1671]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/objectguid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1672]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/operational.c:1157:28: warning[core.NullDereference]: Access to field 'count' results in a dereference of a null pointer (loaded from variable 'res')
# 1155|   
# 1156|   	/* sort the list so that the best PSO is first */
# 1157|-> 	TYPESAFE_QSORT(res->msgs, res->count, pso_compare);
# 1158|   
# 1159|   	if (res->count > 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1673]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/operational.c:68: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/operational.c: scope_hint: In function ‘pso_find_best’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/operational.c:1157:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
# 1155|   
# 1156|   	/* sort the list so that the best PSO is first */
# 1157|-> 	TYPESAFE_QSORT(res->msgs, res->count, pso_compare);
# 1158|   
# 1159|   	if (res->count > 0) {

Error: CPPCHECK_WARNING: [#def1674]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/paged_results.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1675]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/paged_results.c:273:30: warning[core.NullDereference]: Access to field 'count' results in a dereference of a null pointer (loaded from variable 'result')
#  271|   					    ac->store->expr);
#  272|   		if (ret == LDAP_NO_SUCH_OBJECT ||
#  273|-> 		    (ret == LDB_SUCCESS && result->count == 0)) {
#  274|   			/* The thing isn't there TODO, which we quietly
#  275|   			   ignore and go on to send an extra one

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1676]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/paged_results.c: scope_hint: In function ‘paged_results’
samba-4.20.2-build/samba-4.20.2/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: [#def1677]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/partition.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1678]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/partition_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1679]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/partition_metadata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1680]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/partition_metadata.c:457:33: warning[deadcode.DeadStores]: Value stored to 'data' during its initialization is never read
#  455|   int partition_metadata_read_unlock(struct ldb_module *module)
#  456|   {
#  457|-> 	struct partition_private_data *data
#  458|   		= talloc_get_type_abort(ldb_module_get_private(module),
#  459|   					struct partition_private_data);

Error: CLANG_WARNING: [#def1681]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/password_hash.c:3618:34: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'info_msg')
# 3616|   		ldb_asprintf_errstring(ldb,
# 3617|   				       "setup_io: sAMAccountName attribute is missing on %s for attempted password set/change",
# 3618|-> 				       ldb_dn_get_linearized(info_msg->dn));
# 3619|   
# 3620|   		return LDB_ERR_CONSTRAINT_VIOLATION;

Error: CLANG_WARNING: [#def1682]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/password_hash.c:3634:27: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'info_msg')
# 3632|   				W_ERROR_V(WERR_ACCESS_DENIED),
# 3633|   				ldb_strerror(ret),
# 3634|-> 				ldb_dn_get_linearized(info_msg->dn));
# 3635|   			return ret;
# 3636|   		}

Error: CPPCHECK_WARNING: [#def1683]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/ranged_results.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1684]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/repl_meta_data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1685]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1686]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/resolve_oids.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1687]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/ridalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1688]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/rootdse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1689]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samba3sam.c:117:17: warning[deadcode.DeadStores]: Value stored to 'out' during its initialization is never read
#  115|   static struct ldb_val convert_uid_samaccount(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val)
#  116|   {
#  117|-> 	struct ldb_val out = data_blob(NULL, 0);
#  118|   	out = ldb_val_dup(ctx, val);
#  119|   

Error: CPPCHECK_WARNING: [#def1690]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samba3sid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1691]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samba_dsdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1692]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samba_dsdb.c:99:49: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'rootdse_msg')
#   97|   					       "samba_dsdb_init: "
#   98|   					       "unable to read %s from %s:%s",
#   99|-> 					       backend_attr, ldb_dn_get_linearized(rootdse_msg->dn),
#  100|   					       ldb_errstring(ldb));
#  101|   			return LDB_ERR_CONSTRAINT_VIOLATION;

Error: CPPCHECK_WARNING: [#def1693]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1694]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:911:2: warning[deadcode.DeadStores]: Value stored to 'schema_dn' is never read
#  909|   	ldb = ldb_module_get_ctx(ac->module);
#  910|   	schema = dsdb_get_schema(ldb, ac);
#  911|-> 	schema_dn = ldb_get_schema_basedn(ldb);
#  912|   
#  913|   	ret = dsdb_get_expected_new_values(ac,

Error: CLANG_WARNING: [#def1695]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:2684:11: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value
# 2682|   				}
# 2683|   			} else if (map[i].guid) {
# 2684|-> 				ret = acl_check_extended_right(ac,
# 2685|   							       ac->module,
# 2686|   							       ac->req,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1696]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c: scope_hint: In function ‘samldb_check_user_account_control_acl’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:2684:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
# 2682|   				}
# 2683|   			} else if (map[i].guid) {
# 2684|-> 				ret = acl_check_extended_right(ac,
# 2685|   							       ac->module,
# 2686|   							       ac->req,

Error: CLANG_WARNING: [#def1697]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:3011:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 3009|   		}
# 3010|   
# 3011|-> 		ret = ldb_msg_add_empty(ac->msg,
# 3012|   					"userAccountControl",
# 3013|   					LDB_FLAG_MOD_REPLACE,

Error: CLANG_WARNING: [#def1698]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:3034:14: warning[deadcode.DeadStores]: Value stored to 'operation' during its initialization is never read
# 3032|   	struct security_descriptor *domain_sd = NULL;
# 3033|   	struct ldb_dn *domain_dn = ldb_get_default_basedn(ldb_module_get_ctx(ac->module));
# 3034|-> 	const char *operation = "";
# 3035|   	const struct dsdb_class *objectclass = NULL;
# 3036|   

Error: CLANG_WARNING: [#def1699]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:3737:14: warning[deadcode.DeadStores]: Value stored to 'target_dnstr' during its initialization is never read
# 3735|   	size_t i, len;
# 3736|   	TALLOC_CTX *tmp_ctx = NULL;
# 3737|-> 	const char *target_dnstr = ldb_dn_get_linearized(target_dn);
# 3738|   	int link_direction;
# 3739|   

Error: CLANG_WARNING: [#def1700]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:4734:9: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value
# 4732|   			return ret;
# 4733|   		}
# 4734|-> 		ret = acl_check_extended_right(ac,
# 4735|   					       ac->module,
# 4736|   					       ac->req,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1701]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c: scope_hint: In function ‘samldb_check_sensitive_attributes’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/samldb.c:4734:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘domain_sd’
# 4732|   			return ret;
# 4733|   		}
# 4734|-> 		ret = acl_check_extended_right(ac,
# 4735|   					       ac->module,
# 4736|   					       ac->req,

Error: CPPCHECK_WARNING: [#def1702]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/schema_data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1703]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/schema_load.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1704]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/schema_util.c:310:2: warning[core.NullDereference]: Access to field 'revision' results in a dereference of an undefined pointer value (loaded from variable 'schema_info')
#  308|   
#  309|   	/* update schemaInfo */
#  310|-> 	schema_info->revision++;
#  311|   	schema_info->invocation_id = *invocation_id;
#  312|   

Error: CLANG_WARNING: [#def1705]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c:226:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  224|   		if (ac->found) {
#  225|   			/* do the dirty sync job here :/ */
#  226|-> 			ret = add_modified(ac->module, ac->dn, ac->do_delete, ac->req);
#  227|   		}
#  228|   

Error: CPPCHECK_WARNING: [#def1706]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/show_deleted.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1707]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1708]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/update_keytab.c:222:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  220|   		if (ac->found) {
#  221|   			/* do the dirty sync job here :/ */
#  222|-> 			ret = add_modified(ac->module, ac->dn, ac->do_delete, ac->req);
#  223|   		}
#  224|   

Error: CPPCHECK_WARNING: [#def1709]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1710]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c:323:8: warning[core.NullDereference]: Access to field 'dn' results in a dereference of a null pointer (loaded from variable 'msg')
#  321|   	}
#  322|   
#  323|-> 	*dn = talloc_steal(mem_ctx, msg->dn);
#  324|   
#  325|   	talloc_free(tmp_ctx);

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

Error: CLANG_WARNING: [#def1712]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c:353:37: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'res')
#  351|   	}
#  352|   
#  353|-> 	status = dsdb_get_extended_dn_guid(res->msgs[0]->dn, guid, "GUID");
#  354|   	if (!NT_STATUS_IS_OK(status)) {
#  355|   		talloc_free(tmp_ctx);

Error: CLANG_WARNING: [#def1713]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c:752:4: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'res')
#  750|   	if (ret == LDB_SUCCESS) {
#  751|   		*found = ldb_msg_check_string_attribute(
#  752|-> 			res->msgs[0],
#  753|   			SAMBA_COMPATIBLE_FEATURES_ATTR,
#  754|   			feature);

Error: CLANG_WARNING: [#def1714]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c:804:6: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'res')
#  802|   		return LDB_ERR_NO_SUCH_OBJECT;
#  803|   	}
#  804|-> 	if (res->msgs[0]->num_elements > 0) {
#  805|   		static const char * const attrs2[] = {"msDS-OptionalFeatureGUID", NULL};
#  806|   

Error: CLANG_WARNING: [#def1715]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c:885:20: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of an undefined pointer value (loaded from variable 'res')
#  883|   
#  884|   	*dn = ldb_msg_find_attr_as_dn(ldb_module_get_ctx(module),
#  885|-> 				      mem_ctx, res->msgs[0], attribute);
#  886|   	if (!*dn) {
#  887|   		ldb_reset_err_string(ldb_module_get_ctx(module));

Error: CLANG_WARNING: [#def1716]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/util.c:1397:28: warning[core.NullDereference]: Access to field 'count' results in a dereference of an undefined pointer value (loaded from variable 'res')
# 1395|   				    DSDB_FLAG_NEXT_MODULE,
# 1396|   				    parent);
# 1397|-> 	if (ret == LDB_SUCCESS && res->count == 1) {
# 1398|   		talloc_free(new_dn);
# 1399|   		return ldb_msg_find_ldb_val(res->msgs[0],

Error: CPPCHECK_WARNING: [#def1717]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1718]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:254:28: warning[core.NullDereference]: Access to field 'msgs' results in a dereference of a null pointer (loaded from variable 'result')
#  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): [#def1719]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘vlv_value_compare’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:254:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:51: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:312:17: note: in expansion of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:312:17: note: in expansion of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:312:17: note: in expansion of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:110:34: note: in definition of macro ‘BINARY_ARRAY_SEARCH_GTE’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1720]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:462:11: warning[core.NullDereference]: Access to field 'count' results in a dereference of a null pointer (loaded from variable 'result')
#  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): [#def1721]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘vlv_results’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:462:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:663: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1722]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:654:6: warning[core.NullDereference]: Access to field 'vlv_details' results in a dereference of a null pointer (loaded from variable 'store')
#  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): [#def1723]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c: scope_hint: In function ‘copy_search_details’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:654:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘store’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1724]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/samdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1725]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/samdb_privilege.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1726]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_convert_to_ol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1727]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_description.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1728]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_info_attr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1729]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1730]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_init.c:295:11: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  293|   
#  294|   	/* Check if there is a prefix for the oid in the prefixes array*/
#  295|-> 	status = dsdb_schema_pfm_find_oid(pfm, full_oid, NULL);
#  296|   	if (W_ERROR_IS_OK(status)) {
#  297|   		/* prefix found*/

Error: CPPCHECK_WARNING: [#def1731]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_prefixmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1732]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1733]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c: scope_hint: In function ‘dsdb_attribute_list’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:278:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  276|   	switch (query) {
#  277|   	case DSDB_SCHEMA_ALL_MAY:
#  278|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mayContain);
#  279|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMayContain);
#  280|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1734]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:283:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  281|   		
#  282|   	case DSDB_SCHEMA_ALL_MUST:
#  283|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mustContain);
#  284|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMustContain);
#  285|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1735]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:288:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  286|   		
#  287|   	case DSDB_SCHEMA_SYS_MAY:
#  288|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMayContain);
#  289|   		break;
#  290|   		

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1736]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:292:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  290|   		
#  291|   	case DSDB_SCHEMA_SYS_MUST:
#  292|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMustContain);
#  293|   		break;
#  294|   		

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1737]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:296:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  294|   		
#  295|   	case DSDB_SCHEMA_MAY:
#  296|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mayContain);
#  297|   		break;
#  298|   		

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1738]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:300:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  298|   		
#  299|   	case DSDB_SCHEMA_MUST:
#  300|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mustContain);
#  301|   		break;
#  302|   		

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1739]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_query.c:304:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.20.2-build/samba-4.20.2/lib/util/binsearch.h:49:13: note: in definition of macro ‘BINARY_ARRAY_SEARCH_P’
#  302|   		
#  303|   	case DSDB_SCHEMA_ALL:
#  304|-> 		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mayContain);
#  305|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->systemMayContain);
#  306|   		attr_list = merge_attr_list(mem_ctx, attr_list, sclass->mustContain);

Error: CPPCHECK_WARNING: [#def1740]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1741]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_set.c:555:3: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer
#  553|   
#  554|   	for (i=0; i < schema->classes_to_remove_size; i++) {
#  555|-> 		DLIST_REMOVE(schema->classes, schema->classes_to_remove[i]);
#  556|   		TALLOC_FREE(schema->classes_to_remove[i]);
#  557|   	}

Error: CLANG_WARNING: [#def1742]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_set.c:559:3: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer
#  557|   	}
#  558|   	for (i=0; i < schema->attributes_to_remove_size; i++) {
#  559|-> 		DLIST_REMOVE(schema->attributes, schema->attributes_to_remove[i]);
#  560|   		TALLOC_FREE(schema->attributes_to_remove[i]);
#  561|   	}

Error: CPPCHECK_WARNING: [#def1743]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/schema_syntax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1744]
samba-4.20.2-build/samba-4.20.2/source4/dsdb/schema/tests/schema_syntax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1745]
samba-4.20.2-build/samba-4.20.2/source4/kdc/ad_claims.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1746]
samba-4.20.2-build/samba-4.20.2/source4/kdc/authn_policy_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1747]
samba-4.20.2-build/samba-4.20.2/source4/kdc/db-glue.c:541:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  539|   			DEBUG(2,("Unsupported keytype ignored - type %u\n",
#  540|   				 p->pkeys[i].keytype));
#  541|-> 			ret = 0;
#  542|   			continue;
#  543|   		}

Error: CLANG_WARNING: [#def1748]
samba-4.20.2-build/samba-4.20.2/source4/kdc/db-glue.c:880:14: warning[core.NullDereference]: Access to field 'kvno' results in a dereference of a null pointer (loaded from variable 'entry')
#  878|   		returned_kvno = SAMBA_KVNO_AND_KRBTGT(returned_kvno, krbtgt_number);
#  879|   	}
#  880|-> 	entry->kvno = returned_kvno;
#  881|   
#  882|   out:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1749]
samba-4.20.2-build/samba-4.20.2/source4/kdc/db-glue.c: scope_hint: In function ‘dsdb_extract_aes_256_key’
samba-4.20.2-build/samba-4.20.2/source4/kdc/db-glue.c:3819:24: warning[-Wanalyzer-malloc-leak]: leak of ‘sentry.keys.val’
# 3817|   		krb5_free_error_message(context, krb5_err);
# 3818|   
# 3819|-> 		return krb5_ret;
# 3820|   	}
# 3821|   

Error: CPPCHECK_WARNING: [#def1750]
samba-4.20.2-build/samba-4.20.2/source4/kdc/kpasswd-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1751]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit-kdb/kdb_samba_policies.c:64:3: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#   62|   	if (nb_name) {
#   63|   		/* Strip space padding */
#   64|-> 		i = strlen(nb_name) - 1;
#   65|   		for (i = strlen(nb_name) - 1;
#   66|   		     i > 0 && nb_name[i] == ' ';

Error: CPPCHECK_WARNING: [#def1752]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit-kdb/kdb_samba_principals.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1753]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit-kdb/kdb_samba_principals.c: scope_hint: In function ‘ks_get_master_key_principal’
samba-4.20.2-build/samba-4.20.2/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): [#def1754]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit-kdb/kdb_samba_principals.c: scope_hint: In function ‘ks_create_principal’
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit-kdb/kdb_samba_principals.c:273:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit-kdb/kdb_samba_principals.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1755]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit_samba.c: scope_hint: In function ‘mit_samba_context_init’
samba-4.20.2-build/samba-4.20.2/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);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ldb.h:51: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/dsdb/samdb/samdb.h:42: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1756]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit_samba.c:226:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'kentry'
#  224|   		int equal = smb_krb5_principal_is_tgs(ctx->context, principal);
#  225|   		if (equal == -1) {
#  226|-> 			return ENOMEM;
#  227|   		}
#  228|   

Error: CLANG_WARNING: [#def1757]
samba-4.20.2-build/samba-4.20.2/source4/kdc/mit_samba.c:260:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  258|   			 * will return the correct error to the client.
#  259|   			 */
#  260|-> 			ret = 0;
#  261|   			break;
#  262|   		}

Error: CLANG_WARNING: [#def1758]
samba-4.20.2-build/samba-4.20.2/source4/kdc/pac-glue.c:159:34: warning[core.NullDereference]: Access to field 'info' results in a dereference of a null pointer (loaded from variable 'info')
#  157|   	}
#  158|   
#  159|-> 	pac_upn.upn_dns_info.upn_name = info->info->user_principal_name;
#  160|   	pac_upn.upn_dns_info.dns_domain_name = strupper_talloc(tmp_ctx,
#  161|   						info->info->dns_domain_name);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def1759]
samba-4.20.2-build/samba-4.20.2/source4/kdc/sdb.c: scope_hint: In function ‘sdb_entry_set_session_etypes’
samba-4.20.2-build/samba-4.20.2/source4/kdc/sdb.c:183:53: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
#  181|   		if (add_aes128) {
#  182|   			/* Add AES128. */
#  183|-> 			s->session_etypes->val[j++] = ENCTYPE_AES128_CTS_HMAC_SHA1_96;
#  184|   		}
#  185|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def1760]
samba-4.20.2-build/samba-4.20.2/source4/kdc/sdb.c:188:53: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
#  186|   		if (add_rc4) {
#  187|   			/* Add RC4. */
#  188|-> 			s->session_etypes->val[j++] = ENCTYPE_ARCFOUR_HMAC;
#  189|   		}
#  190|   

Error: CLANG_WARNING: [#def1761]
samba-4.20.2-build/samba-4.20.2/source4/kdc/sdb_to_kdb.c:225:7: warning[unix.Malloc]: Use of memory after it is freed
#  223|   				if (k->key_data[i].key_data_length[j] != 0) {
#  224|   					if (k->key_data[i].key_data_contents[j] != NULL) {
#  225|-> 						BURN_PTR_SIZE(k->key_data[i].key_data_contents[j], k->key_data[i].key_data_length[j]);
#  226|   						free(k->key_data[i].key_data_contents[j]);
#  227|   					}

Error: CLANG_WARNING: [#def1762]
samba-4.20.2-build/samba-4.20.2/source4/kdc/sdb_to_kdb.c:226:7: warning[unix.Malloc]: Argument to free() is a constant address (2), which is not memory allocated by malloc()
#  224|   					if (k->key_data[i].key_data_contents[j] != NULL) {
#  225|   						BURN_PTR_SIZE(k->key_data[i].key_data_contents[j], k->key_data[i].key_data_length[j]);
#  226|-> 						free(k->key_data[i].key_data_contents[j]);
#  227|   					}
#  228|   				}

Error: CPPCHECK_WARNING: [#def1763]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1764]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1765]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c:178:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  176|   	    !using_tls)
#  177|   	{
#  178|-> 		status = NT_STATUS_NETWORK_ACCESS_DENIED;
#  179|   		result = LDAP_STRONG_AUTH_REQUIRED;
#  180|   		errstr = talloc_asprintf(reply,

Error: CLANG_WARNING: [#def1766]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c:242:3: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  240|   	if (NT_STATUS_IS_OK(status)) {
#  241|   		char *ldb_errstring = NULL;
#  242|-> 		result = LDAP_SUCCESS;
#  243|   		errstr = NULL;
#  244|   

Error: CLANG_WARNING: [#def1767]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c:519:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  517|   	if (context && conn->sockets.tls) {
#  518|   		TALLOC_FREE(context);
#  519|-> 		status = NT_STATUS_NOT_SUPPORTED;
#  520|   		result = LDAP_UNWILLING_TO_PERFORM;
#  521|   		errstr = talloc_asprintf(reply,

Error: CLANG_WARNING: [#def1768]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c:529:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  527|   	if (context && conn->sockets.sasl) {
#  528|   		TALLOC_FREE(context);
#  529|-> 		status = NT_STATUS_NOT_SUPPORTED;
#  530|   		result = LDAP_UNWILLING_TO_PERFORM;
#  531|   		errstr = talloc_asprintf(reply,

Error: CLANG_WARNING: [#def1769]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c:545:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  543|   				break;
#  544|   			}
#  545|-> 			status = NT_STATUS_NETWORK_ACCESS_DENIED;
#  546|   			result = LDAP_STRONG_AUTH_REQUIRED;
#  547|   			errstr = talloc_asprintf(reply,

Error: CLANG_WARNING: [#def1770]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_bind.c:553:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  551|   
#  552|   		case LDAP_SERVER_REQUIRE_STRONG_AUTH_YES:
#  553|-> 			status = NT_STATUS_NETWORK_ACCESS_DENIED;
#  554|   			result = LDAP_STRONG_AUTH_REQUIRED;
#  555|   			errstr = talloc_asprintf(reply,

Error: CPPCHECK_WARNING: [#def1771]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_extended.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1772]
samba-4.20.2-build/samba-4.20.2/source4/ldap_server/ldap_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def1773]
samba-4.20.2-build/samba-4.20.2/source4/lib/events/tevent_s4.c: scope_hint: In function ‘s4_event_context_init’
samba-4.20.2-build/samba-4.20.2/source4/lib/events/tevent_s4.c:37:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.20.2-build/samba-4.20.2/source4/lib/events/events.h:3: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1774]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/messaging.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1775]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/messaging_send.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1776]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/pymessaging.c:132:18: warning[core.CallAndMessage]: Passed-by-value struct argument contains uninitialized data (e.g., field: 'unique_id')
#  130|   		}
#  131|   
#  132|-> 		ret->msg_ctx = imessaging_init(ret->mem_ctx,
#  133|   					       lp_ctx,
#  134|   					       server_id,

Error: CLANG_WARNING: [#def1777]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/pymessaging.c:180:11: warning[core.CallAndMessage]: Passed-by-value struct argument contains uninitialized data (e.g., field: 'unique_id')
#  178|   		return NULL;
#  179|   
#  180|-> 	status = imessaging_send(iface->msg_ctx, server, msg_type, &data);
#  181|   	if (NT_STATUS_IS_ERR(status)) {
#  182|   		PyErr_SetNTSTATUS(status);

Error: CPPCHECK_WARNING: [#def1778]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/tests/irpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def1779]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/tests/irpc.c: scope_hint: In function ‘test_addone’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/librpc/gen_ndr/ndr_echo_c.h:1: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/tests/irpc.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1780]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/tests/irpc.c: scope_hint: In function ‘test_echodata’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1781]
samba-4.20.2-build/samba-4.20.2/source4/lib/messaging/tests/messaging.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1782]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_filesys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1783]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_filesys.c:409:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  407|   
#  408|   	/* Fetch the files */
#  409|-> 	status = gp_get_files(gp_ctx->cli->tree, share_path, local_path, &state->list);
#  410|   
#  411|   	/* Return the local path to the gpo */

Error: CPPCHECK_WARNING: [#def1784]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_ldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1785]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_ldap.c:333:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  331|   	talloc_free(mem_ctx);
#  332|   
#  333|-> 	*ret = gpo;
#  334|   	return NT_STATUS_OK;
#  335|   }

Error: CPPCHECK_WARNING: [#def1786]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1787]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c: scope_hint: In function ‘gp_create_gpo’
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c:228:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sd’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c:19: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c:155:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1788]
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c: scope_hint: In function ‘gp_set_acl’
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c:277:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fs_sd’
samba-4.20.2-build/samba-4.20.2/source4/lib/policy/gp_manage.c:250:9: note: in expansion of macro ‘NT_STATUS_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/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: [#def1789]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/ldb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1790]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/ldb.c:785:5: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  783|   							"key", NULL));
#  784|   			if (!W_ERROR_IS_OK(werr)) {
#  785|-> 				ret = ldb_transaction_cancel(c);
#  786|   				return werr;
#  787|   			}

Error: CLANG_WARNING: [#def1791]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/ldb.c:798:5: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  796|   							"value", NULL));
#  797|   			if (!W_ERROR_IS_OK(werr)) {
#  798|-> 				ret = ldb_transaction_cancel(c);
#  799|   				return werr;
#  800|   			}

Error: CLANG_WARNING: [#def1792]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/ldb.c:812:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  810|   	{
#  811|   		DEBUG(1, ("ldb_del_key: %s\n", ldb_errstring(c)));
#  812|-> 		ret = ldb_transaction_cancel(c);
#  813|   		return WERR_FOOBAR;
#  814|   	}

Error: CLANG_WARNING: [#def1793]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/ldb.c:822:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  820|   	{
#  821|   		DEBUG(0, ("ldb_transaction_commit: %s\n", ldb_errstring(c)));
#  822|-> 		ret = ldb_transaction_cancel(c);
#  823|   		return WERR_FOOBAR;
#  824|   	}

Error: CPPCHECK_WARNING: [#def1794]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/local.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1795]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/patchfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1796]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/patchfile_dotreg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1797]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/patchfile_preg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1798]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/patchfile_preg.c:78: error[uninitvar]: Uninitialized variable: &buf
#   76|   	preg_write_utf16(data->fd, ";");
#   77|   	SIVAL(&buf, 0, value_type);
#   78|-> 	sys_write_v(data->fd, &buf, sizeof(uint32_t));
#   79|   	preg_write_utf16(data->fd, ";");
#   80|   	SIVAL(&buf, 0, value_data.length);

Error: CPPCHECK_WARNING: [#def1799]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1800]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:272:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  270|   	DATA_BLOB dest = hbin_alloc(data, blob.length, &ret);
#  271|   
#  272|-> 	memcpy(dest.data, blob.data, blob.length);
#  273|   
#  274|   	/* Make sure that we have no tailing garbage in the block */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1801]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c: scope_hint: In function ‘hbin_store’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:272:9: warning[-Wanalyzer-null-argument]: use of NULL ‘<unknown>’ where non-null expected
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:2052:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:936:41: note: in definition of macro ‘unlikely’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:2054:9: note: in expansion of macro ‘DEBUG’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:2067:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:2075:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:2082:9: note: in expansion of macro ‘W_ERROR_HAVE_NO_MEMORY’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:2126:9: note: in expansion of macro ‘ZERO_STRUCT’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  270|   	DATA_BLOB dest = hbin_alloc(data, blob.length, &ret);
#  271|   
#  272|-> 	memcpy(dest.data, blob.data, blob.length);
#  273|   
#  274|   	/* Make sure that we have no tailing garbage in the block */

Error: CLANG_WARNING: [#def1802]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1661:16: warning[core.NullDereference]: Array access (via field 'data') results in a null pointer dereference
# 1659|   			((uint32_t *)values.data)[i-1] = ((uint32_t *) values.data)[i];
# 1660|   		} else {
# 1661|-> 			vk_offset = IVAL(values.data, i * 4);
# 1662|   			if (!hbin_get_tdr(regf, vk_offset, private_data,
# 1663|   					  (tdr_pull_fn_t)tdr_pull_vk_block,

Error: CLANG_WARNING: [#def1803]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1884:20: warning[core.NullDereference]: Array access (via field 'data') results in a null pointer dereference
# 1882|   
# 1883|   		for (i = 0; i < nk->num_values; i++) {
# 1884|-> 			tmp_vk_offset = IVAL(values.data, i * 4);
# 1885|   			if (!hbin_get_tdr(regf, tmp_vk_offset, private_data,
# 1886|   					  (tdr_pull_fn_t)tdr_pull_vk_block,

Error: CLANG_WARNING: [#def1804]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/regf.c:1970:4: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1968|   								  nk->num_values+1);
# 1969|   			W_ERROR_HAVE_NO_MEMORY(value_list.data);
# 1970|-> 			memcpy(value_list.data, values.data, nk->num_values * 4);
# 1971|   
# 1972|   			SIVAL(value_list.data, nk->num_values * 4, vk_offset);

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

Error: CPPCHECK_WARNING: [#def1806]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/rpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1807]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tests/diff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1808]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tests/hive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1809]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tests/registry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1810]
samba-4.20.2-build/samba-4.20.2/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): [#def1811]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1812]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tools/regdiff.c:121:3: warning[deadcode.DeadStores]: Value stored to 'error' is never read
#  119|   
#  120|   	while((opt = poptGetNextOpt(pc)) != -1) {
#  121|-> 		error = WERR_OK;
#  122|   		switch(opt)	{
#  123|   		case 'L':

Error: CPPCHECK_WARNING: [#def1813]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tools/regshell.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1814]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tools/regshell.c: scope_hint: In function ‘reg_complete_command’
samba-4.20.2-build/samba-4.20.2/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): [#def1815]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tools/regshell.c: scope_hint: In function ‘reg_complete_key’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1816]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tools/regtree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1817]
samba-4.20.2-build/samba-4.20.2/source4/lib/registry/tools/regtree.c:186:2: warning[deadcode.DeadStores]: Value stored to 'error' is never read
#  184|   	}
#  185|   
#  186|-> 	error = WERR_OK;
#  187|   
#  188|   	if (start_key != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1818]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/socket/connect_multi.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/lib/socket/connect_multi.c: scope_hint: In function ‘socket_connect_multi_ex_recv’
samba-4.20.2-build/samba-4.20.2/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:2339: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1819]
samba-4.20.2-build/samba-4.20.2/source4/lib/socket/interface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1820]
samba-4.20.2-build/samba-4.20.2/source4/lib/socket/socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1821]
samba-4.20.2-build/samba-4.20.2/source4/lib/socket/socket_ip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1822]
samba-4.20.2-build/samba-4.20.2/source4/lib/socket/testsuite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1823]
samba-4.20.2-build/samba-4.20.2/source4/lib/stream/packet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1824]
samba-4.20.2-build/samba-4.20.2/source4/lib/tls/tls_tstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1825]
samba-4.20.2-build/samba-4.20.2/source4/libcli/clideltree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1826]
samba-4.20.2-build/samba-4.20.2/source4/libcli/clideltree.c: scope_hint: In function ‘delete_fn’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1827]
samba-4.20.2-build/samba-4.20.2/source4/libcli/clifile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1828]
samba-4.20.2-build/samba-4.20.2/source4/libcli/clilist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1829]
samba-4.20.2-build/samba-4.20.2/source4/libcli/clireadwrite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1830]
samba-4.20.2-build/samba-4.20.2/source4/libcli/clitrans2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1831]
samba-4.20.2-build/samba-4.20.2/source4/libcli/dgram/dgramsocket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1832]
samba-4.20.2-build/samba-4.20.2/source4/libcli/finddcs_cldap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1833]
samba-4.20.2-build/samba-4.20.2/source4/libcli/ldap/ldap_bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1834]
samba-4.20.2-build/samba-4.20.2/source4/libcli/ldap/ldap_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1835]
samba-4.20.2-build/samba-4.20.2/source4/libcli/ldap/ldap_client.c:112:3: warning[core.NullDereference]: Access to field 'pending' results in a dereference of a null pointer (loaded from field 'conn')
#  110|   	while (conn->pending) {
#  111|   		req = conn->pending;
#  112|-> 		DLIST_REMOVE(req->conn->pending, req);
#  113|   		req->conn = NULL;
#  114|   		req->state = LDAP_REQUEST_DONE;

Error: CPPCHECK_WARNING: [#def1836]
samba-4.20.2-build/samba-4.20.2/source4/libcli/ldap/ldap_controls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1837]
samba-4.20.2-build/samba-4.20.2/source4/libcli/ldap/ldap_ildap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1838]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1839]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:353:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  351|   		goto done;
#  352|   
#  353|-> 	result = NT_STATUS_INVALID_PARAMETER;
#  354|   
#  355|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1840]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:538:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  536|   		goto done;
#  537|   
#  538|-> 	result = NT_STATUS_INVALID_PARAMETER;
#  539|   
#  540|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1841]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:614:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  612|   		goto done;
#  613|   
#  614|-> 	result = NT_STATUS_INVALID_PARAMETER;
#  615|   
#  616|   	ZERO_STRUCT(r->out);

Error: CLANG_WARNING: [#def1842]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:922:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  920|   		goto done;
#  921|   
#  922|-> 	result = NT_STATUS_INVALID_PARAMETER;
#  923|   
#  924|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1843]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:992:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
#  990|   		goto done;
#  991|   
#  992|-> 	result = NT_STATUS_INVALID_PARAMETER;
#  993|   
#  994|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1844]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1065:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1063|   		goto done;
# 1064|   
# 1065|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1066|   
# 1067|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1845]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1148:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1146|   		goto done;
# 1147|   
# 1148|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1149|   
# 1150|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1846]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1215:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1213|   		goto done;
# 1214|   
# 1215|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1216|   
# 1217|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1847]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1271:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1269|   		goto done;
# 1270|   
# 1271|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1272|   
# 1273|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1848]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1318:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1316|   		goto done;
# 1317|   
# 1318|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1319|   
# 1320|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1849]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1461:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1459|   		goto done;
# 1460|   
# 1461|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1462|   
# 1463|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1850]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1506:3: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1504|   		break;
# 1505|   	default:
# 1506|-> 		result = NT_STATUS_INVALID_PARAMETER;
# 1507|   		break;
# 1508|   	}

Error: CLANG_WARNING: [#def1851]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1519:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1517|   		goto done;
# 1518|   
# 1519|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1520|   
# 1521|   	ZERO_STRUCT(r->out);

Error: CLANG_WARNING: [#def1852]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1566:3: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1564|   		break;
# 1565|   	default:
# 1566|-> 		result = NT_STATUS_INVALID_PARAMETER;
# 1567|   		break;
# 1568|   	}

Error: CLANG_WARNING: [#def1853]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1582:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1580|   		goto done;
# 1581|   
# 1582|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1583|   
# 1584|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1854]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1627:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1625|   		goto done;
# 1626|   
# 1627|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1628|   
# 1629|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CLANG_WARNING: [#def1855]
samba-4.20.2-build/samba-4.20.2/source4/libcli/rap/rap.c:1672:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1670|   		goto done;
# 1671|   
# 1672|-> 	result = NT_STATUS_INVALID_PARAMETER;
# 1673|   
# 1674|   	NDR_GOTO(ndr_pull_rap_status(call->ndr_pull_param, NDR_SCALARS, &r->out.status));

Error: CPPCHECK_WARNING: [#def1856]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/clisession.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1857]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/clisocket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1858]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/clisocket.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/clisocket.c: scope_hint: In function ‘smbcli_sock_connect_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1859]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/clitransport.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1860]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/raweas.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1861]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1862]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c: scope_hint: In function ‘smb_raw_t2open_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1863]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c: scope_hint: In function ‘smb_raw_open_recv’
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:650:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:647:17: note: in expansion of macro ‘SMBCLI_CHECK_WCT’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/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): [#def1864]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:660:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:657:17: note: in expansion of macro ‘SMBCLI_CHECK_MIN_WCT’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/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): [#def1865]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:722:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfile.c:719:17: note: in expansion of macro ‘SMBCLI_CHECK_MIN_WCT’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1866]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawfileinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1867]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawnotify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1868]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawreadwrite.c: scope_hint: In function ‘smb_raw_read_recv’
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawreadwrite.c:158:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawreadwrite.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawreadwrite.c:154:17: note: in expansion of macro ‘SMBCLI_CHECK_WCT’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:49: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawreadwrite.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:26:35: note: in definition of macro ‘_DATA_BYTE_CONST’
samba-4.20.2-build/samba-4.20.2/lib/util/bytearray.h:41:16: note: in expansion of macro ‘PULL_LE_U8’
samba-4.20.2-build/samba-4.20.2/lib/util/byteorder.h:110:33: note: in expansion of macro ‘PULL_LE_U16’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1869]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawrequest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1870]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawsearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1871]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawshadow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1872]
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/rawtrans.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1873]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/dns_ex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1874]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/lmhosts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1875]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/nbtlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1876]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1877]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve.c: scope_hint: In function ‘resolve_name_all_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1878]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve.c: scope_hint: In function ‘resolve_name_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1879]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve.c: scope_hint: In function ‘resolve_name_multiple_recv’
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve.c:284:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addrs’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: [#def1880]
samba-4.20.2-build/samba-4.20.2/source4/libcli/resolve/resolve_lp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1881]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1882]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/create.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1883]
samba-4.20.2-build/samba-4.20.2/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): [#def1884]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/create.c:177: error[uninitvar]: Uninitialized variable: data
#  175|   		SBVAL(data, 0, io->in.timewarp);		
#  176|   		status = smb2_create_blob_add(req, &blobs,
#  177|-> 					      SMB2_CREATE_TAG_TWRP, data_blob_const(data, 8));
#  178|   		if (!NT_STATUS_IS_OK(status)) {
#  179|   			talloc_free(req);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1885]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/ioctl.c: scope_hint: In function ‘smb2_ioctl_recv’
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/ioctl.c:115:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
#  113|   
#  114|   	if (!smb2_request_receive(req) ||
#  115|-> 	    smb2_ioctl_is_failure(io->in.function, req->status,
#  116|   				  req->in.bufinfo.data_size)) {
#  117|   		return smb2_request_destroy(req);

Error: CPPCHECK_WARNING: [#def1886]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1887]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/transport.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1888]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb2/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1889]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/appendacl.c:1: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/appendacl.c: scope_hint: In function ‘smb_composite_appendacl_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1890]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/connect_nego.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1891]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/fetchfile.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/fetchfile.c: scope_hint: In function ‘smb_composite_fetchfile_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1892]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/fsinfo.c:5: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/fsinfo.c: scope_hint: In function ‘smb_composite_fsinfo_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1893]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/loadfile.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/loadfile.c: scope_hint: In function ‘smb_composite_loadfile_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1894]
samba-4.20.2-build/samba-4.20.2/source4/libcli/smb_composite/sesssetup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1895]
samba-4.20.2-build/samba-4.20.2/source4/libcli/util/clilsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1896]
samba-4.20.2-build/samba-4.20.2/source4/libcli/wbclient/wbclient.c:59:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   57|   	}
#   58|   
#   59|-> 	wb_off = winbind_env_set();
#   60|   	if (wb_off) {
#   61|   		(void)winbind_on();

Error: CLANG_WARNING: [#def1897]
samba-4.20.2-build/samba-4.20.2/source4/libcli/wbclient/wbclient.c:154:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  152|   	}
#  153|   
#  154|-> 	wb_off = winbind_env_set();
#  155|   	if (wb_off) {
#  156|   		(void)winbind_on();

Error: CPPCHECK_WARNING: [#def1898]
samba-4.20.2-build/samba-4.20.2/source4/libcli/wrepl/winsrepl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1899]
samba-4.20.2-build/samba-4.20.2/source4/libcli/wrepl/winsrepl.c:681:6: warning[core.NullDereference]: Access to field 'mess_type' results in a dereference of an undefined pointer value (loaded from variable 'packet')
#  679|   	}
#  680|   
#  681|-> 	if (packet->mess_type != WREPL_START_ASSOCIATION_REPLY) {
#  682|   		tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);
#  683|   		return;

Error: CLANG_WARNING: [#def1900]
samba-4.20.2-build/samba-4.20.2/source4/libcli/wrepl/winsrepl.c:911:6: warning[core.NullDereference]: Access to field 'mess_type' results in a dereference of an undefined pointer value (loaded from variable 'packet')
#  909|   	}
#  910|   
#  911|-> 	if (packet->mess_type != WREPL_REPLICATION) {
#  912|   		tevent_req_nterror(req, NT_STATUS_NETWORK_ACCESS_DENIED);
#  913|   		return;

Error: CLANG_WARNING: [#def1901]
samba-4.20.2-build/samba-4.20.2/source4/libcli/wrepl/winsrepl.c:1046:6: warning[core.NullDereference]: Access to field 'mess_type' results in a dereference of an undefined pointer value (loaded from variable 'packet')
# 1044|   	}
# 1045|   
# 1046|-> 	if (packet->mess_type != WREPL_REPLICATION) {
# 1047|   		tevent_req_nterror(req, NT_STATUS_NETWORK_ACCESS_DENIED);
# 1048|   		return;

Error: CPPCHECK_WARNING: [#def1902]
samba-4.20.2-build/samba-4.20.2/source4/libnet/groupinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1903]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/groupinfo.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/groupinfo.c: scope_hint: In function ‘libnet_rpc_groupinfo_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1904]
samba-4.20.2-build/samba-4.20.2/source4/libnet/groupman.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1905]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/groupman.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/groupman.c: scope_hint: In function ‘libnet_rpc_groupadd_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1906]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_become_dc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1907]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_domain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1908]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_domain.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_domain.c: scope_hint: In function ‘libnet_DomainOpenSamr_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1909]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_domain.c: scope_hint: In function ‘libnet_DomainOpenLsa_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1910]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_group.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1911]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_group.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_group.c: scope_hint: In function ‘libnet_GroupInfo_recv’
samba-4.20.2-build/samba-4.20.2/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:2339: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1912]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_lookup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1913]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_lookup.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_lookup.c: scope_hint: In function ‘libnet_Lookup_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1914]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_lookup.c: scope_hint: In function ‘libnet_LookupName_recv’
samba-4.20.2-build/samba-4.20.2/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:2339: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1915]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_site.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1916]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_unbecome_dc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1917]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_user.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1918]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_user.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_user.c: scope_hint: In function ‘libnet_DeleteUser_recv’
samba-4.20.2-build/samba-4.20.2/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:2339: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb2_signing.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/smb/smb_common.h:30: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/smb.h:320: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/raw/interfaces.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libcli/composite/composite.h:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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): [#def1919]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_user.c: scope_hint: In function ‘libnet_UserInfo_recv’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def1920]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_user.c:887:23: warning[core.NullDereference]: Dereference of null pointer
#  885|   
#  886|   	} else {
#  887|-> 		r->out.error_string = talloc_asprintf(mem_ctx, "Error: %s", nt_errstr(status));
#  888|   	}
#  889|   

Error: CPPCHECK_WARNING: [#def1921]
samba-4.20.2-build/samba-4.20.2/source4/libnet/libnet_vampire.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1922]
samba-4.20.2-build/samba-4.20.2/source4/libnet/userinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1923]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/userinfo.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/userinfo.c: scope_hint: In function ‘libnet_rpc_userinfo_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1924]
samba-4.20.2-build/samba-4.20.2/source4/libnet/userman.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1925]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/userman.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/libnet/userman.c: scope_hint: In function ‘libnet_rpc_useradd_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1926]
samba-4.20.2-build/samba-4.20.2/source4/libnet/userman.c: scope_hint: In function ‘libnet_rpc_userdel_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1927]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CLANG_WARNING: [#def1929]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc.c:1193:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1191|   				 pkt->u.bind_ack.ctx_list[1].reason.value,
# 1192|   				 nt_errstr(status)));
# 1193|-> 			status = NT_STATUS_OK;
# 1194|   		}
# 1195|   	}

Error: CPPCHECK_WARNING: [#def1930]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1931]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_auth.c:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_auth.c: scope_hint: In function ‘dcerpc_bind_auth_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1932]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1933]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_connect.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_connect.c: scope_hint: In function ‘dcerpc_pipe_connect_b_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1934]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_connect.c: scope_hint: In function ‘dcerpc_pipe_connect_recv’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/lib/replace/system/network.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/util_net.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1935]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_schannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1936]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_secondary.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1937]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_secondary.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_secondary.c: scope_hint: In function ‘dcerpc_secondary_auth_connection_recv’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1938]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_smb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1939]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_sock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1940]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1941]
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_util.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc_util.c: scope_hint: In function ‘dcerpc_pipe_auth_recv’
samba-4.20.2-build/samba-4.20.2/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): [#def1942]
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/pyrpc_util.c: scope_hint: In function ‘pyrpc_irpc_connect’
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/pyrpc_util.c:92:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/pyrpc_util.c:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/librpc/rpc/rpc_common.h:245:19: note: declared here
#   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: CPPCHECK_WARNING: [#def1943]
samba-4.20.2-build/samba-4.20.2/source4/librpc/tests/binding_string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1944]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/dgram/netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1945]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/dgram/request.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1946]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/interfaces.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1947]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/interfaces.c:437:12: warning[core.NullDereference]: Access to field 'ip_address' results in a dereference of a null pointer (loaded from variable 'cur')
#  435|   	cur = nbtd_server->interfaces;
#  436|   	DEBUG(10,("find interface for dst[%s] ip: %s/%s (default iface[%p])\n",
#  437|-> 		address, cur->ip_address, cur->netmask, cur));
#  438|   	return cur;
#  439|   }

Error: CPPCHECK_WARNING: [#def1948]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/nbt_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1949]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/nodestatus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1950]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/register.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1951]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/wins/winsdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1952]
samba-4.20.2-build/samba-4.20.2/source4/nbt_server/wins/winsserver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1953]
samba-4.20.2-build/samba-4.20.2/source4/ntp_signd/ntp_signd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1954]
samba-4.20.2-build/samba-4.20.2/source4/param/secrets.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1955]
samba-4.20.2-build/samba-4.20.2/source4/param/share_classic.c: scope_hint: In function ‘sclassic_string_option’
samba-4.20.2-build/samba-4.20.2/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): [#def1956]
samba-4.20.2-build/samba-4.20.2/source4/param/share_classic.c: scope_hint: In function ‘sclassic_int_option’
samba-4.20.2-build/samba-4.20.2/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): [#def1957]
samba-4.20.2-build/samba-4.20.2/source4/param/share_classic.c: scope_hint: In function ‘sclassic_bool_option’
samba-4.20.2-build/samba-4.20.2/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): [#def1958]
samba-4.20.2-build/samba-4.20.2/source4/param/share_classic.c: scope_hint: In function ‘sclassic_string_list_option’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def1959]
samba-4.20.2-build/samba-4.20.2/source4/param/tests/share.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1960]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/backupkey/dcesrv_backupkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1961]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/backupkey/dcesrv_backupkey.c:736:6: warning[core.NullDereference]: Access to field 'data' results in a dereference of a null pointer (loaded from variable 'uncrypted_data')
#  734|   	}
#  735|   
#  736|-> 	if (uncrypted_data->data == NULL) {
#  737|   		return WERR_INVALID_DATA;
#  738|   	}

Error: CPPCHECK_WARNING: [#def1962]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/common/server_info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1963]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dnsserver/dcerpc_dnsserver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1964]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dnsserver/dnsdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1965]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dnsserver/dnsdata.c: scope_hint: In function ‘dnsp_to_dns_copy’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dnsserver/dnsdata.c:409:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/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: [#def1966]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dnsserver/dnsdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1967]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dnsserver/dnsutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1968]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/drsuapi/addentry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1969]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/drsuapi/getncchanges.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def1970]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/drsuapi/getncchanges.c:2088: warning[uninitvar]: Uninitialized variable: source_guid.length
# 2086|   
# 2087|   		if (!NT_STATUS_IS_OK(status)
# 2088|-> 				|| source_guid.length != sizeof(guid_array[0].source_guid)) {
# 2089|   			DEBUG(0,(__location__ ": Bad la guid in sort\n"));
# 2090|   			TALLOC_FREE(frame);

Error: CLANG_WARNING: [#def1971]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/drsuapi/getncchanges.c:3243:4: warning[deadcode.DeadStores]: Value stored to 'udv' is never read
# 3241|   		} else {
# 3242|   			/* We do not want REPL_SECRETS or REPL_SINGLE to return empty-handed */
# 3243|-> 			udv = &empty_udv;
# 3244|   			getnc_state->min_usn = 0;
# 3245|   		}

Error: CLANG_WARNING: [#def1972]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/drsuapi/getncchanges.c:3755:45: warning[core.NullDereference]: Dereference of null pointer
# 3753|   
# 3754|   		for (k = 0; k < link_count; k++) {
# 3755|-> 			r->out.ctr->ctr6.linked_attributes[k] = *la_sorted[k].link;
# 3756|   		}
# 3757|   

Error: CPPCHECK_WARNING: [#def1973]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/drsuapi/updaterefs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1974]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/epmapper/rpc_epmapper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1975]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:1223:6: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 1221|   	}
# 1222|   
# 1223|-> 	if (auth_struct.incoming.count) {
# 1224|   		nt_status = get_trustauth_inout_blob(dce_call, mem_ctx,
# 1225|   						     &auth_struct.incoming,

Error: CLANG_WARNING: [#def1976]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:2007:23: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 2005|   	/* TODO: should we fetch previous values from the existing entry
# 2006|   	 * and append them ? */
# 2007|-> 	if (auth_info_int && auth_struct.incoming.count) {
# 2008|   		nt_status = get_trustauth_inout_blob(dce_call, mem_ctx,
# 2009|   						     &auth_struct.incoming,

Error: CLANG_WARNING: [#def1977]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:2298:7: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2296|   	del.out.handle = opn.out.trustdom_handle;
# 2297|   	status = dcesrv_lsa_DeleteObject(dce_call, mem_ctx, &del);
# 2298|-> 	if (!NT_STATUS_IS_OK(status)) {
# 2299|   		return status;
# 2300|   	}

Error: CLANG_WARNING: [#def1978]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:2446:7: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2444|   	query.out.info = r->out.info;
# 2445|   	status = dcesrv_lsa_QueryTrustedDomainInfo(dce_call, mem_ctx, &query);
# 2446|-> 	if (!NT_STATUS_IS_OK(status)) {
# 2447|   		return status;
# 2448|   	}

Error: CLANG_WARNING: [#def1979]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:2518:7: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2516|   	query.out.info = r->out.info;
# 2517|   	status = dcesrv_lsa_QueryTrustedDomainInfo(dce_call, mem_ctx, &query);
# 2518|-> 	if (!NT_STATUS_IS_OK(status)) {
# 2519|   		return status;
# 2520|   	}

Error: CLANG_WARNING: [#def1980]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:3099:8: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 3097|   
# 3098|   		status = dcesrv_lsa_EnumAccountRights(dce_call, mem_ctx, &r2);
# 3099|-> 		if (!NT_STATUS_IS_OK(status)) {
# 3100|   			return status;
# 3101|   		}

Error: CLANG_WARNING: [#def1981]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/dcesrv_lsa.c:4052:23: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'account_name')
# 4050|   	}
# 4051|   
# 4052|-> 	*r->out.account_name = _account_name;
# 4053|   	if (r->out.authority_name) {
# 4054|   		*r->out.authority_name = _authority_name;

Error: CPPCHECK_WARNING: [#def1982]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/lsa_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1983]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/lsa/lsa_lookup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1984]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/netlogon/dcerpc_netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1985]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/remote/dcesrv_remote.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1986]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def1987]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:978:10: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  976|   							  &info->oem);
#  977|   	case 5:
#  978|-> 		return dcesrv_samr_info_DomInfo5(d_state, mem_ctx, dom_msgs,
#  979|   						 &info->info5);
#  980|   	case 6:

Error: CLANG_WARNING: [#def1988]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:984:10: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  982|   						 &info->info6);
#  983|   	case 7:
#  984|-> 		return dcesrv_samr_info_DomInfo7(d_state, mem_ctx, dom_msgs,
#  985|   						 &info->info7);
#  986|   	case 8:

Error: CLANG_WARNING: [#def1989]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:990:10: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  988|   						 &info->info8);
#  989|   	case 9:
#  990|-> 		return dcesrv_samr_info_DomInfo9(d_state, mem_ctx, dom_msgs,
#  991|   						 &info->info9);
#  992|   	case 11:

Error: CPPCHECK_WARNING (CWE-457): [#def1990]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:2099: warning[uninitvar]: Uninitialized variable: res
# 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): [#def1991]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4459: warning[uninitvar]: Uninitialized variable: res_memberof
# 4457|   
# 4458|   		group_sid = samdb_result_dom_sid(mem_ctx,
# 4459|-> 						 res_memberof->msgs[i],
# 4460|   						 "objectSid");
# 4461|   		if (group_sid == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1992]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c: scope_hint: In function ‘dcesrv_samr_QueryDisplayInfo’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4712:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesGeneral’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/dcerpc_server.h:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:27: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4504:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:663: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:25: included_from: Included from here.
# 4710|   		case 1:
# 4711|   
# 4712|-> 			entriesGeneral[count].idx = idx + 1;
# 4713|   			entriesGeneral[count].rid = rid;
# 4714|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1993]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4728:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFull’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4504:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
# 4726|   			break;
# 4727|   		case 2:
# 4728|-> 			entriesFull[count].idx = idx + 1;
# 4729|   			entriesFull[count].rid = rid;
# 4730|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1994]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4746:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFullGroup’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4504:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
# 4744|   			break;
# 4745|   		case 3:
# 4746|-> 			entriesFullGroup[count].idx = idx + 1;
# 4747|   			entriesFullGroup[count].rid = rid;
# 4748|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1995]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4762:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesAscii’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:588:9: note: in expansion of macro ‘DCESRV_CHECK_HANDLE’
samba-4.20.2-build/samba-4.20.2/librpc/rpc/dcesrv_core.h:601:44: note: in expansion of macro ‘DCESRV_PULL_HANDLE_RETVAL’
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/dcesrv_samr.c:4504:9: note: in expansion of macro ‘DCESRV_PULL_HANDLE’
# 4760|   		case 4:
# 4761|   		case 5:
# 4762|-> 			entriesAscii[count].idx = idx + 1;
# 4763|   			entriesAscii[count].account_name.string =
# 4764|   			    ldb_msg_find_attr_as_string(

Error: CPPCHECK_WARNING: [#def1996]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/samr/samr_password.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1997]
samba-4.20.2-build/samba-4.20.2/source4/rpc_server/service_rpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1998]
samba-4.20.2-build/samba-4.20.2/source4/samba/process_prefork.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def1999]
samba-4.20.2-build/samba-4.20.2/source4/samba/process_standard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2000]
samba-4.20.2-build/samba-4.20.2/source4/samba/server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2001]
samba-4.20.2-build/samba-4.20.2/source4/samba/server.c:67:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   65|   	struct dirent *de;
#   66|   
#   67|-> 	dir = opendir(path);
#   68|   	if (!dir) {
#   69|   		return;

Error: CPPCHECK_WARNING: [#def2002]
samba-4.20.2-build/samba-4.20.2/source4/samba/service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def2003]
samba-4.20.2-build/samba-4.20.2/source4/samba/service_task.c: scope_hint: In function ‘task_server_terminate’
samba-4.20.2-build/samba-4.20.2/source4/samba/service_task.c:49:25: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.20.2-build/samba-4.20.2/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/source4/librpc/gen_ndr/ndr_irpc_c.h:1: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/samba/service_task.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2004]
samba-4.20.2-build/samba-4.20.2/source4/torture/auth/ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2005]
samba-4.20.2-build/samba-4.20.2/source4/torture/auth/pac.c:167:2: warning[deadcode.DeadStores]: Value stored to 'nt_status' is never read
#  165|   
#  166|   	/* Now check we can read it back (using Heimdal's pac parsing) */
#  167|-> 	nt_status = kerberos_pac_blob_to_user_info_dc(mem_ctx,
#  168|   						     tmp_blob, 
#  169|   						     smb_krb5_context->krb5_context,

Error: CPPCHECK_WARNING: [#def2006]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/aliases.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2007]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/attr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2008]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2009]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:883:2: warning[deadcode.DeadStores]: Value stored to 'fnum2' is never read
#  881|   	
#  882|   	/* This will fail - but the error should be ERRnoaccess, not ERRbadshare. */
#  883|-> 	fnum2 = smbcli_open(cli1->tree, fname, O_RDWR, DENY_ALL);
#  884|   	
#  885|           if (check_error(__location__, cli1, ERRDOS, ERRnoaccess, 

Error: CLANG_WARNING: [#def2010]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:906:2: warning[deadcode.DeadStores]: Value stored to 'fnum2' is never read
#  904|   	
#  905|   	/* This will fail - but the error should be ERRshare. */
#  906|-> 	fnum2 = smbcli_open(cli1->tree, fname, O_RDWR, DENY_ALL);
#  907|   	
#  908|   	if (check_error(__location__, cli1, ERRDOS, ERRbadshare, 

Error: CLANG_WARNING: [#def2011]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:992:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
#  990|   error_test3:	
#  991|   
#  992|-> 	fnum1 = fnum2 = -1;
#  993|   	smbcli_unlink(cli1->tree, fname);
#  994|   

Error: CLANG_WARNING: [#def2012]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:992:10: warning[deadcode.DeadStores]: Although the value stored to 'fnum2' is used in the enclosing expression, the value is never actually read from 'fnum2'
#  990|   error_test3:	
#  991|   
#  992|-> 	fnum1 = fnum2 = -1;
#  993|   	smbcli_unlink(cli1->tree, fname);
#  994|   

Error: CLANG_WARNING: [#def2013]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1017:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1015|   
# 1016|   	torture_comment(tctx, "Test #1 testing 2 non-io opens (no delete)\n");
# 1017|-> 	fnum1 = fnum2 = -1;
# 1018|   	smbcli_setatr(cli2->tree, fname, 0, 0);
# 1019|   	smbcli_unlink(cli2->tree, fname);

Error: CLANG_WARNING: [#def2014]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1051:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1049|   
# 1050|   	torture_comment(tctx, "Test #2 testing 2 non-io opens (first with delete)\n");
# 1051|-> 	fnum1 = fnum2 = -1;
# 1052|   	smbcli_unlink(cli1->tree, fname);
# 1053|   

Error: CLANG_WARNING: [#def2015]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1084:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1082|   	}
# 1083|   
# 1084|-> 	fnum1 = fnum2 = -1;
# 1085|   	smbcli_unlink(cli1->tree, fname);
# 1086|   

Error: CLANG_WARNING: [#def2016]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1120:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1118|   
# 1119|   	torture_comment(tctx, "Test #4 testing 2 non-io opens (both with delete)\n");
# 1120|-> 	fnum1 = fnum2 = -1;
# 1121|   	smbcli_unlink(cli1->tree, fname);
# 1122|   

Error: CLANG_WARNING: [#def2017]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1156:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1154|   
# 1155|   	torture_comment(tctx, "Test #5 testing 2 non-io opens (both with delete - both with file share delete)\n");
# 1156|-> 	fnum1 = fnum2 = -1;
# 1157|   	smbcli_unlink(cli1->tree, fname);
# 1158|   

Error: CLANG_WARNING: [#def2018]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1191:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1189|   
# 1190|   	torture_comment(tctx, "Test #6 testing 1 non-io open, one io open\n");
# 1191|-> 	fnum1 = fnum2 = -1;
# 1192|   	smbcli_unlink(cli1->tree, fname);
# 1193|   

Error: CLANG_WARNING: [#def2019]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1226:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1224|   
# 1225|   	torture_comment(tctx, "Test #7 testing 1 non-io open, one io open with delete\n");
# 1226|-> 	fnum1 = fnum2 = -1;
# 1227|   	smbcli_unlink(cli1->tree, fname);
# 1228|   

Error: CLANG_WARNING: [#def2020]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1262:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 1260|   
# 1261|   	torture_comment(tctx, "Test #8 testing one normal open, followed by lock, followed by open with truncate\n");
# 1262|-> 	fnum1 = fnum2 = -1;
# 1263|   	smbcli_unlink(cli1->tree, fname);
# 1264|   

Error: CLANG_WARNING: [#def2021]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1262:10: warning[deadcode.DeadStores]: Although the value stored to 'fnum2' is used in the enclosing expression, the value is never actually read from 'fnum2'
# 1260|   
# 1261|   	torture_comment(tctx, "Test #8 testing one normal open, followed by lock, followed by open with truncate\n");
# 1262|-> 	fnum1 = fnum2 = -1;
# 1263|   	smbcli_unlink(cli1->tree, fname);
# 1264|   

Error: CLANG_WARNING: [#def2022]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1486:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1484|   	if (NT_STATUS_IS_ERR(smbcli_chkpath(cli->tree, "\\chkpath.dir"))) {
# 1485|   		torture_result(tctx, TORTURE_FAIL, "chkpath1 failed: %s\n", smbcli_errstr(cli->tree));
# 1486|-> 		ret = false;
# 1487|   	}
# 1488|   

Error: CLANG_WARNING: [#def2023]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1491:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1489|   	if (NT_STATUS_IS_ERR(smbcli_chkpath(cli->tree, "\\chkpath.dir\\dir2"))) {
# 1490|   		torture_result(tctx, TORTURE_FAIL, "chkpath2 failed: %s\n", smbcli_errstr(cli->tree));
# 1491|-> 		ret = false;
# 1492|   	}
# 1493|   

Error: CLANG_WARNING: [#def2024]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1495:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1493|   
# 1494|   	if (NT_STATUS_IS_ERR(smbcli_chkpath(cli->tree, "\\chkpath.dir\\foo.txt"))) {
# 1495|-> 		ret = check_error(__location__, cli, ERRDOS, ERRbadpath, 
# 1496|   				  NT_STATUS_NOT_A_DIRECTORY);
# 1497|   	} else {

Error: CLANG_WARNING: [#def2025]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1499:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1497|   	} else {
# 1498|   		torture_result(tctx, TORTURE_FAIL, "* chkpath on a file should fail\n");
# 1499|-> 		ret = false;
# 1500|   	}
# 1501|   

Error: CLANG_WARNING: [#def2026]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1503:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1501|   
# 1502|   	if (NT_STATUS_IS_ERR(smbcli_chkpath(cli->tree, "\\chkpath.dir\\bar.txt"))) {
# 1503|-> 		ret = check_error(__location__, cli, ERRDOS, ERRbadpath, 
# 1504|   				  NT_STATUS_OBJECT_NAME_NOT_FOUND);
# 1505|   	} else {

Error: CLANG_WARNING: [#def2027]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/base.c:1507:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1505|   	} else {
# 1506|   		torture_result(tctx, TORTURE_FAIL, "* chkpath on a non existent file should fail\n");
# 1507|-> 		ret = false;
# 1508|   	}
# 1509|   

Error: CPPCHECK_WARNING: [#def2028]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delaywrite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2029]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2030]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delete.c:1892:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1890|   
# 1891|   	correct &= check_delete_on_close(tctx, cli1, dnum1, dname, false, __location__);
# 1892|-> 	status = smbcli_nt_delete_on_close(cli1->tree, dnum1, true);
# 1893|   
# 1894|   	{

Error: CLANG_WARNING: [#def2031]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delete.c:2228:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 2226|   	smbcli_transport_dead(cli1->transport, NT_STATUS_LOCAL_DISCONNECT);
# 2227|   
# 2228|-> 	fnum1 = -1;
# 2229|   
# 2230|   	if (!torture_open_connection(&cli1, tctx, 0)) {

Error: CLANG_WARNING: [#def2032]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delete.c:2239:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 2237|   
# 2238|   	/* File should not be there. */
# 2239|-> 	fnum1 = smbcli_nt_create_full(cli1->tree, fname, 0,
# 2240|   				      SEC_RIGHTS_FILE_READ,
# 2241|   				      FILE_ATTRIBUTE_NORMAL,

Error: CLANG_WARNING: [#def2033]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/delete.c:2434:2: warning[deadcode.DeadStores]: Value stored to 'fnum1' is never read
# 2432|   
# 2433|   	/* File should not be there. */
# 2434|-> 	fnum1 = smbcli_nt_create_full(cli1->tree, fname, 0,
# 2435|   				      SEC_RIGHTS_FILE_READ,
# 2436|   				      FILE_ATTRIBUTE_NORMAL,

Error: CPPCHECK_WARNING: [#def2034]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/denytest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2035]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/denytest.c: scope_hint: In function ‘torture_createx_specific’
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/denytest.c:2356:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cli2’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/denytest.c:20: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/denytest.c:2155:9: note: in expansion of macro ‘ZERO_STRUCTP’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:825:17: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/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: [#def2036]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/dir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2037]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/locking.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2038]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/locking.c:551:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  549|   
#  550|   	/* Check for NT bug... */
#  551|-> 	ret = NT_STATUS_IS_OK(smbcli_lock(cli1->tree, fnum1, 0, 8, 0, READ_LOCK)) &&
#  552|   		  NT_STATUS_IS_OK(smbcli_lock(cli1->tree, fnum3, 0, 1, 0, READ_LOCK));
#  553|   	smbcli_close(cli1->tree, fnum1);

Error: CPPCHECK_WARNING: [#def2039]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/mangle_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2040]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2041]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/misc.c:290:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  288|   		struct smb_echo ec;
#  289|   		ZERO_STRUCT(ec);
#  290|-> 		status = smb_raw_echo(cli->transport, &ec);
#  291|   		torture_comment(tctx, ".");
#  292|   		fflush(stdout);

Error: CLANG_WARNING: [#def2042]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/misc.c:419:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  417|   	parms.ioctl.in.file.fnum = fnum;
#  418|   	parms.ioctl.in.request = IOCTL_QUERY_JOB_INFO;
#  419|-> 	status = smb_raw_ioctl(cli->tree, mem_ctx, &parms);
#  420|   	torture_comment(tctx, "ioctl job info: %s\n", smbcli_errstr(cli->tree));
#  421|   

Error: CLANG_WARNING: [#def2043]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/misc.c:942:21: warning[core.DivideZero]: Division by zero
#  940|   				req1 = torture_connect_async(
#  941|   					tctx, smb_con, tctx,ev,
#  942|-> 					lpparams.unc[i % num_unc_names]->host,
#  943|   					lpparams.unc[i % num_unc_names]->share,
#  944|   					lpparams.workgroup);

Error: CPPCHECK_WARNING: [#def2044]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/rename.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2045]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/scanner.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2046]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/unlink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2047]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/unlink.c:58:2: warning[deadcode.DeadStores]: Value stored to 'correct' is never read
#   56|   		"server allowed unlink on an open file");
#   57|   	
#   58|-> 	correct = check_error(__location__, cli, ERRDOS, ERRbadshare, 
#   59|   				      NT_STATUS_SHARING_VIOLATION);
#   60|   

Error: CPPCHECK_WARNING: [#def2048]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/utable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2049]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2050]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/utable.c:64:37: warning[unix.cstring.BadSizeArg]: Potential buffer overflow. Replace with 'sizeof(fname) - strlen(fname) - 1' or use a safer 'strlcat' API
#   62|   
#   63|   		p[len] = 0;
#   64|-> 		strncat(fname,"_a_long_extension",sizeof(fname)-1);
#   65|   
#   66|   		fnum = smbcli_open(cli->tree, fname, O_RDWR | O_CREAT | O_TRUNC, 

Error: CPPCHECK_WARNING (CWE-457): [#def2051]
samba-4.20.2-build/samba-4.20.2/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): [#def2052]
samba-4.20.2-build/samba-4.20.2/source4/torture/basic/utable.c:149: warning[invalidFunctionArg]: Invalid isprint() argument nr 1. The value is 65535 but the valid values are '0:255'.
#  147|   		if (c == '.' || c == '\\') continue;
#  148|   
#  149|-> 		torture_comment(tctx, "%04x (%c)\n", c, isprint(c)?c:'.');
#  150|   
#  151|   		fname = form_name(c);

Error: CPPCHECK_WARNING: [#def2053]
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2054]
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c: scope_hint: In function ‘test_getdcreferral’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:142:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:91:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:104:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:109:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:111:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:113:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:115:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:119:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:124:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:129:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:528:27: note: in definition of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/dfs/domaindfs.c:133:9: note: in expansion of macro ‘torture_assert_int_equal’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2055]
samba-4.20.2-build/samba-4.20.2/source4/torture/dns/dlz_bind9.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2056]
samba-4.20.2-build/samba-4.20.2/source4/torture/dns/internal_dns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2057]
samba-4.20.2-build/samba-4.20.2/source4/torture/drs/drs_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2058]
samba-4.20.2-build/samba-4.20.2/source4/torture/drs/rpc/dssync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2059]
samba-4.20.2-build/samba-4.20.2/source4/torture/drs/rpc/msds_intid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2060]
samba-4.20.2-build/samba-4.20.2/source4/torture/drs/rpc/msds_intid.c:384:9: warning[deadcode.DeadStores]: Although the value stored to 'ldif_str' is used in the enclosing expression, the value is never actually read from 'ldif_str'
#  382|   	/* prepare LDIF to provision with */
#  383|   	attr_id = generate_random() % 0xFFFF;
#  384|-> 	pstr = ldif_str = talloc_asprintf(ctx, PROVISION_LDIF_FMT,
#  385|   	                                  attr_id, ctx->domain_dn);
#  386|   

Error: CPPCHECK_WARNING: [#def2061]
samba-4.20.2-build/samba-4.20.2/source4/torture/drs/unit/prefixmap_tests.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2062]
samba-4.20.2-build/samba-4.20.2/source4/torture/drs/unit/schemainfo_tests.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2063]
samba-4.20.2-build/samba-4.20.2/source4/torture/gentest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2064]
samba-4.20.2-build/samba-4.20.2/source4/torture/gpo/apply.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2065]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/basic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2066]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/basic.c:718:6: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  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): [#def2067]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/basic.c: scope_hint: In function ‘test_referrals’
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/basic.c:718:13: warning[-Wanalyzer-null-argument]: use of NULL ‘basedn’ where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2068]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/ldap_sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2069]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/nested_search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2070]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2071]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/schema.c:177:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  175|   	ctrl[1] = NULL;
#  176|   
#  177|-> 	ret = ldb_build_search_req(&req, ldb, actx,
#  178|   				   ldb_dn_new(actx, ldb, root->schemadn),
#  179|   				   LDB_SCOPE_SUBTREE,

Error: CPPCHECK_WARNING: [#def2072]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldap/uptodatevector.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2073]
samba-4.20.2-build/samba-4.20.2/source4/torture/ldb/ldb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2074]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnet/libnet_BecomeDC.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2075]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnet/libnet_domain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2076]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnet/libnet_rpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2077]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnet/userman.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2078]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnet/utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2079]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnetapi/libnetapi_group.c:191:21: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  189|   				}
#  190|   
#  191|-> 				if (username && strcasecmp(current_name, username) == 0) {
#  192|   					found_user = 1;
#  193|   				}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2080]
samba-4.20.2-build/samba-4.20.2/source4/torture/libnetapi/libnetapi_group.c: scope_hint: In function ‘test_netgroupgetusers’
samba-4.20.2-build/samba-4.20.2/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.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: [#def2081]
samba-4.20.2-build/samba-4.20.2/source4/torture/libsmbclient/libsmbclient.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2082]
samba-4.20.2-build/samba-4.20.2/source4/torture/local/fsrvp_state.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2083]
samba-4.20.2-build/samba-4.20.2/source4/torture/local/nss_tests.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2084]
samba-4.20.2-build/samba-4.20.2/source4/torture/local/nss_tests.c:879:6: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  877|   
#  878|   	/* Only ad_member_idmap_rid sets 'winbind expand groups' */
#  879|-> 	if (strcmp(env, "ad_member_idmap_rid:local") != 0) {
#  880|   		torture_comment(tctx,
#  881|   				"Testing in env '%s' is not supported.\n",

Error: CPPCHECK_WARNING: [#def2085]
samba-4.20.2-build/samba-4.20.2/source4/torture/local/verif_trailer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2086]
samba-4.20.2-build/samba-4.20.2/source4/torture/locktest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2087]
samba-4.20.2-build/samba-4.20.2/source4/torture/locktest.c:568: error[uninitvar]: Uninitialized variable: &seed
#  566|   	struct poptOption long_options[] = {
#  567|   		POPT_AUTOHELP
#  568|-> 		{"seed",	  0, POPT_ARG_INT,  &seed, 	0,	"Seed to use for randomizer", 	NULL},
#  569|   		{"num-ops",	  0, POPT_ARG_INT,  &numops, 	0, 	"num ops",	NULL},
#  570|   		{"lockrange",     0, POPT_ARG_INT,  &lock_range,0,      "locking range", NULL},

Error: CLANG_WARNING: [#def2088]
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c:50:6: warning[core.NullDereference]: Dereference of null pointer
#   48|   	if (ISDOT(pattern)) return false;
#   49|   
#   50|-> 	if (ISDOTDOT(file)) file = ".";
#   51|   
#   52|   	return ms_fnmatch_protocol(

Error: CPPCHECK_WARNING (CWE-457): [#def2089]
samba-4.20.2-build/samba-4.20.2/source4/torture/masktest.c:309: error[uninitvar]: Uninitialized variable: &seed
#  307|   	struct poptOption long_options[] = {
#  308|   		POPT_AUTOHELP
#  309|-> 		{"seed",	  0, POPT_ARG_INT,  &seed, 	0,	"Seed to use for randomizer", 	NULL},
#  310|   		{"num-ops",	  0, POPT_ARG_INT,  &NumLoops, 	0, 	"num ops",	NULL},
#  311|   		{"maxlength",	  0, POPT_ARG_INT,  &max_length,0, 	"maximum length",	NULL},

Error: CPPCHECK_WARNING: [#def2090]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbench.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2091]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def2092]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_alarm.part.0’
samba-4.20.2-build/samba-4.20.2/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): [#def2093]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_writex’
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c:553:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.20.2-build/samba-4.20.2/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): [#def2094]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c: scope_hint: In function ‘nb_write’
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c:595:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2095]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbench/nbio.c:990:30: warning[core.NullDereference]: Dereference of null pointer
#  988|   void nb_exit(int status)
#  989|   {
#  990|-> 	children[nbio_id].connected = false;
#  991|   	printf("[%d] client %d exiting with status %d\n",
#  992|   	       nbench_line_count, nbio_id, status);

Error: CPPCHECK_WARNING: [#def2096]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbt/dgram.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2097]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbt/dgram.c:43:32: warning[deadcode.DeadStores]: Value stored to 'netlogon' during its initialization is never read
#   41|   {
#   42|   	NTSTATUS status;
#   43|-> 	struct nbt_netlogon_response *netlogon = dgmslot->private_data;
#   44|   
#   45|   	dgmslot->private_data = netlogon = talloc(dgmslot, struct nbt_netlogon_response);

Error: CPPCHECK_WARNING: [#def2098]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbt/register.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2099]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbt/wins.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2100]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbt/winsbench.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2101]
samba-4.20.2-build/samba-4.20.2/source4/torture/nbt/winsreplication.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2102]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/atsvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2103]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/cabinet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2104]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/clusapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2105]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/dfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2106]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/dnsp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2107]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/lsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2108]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/ndr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2109]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/negoex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2110]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2111]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/ntlmssp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2112]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/ntprinting.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2113]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2114]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/spoolss.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2115]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2116]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/winreg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2117]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/winspool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2118]
samba-4.20.2-build/samba-4.20.2/source4/torture/ndr/witness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2119]
samba-4.20.2-build/samba-4.20.2/source4/torture/ntp/ntp_signd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2120]
samba-4.20.2-build/samba-4.20.2/source4/torture/rap/printing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2121]
samba-4.20.2-build/samba-4.20.2/source4/torture/rap/rap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2122]
samba-4.20.2-build/samba-4.20.2/source4/torture/rap/rpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2123]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/acls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2124]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/acls.c:1911:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1909|   		set.set_secdesc.in.secinfo_flags = SECINFO_DACL;
# 1910|   		set.set_secdesc.in.sd = sd_orig;
# 1911|-> 		status = smb_raw_setfileinfo(cli->tree, &set);
# 1912|   	}
# 1913|   

Error: CLANG_WARNING: [#def2125]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/acls.c:2299:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 2297|   		set.set_secdesc.in.secinfo_flags = SECINFO_DACL;
# 2298|   		set.set_secdesc.in.sd = sd_orig;
# 2299|-> 		status = smb_raw_setfileinfo(cli->tree, &set);
# 2300|   	}
# 2301|   	smbcli_close(cli->tree, fnum);

Error: CPPCHECK_WARNING: [#def2126]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/chkpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2127]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/composite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2128]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/composite.c:384:3: warning[core.NullDereference]: Dereference of undefined pointer value
#  382|   		torture_assert_ntstatus_equal(tctx, status, NT_STATUS_OK, "smb_composite_fsinfo_recv failed");
#  383|   
#  384|-> 		torture_assert_int_equal(tctx, io1.out.fsinfo->generic.level, RAW_QFS_OBJECTID_INFORMATION, "wrong level in returned info");
#  385|   
#  386|   		guid=GUID_string(tctx, &io1.out.fsinfo->objectid_information.out.guid);

Error: CPPCHECK_WARNING: [#def2129]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/eas.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2130]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/lockbench.c:117:33: warning[core.NullDereference]: Dereference of null pointer
#  115|   		lock_failed++;
#  116|   	}
#  117|-> 	state->req->async.private_data = state;
#  118|   	state->req->async.fn      = lock_completion;
#  119|   }

Error: CPPCHECK_WARNING (CWE-457): [#def2131]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2132]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/lockbench.c:374:7: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  372|   	num_connected = i;
#  373|   
#  374|-> 	if (!torture_setup_dir(cli, BASEDIR)) {
#  375|   		goto failed;
#  376|   	}

Error: CPPCHECK_WARNING: [#def2133]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/mux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2134]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2135]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/notify.c:1658:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1656|   			smb_raw_ntcancel(req);
# 1657|   			notify.nttrans.out.num_changes = 0;
# 1658|-> 			status = smb_raw_changenotify_recv(req, tctx, &notify);
# 1659|   			dirs[i].counted += notify.nttrans.out.num_changes;
# 1660|   		}

Error: CLANG_WARNING: [#def2136]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/offline.c:248:17: warning[core.NullDereference]: Dereference of null pointer
#  246|   		talloc_steal(state->loadfile, ctx);
#  247|   
#  248|-> 		ctx->async.fn = loadfile_callback;
#  249|   		ctx->async.private_data = state;
#  250|   		break;

Error: CLANG_WARNING: [#def2137]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/offline.c:268:17: warning[core.NullDereference]: Dereference of null pointer
#  266|   		talloc_steal(state->savefile, ctx);
#  267|   
#  268|-> 		ctx->async.fn = savefile_callback;
#  269|   		ctx->async.private_data = state;
#  270|   		break;

Error: CLANG_WARNING: [#def2138]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/offline.c:288:24: warning[core.NullDereference]: Dereference of null pointer
#  286|   		}
#  287|   
#  288|-> 		state->req->async.fn = setoffline_callback;
#  289|   		state->req->async.private_data = state;
#  290|   		break;

Error: CLANG_WARNING: [#def2139]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/offline.c:305:24: warning[core.NullDereference]: Dereference of null pointer
#  303|   		}
#  304|   
#  305|-> 		state->req->async.fn = getoffline_callback;
#  306|   		state->req->async.private_data = state;
#  307|   		break;

Error: CPPCHECK_WARNING (CWE-457): [#def2140]
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2141]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/offline.c:434:7: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  432|   	num_connected = i;
#  433|   
#  434|-> 	if (!torture_setup_dir(cli, BASEDIR)) {
#  435|   		goto failed;
#  436|   	}

Error: CPPCHECK_WARNING: [#def2142]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/open.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2143]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/open.c:178:2: warning[deadcode.DeadStores]: Value stored to 'fnum' is never read
#  176|   	status = smb_raw_open(cli->tree, tctx, &io);
#  177|   	CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
#  178|-> 	fnum = io.openold.out.file.fnum;
#  179|   
#  180|   	smbcli_unlink(cli->tree, fname);

Error: CLANG_WARNING: [#def2144]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/open.c:1198:2: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1196|    done:
# 1197|   	smbcli_close(cli->tree, io.ntcreatex.out.file.fnum);
# 1198|-> 	smbcli_close(cli->tree, io1.ntcreatex.out.file.fnum);
# 1199|   	smbcli_deltree(cli->tree, BASEDIR);
# 1200|   	return ret;

Error: CLANG_WARNING: [#def2145]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/open.c:1476:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1474|   
# 1475|   	/* Create the Directory */
# 1476|-> 	status = create_directory_handle(cli->tree, fname, &d_fnum);
# 1477|   	smbcli_close(cli->tree, d_fnum);	
# 1478|   

Error: CPPCHECK_WARNING: [#def2146]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/oplock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2147]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/oplock.c:230:7: warning[deadcode.DeadStores]: Although the value stored to 'te' is used in the enclosing expression, the value is never actually read from 'te'
#  228|   	ne = tevent_timeval_current_ofs(0, 100000);
#  229|   
#  230|-> 	if ((te = tevent_add_timer(tctx->ev, tmp_ctx, ne, timeout_cb, &timesup))
#  231|   	    == NULL)
#  232|   	{

Error: CPPCHECK_WARNING: [#def2148]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/pingpong.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2149]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/qfileinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2150]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/qfsinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2151]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/read.c:442:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  440|   	if (!smbcli_request_receive(smbreq) ||
#  441|   	     smbcli_request_is_error(smbreq)) {
#  442|-> 		status = smbcli_request_destroy(smbreq);
#  443|   		torture_fail_goto(tctx, done, "receive failed\n");
#  444|   	}

Error: CLANG_WARNING: [#def2152]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/read.c:450:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  448|   		printf("Incorrect wct %u (should be 12)\n",
#  449|   			(unsigned int)smbreq->in.wct);
#  450|-> 		status = smbcli_request_destroy(smbreq);
#  451|   		torture_fail_goto(tctx, done, "bad wct\n");
#  452|   	}

Error: CLANG_WARNING: [#def2153]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/read.c:458:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  456|   		uint16_t br = SVAL(smbreq->in.vwv, VWV(i));
#  457|   		if (br != 0) {
#  458|-> 			status = smbcli_request_destroy(smbreq);
#  459|   			ret = false;
#  460|   			printf("reserved field %u is %u not zero\n",

Error: CPPCHECK_WARNING: [#def2154]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/samba3hide.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2155]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/samba3misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2156]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/samba3misc.c:182:2: warning[deadcode.DeadStores]: Value stored to 'nread' is never read
#  180|   	/* Try a read on an invalid FID */
#  181|   
#  182|-> 	nread = smbcli_read(cli->tree, 4711, buf, 0, sizeof(buf));
#  183|   	CHECK_STATUS(torture, smbcli_nt_error(cli->tree), NT_STATUS_INVALID_HANDLE);
#  184|   

Error: CLANG_WARNING: [#def2157]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/samba3misc.c:250:2: warning[deadcode.DeadStores]: Value stored to 'nread' is never read
#  248|   	}
#  249|   
#  250|-> 	nread = smbcli_read(tree2, fnum, buf, 0, sizeof(buf));
#  251|   	CHECK_STATUS(torture, smbcli_nt_error(tree2), NT_STATUS_INVALID_HANDLE);
#  252|   

Error: CPPCHECK_WARNING: [#def2158]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2159]
samba-4.20.2-build/samba-4.20.2/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): [#def2160]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/search.c:345: error[uninitvar]: Uninitialized variable: data
#  343|   	SSVAL(params, 2, SMB_SET_CIFS_UNIX_INFO);
#  344|   	tp.in.params = data_blob_talloc(tctx, params, 4);
#  345|-> 	tp.in.data = data_blob_talloc(tctx, data, 12);
#  346|   	return smb_raw_trans2(cli_unix->tree, tctx, &tp);
#  347|   }

Error: CPPCHECK_WARNING: [#def2161]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2162]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2163]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:603:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  601|   
#  602|   	printf("Trying rename directory with a handle\n");
#  603|-> 	status = create_directory_handle(cli->tree, path_dname_new, &d_fnum);
#  604|   	fnum_saved = fnum;
#  605|   	fnum = d_fnum;

Error: CLANG_WARNING: [#def2164]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:608:2: warning[deadcode.DeadStores]: Value stored to 'fnum_fname' is never read
#  606|   	saved_name = fnum_fname;
#  607|   	saved_name_new = fnum_fname_new;
#  608|-> 	fnum_fname = path_dname;
#  609|   	fnum_fname_new = path_dname_new;
#  610|   	sfinfo.rename_information.in.new_name  = path_dname+strlen(BASEDIR)+1;

Error: CLANG_WARNING: [#def2165]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:609:2: warning[deadcode.DeadStores]: Value stored to 'fnum_fname_new' is never read
#  607|   	saved_name_new = fnum_fname_new;
#  608|   	fnum_fname = path_dname;
#  609|-> 	fnum_fname_new = path_dname_new;
#  610|   	sfinfo.rename_information.in.new_name  = path_dname+strlen(BASEDIR)+1;
#  611|   	sfinfo.rename_information.in.overwrite = 0;

Error: CLANG_WARNING: [#def2166]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:641:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  639|   
#  640|   	printf("Trying rename directory by path while a handle is open\n");
#  641|-> 	status = create_directory_handle(cli->tree, path_dname, &d_fnum);
#  642|   	fnum_saved = fnum;
#  643|   	fnum = d_fnum;

Error: CLANG_WARNING: [#def2167]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:657:2: warning[deadcode.DeadStores]: Value stored to 'fnum_fname' is never read
#  655|   	saved_name = fnum_fname;
#  656|   	saved_name_new = fnum_fname_new;
#  657|-> 	fnum_fname = path_dname;
#  658|   	fnum_fname_new = path_dname_new;
#  659|   	/* check that the handle returns the same name */

Error: CLANG_WARNING: [#def2168]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:658:2: warning[deadcode.DeadStores]: Value stored to 'fnum_fname_new' is never read
#  656|   	saved_name_new = fnum_fname_new;
#  657|   	fnum_fname = path_dname;
#  658|-> 	fnum_fname_new = path_dname_new;
#  659|   	/* check that the handle returns the same name */
#  660|   	check_fnum = true;

Error: CLANG_WARNING: [#def2169]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:666:2: warning[deadcode.DeadStores]: Value stored to 'fnum_fname' is never read
#  664|   	CHECK_CALL_FNUM(RENAME_INFORMATION, NT_STATUS_OK);
#  665|   	CHECK_STR(NAME_INFO, name_info, fname.s, path_dname);
#  666|-> 	fnum_fname = saved_name;
#  667|   	fnum_fname_new = saved_name_new;
#  668|   	saved_name = path_fname;

Error: CLANG_WARNING: [#def2170]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:667:2: warning[deadcode.DeadStores]: Value stored to 'fnum_fname_new' is never read
#  665|   	CHECK_STR(NAME_INFO, name_info, fname.s, path_dname);
#  666|   	fnum_fname = saved_name;
#  667|-> 	fnum_fname_new = saved_name_new;
#  668|   	saved_name = path_fname;
#  669|   	saved_name_new = path_fname_new;

Error: CLANG_WARNING: [#def2171]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:675:2: warning[deadcode.DeadStores]: Value stored to 'fnum' is never read
#  673|   	CHECK_STR(NAME_INFO, name_info, fname.s, path_dname);
#  674|   	smbcli_close(cli->tree, d_fnum);
#  675|-> 	fnum = fnum_saved;
#  676|   	path_fname = saved_name;
#  677|   	path_fname_new = saved_name_new;

Error: CLANG_WARNING: [#def2172]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:676:2: warning[deadcode.DeadStores]: Value stored to 'path_fname' is never read
#  674|   	smbcli_close(cli->tree, d_fnum);
#  675|   	fnum = fnum_saved;
#  676|-> 	path_fname = saved_name;
#  677|   	path_fname_new = saved_name_new;
#  678|   

Error: CLANG_WARNING: [#def2173]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:677:2: warning[deadcode.DeadStores]: Value stored to 'path_fname_new' is never read
#  675|   	fnum = fnum_saved;
#  676|   	path_fname = saved_name;
#  677|-> 	path_fname_new = saved_name_new;
#  678|   
#  679|   done:

Error: CLANG_WARNING: [#def2174]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/setfileinfo.c:907:3: warning[deadcode.DeadStores]: Value stored to 'fnum' is never read
#  905|   	if (fnum > 0) {
#  906|   		smbcli_close(cli1->tree, fnum);
#  907|-> 		fnum = 0;
#  908|   	}
#  909|   

Error: CLANG_WARNING: [#def2175]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:466:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  464|   	if (fnum1 != -1) smbcli_close(cli->tree, fnum1);
#  465|   	if (fnum2 != -1) smbcli_close(cli->tree, fnum2);
#  466|-> 	status = smbcli_unlink(cli->tree, fname);
#  467|   	smbcli_deltree(cli->tree, BASEDIR);
#  468|   	return ret;

Error: CLANG_WARNING: [#def2176]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:1016:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1014|   	if (fnum2 != -1) smbcli_close(cli->tree, fnum2);
# 1015|   	if (fnum3 != -1) smbcli_close(cli->tree, fnum3);
# 1016|-> 	status = smbcli_unlink(cli->tree, fname);
# 1017|   	smbcli_deltree(cli->tree, BASEDIR);
# 1018|   	return ret;

Error: CLANG_WARNING: [#def2177]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:1086:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1084|   done:
# 1085|   	if (fnum1 != -1) smbcli_close(cli->tree, fnum1);
# 1086|-> 	status = smbcli_unlink(cli->tree, fname);
# 1087|   	smbcli_deltree(cli->tree, BASEDIR);
# 1088|   	return ret;

Error: CLANG_WARNING: [#def2178]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:1180:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1178|   done:
# 1179|   	if (fnum != -1) smbcli_close(cli->tree, fnum);
# 1180|-> 	status = smbcli_unlink(cli->tree, fname);
# 1181|   	smbcli_deltree(cli->tree, BASEDIR);
# 1182|   	return ret;

Error: CLANG_WARNING: [#def2179]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:1375:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1373|    done:
# 1374|   	smbcli_close(cli->tree, fnum);
# 1375|-> 	status = smbcli_unlink(cli->tree, fname1);
# 1376|   	status = smbcli_unlink(cli->tree, fname2);
# 1377|   	smbcli_deltree(cli->tree, BASEDIR);

Error: CLANG_WARNING: [#def2180]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:1376:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1374|   	smbcli_close(cli->tree, fnum);
# 1375|   	status = smbcli_unlink(cli->tree, fname1);
# 1376|-> 	status = smbcli_unlink(cli->tree, fname2);
# 1377|   	smbcli_deltree(cli->tree, BASEDIR);
# 1378|   	return ret;

Error: CLANG_WARNING: [#def2181]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/streams.c:1463:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1461|   	if (fnum != -1) smbcli_close(cli->tree, fnum);
# 1462|   	if (fnum2 != -1) smbcli_close(cli->tree, fnum2);
# 1463|-> 	status = smbcli_unlink(cli->tree, fname);
# 1464|   	smbcli_deltree(cli->tree, BASEDIR);
# 1465|   	return ret;

Error: CPPCHECK_WARNING: [#def2182]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/tconrate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2183]
samba-4.20.2-build/samba-4.20.2/source4/torture/raw/unlink.c:449:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  447|   	unl.unlink.in.pattern = fname;
#  448|   	unl.unlink.in.attrib = 0;
#  449|-> 	status = smb_raw_unlink(cli2->tree, &unl);
#  450|   
#  451|   done:

Error: CPPCHECK_WARNING: [#def2184]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/async_bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2185]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/atsvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2186]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/backupkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2187]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2188]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/browser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2189]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/clusapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2190]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/clusapi.c:447:32: warning[deadcode.DeadStores]: Value stored to 'b' during its initialization is never read
#  445|   	struct torture_clusapi_context *t =
#  446|   		talloc_get_type_abort(data, struct torture_clusapi_context);
#  447|-> 	struct dcerpc_binding_handle *b = t->p->binding_handle;
#  448|   	struct clusapi_SetQuorumResource r;
#  449|   	const char *lpszDeviceName = "";

Error: CLANG_WARNING: [#def2191]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/clusapi.c:449:14: warning[deadcode.DeadStores]: Value stored to 'lpszDeviceName' during its initialization is never read
#  447|   	struct dcerpc_binding_handle *b = t->p->binding_handle;
#  448|   	struct clusapi_SetQuorumResource r;
#  449|-> 	const char *lpszDeviceName = "";
#  450|   	uint32_t dwMaxQuorumLogSize = 0;
#  451|   	WERROR rpc_status;

Error: CPPCHECK_WARNING: [#def2192]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/countcalls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2193]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/dfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2194]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/drsuapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2195]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/drsuapi_cracknames.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2196]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/drsuapi_w2k8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2197]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/drsuapi_w2k8.c:209:5: warning[deadcode.DeadStores]: Value stored to 'found' is never read
#  207|   			if (strcasecmp_m(r.out.ctr->ctr3.array[k].netbios_name,
#  208|   					 torture_join_netbios_name(priv->join)) == 0) {
#  209|-> 				found = true;
#  210|   				priv->dcinfo	= r.out.ctr->ctr3.array[k];
#  211|   				break;

Error: CPPCHECK_WARNING: [#def2198]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/dsgetinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2199]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/echo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2200]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/echo.c:81:2: warning[deadcode.DeadStores]: Value stored to 'data_out' is never read
#   79|   
#   80|   	data_in = talloc_array(tctx, uint8_t, len);
#   81|-> 	data_out = talloc_array(tctx, uint8_t, len);
#   82|   	for (i=0;i<len;i++) {
#   83|   		data_in[i] = i;

Error: CLANG_WARNING: [#def2201]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/echo.c:240:32: warning[deadcode.DeadStores]: Value stored to 'b' during its initialization is never read
#  238|   	struct timeval diff[ASYNC_COUNT];
#  239|   	int total_done = 0;
#  240|-> 	struct dcerpc_binding_handle *b = p->binding_handle;
#  241|   	enum dcerpc_transport_t transport;
#  242|   	uint32_t assoc_group_id;

Error: CPPCHECK_WARNING: [#def2202]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/epmapper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2203]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/eventlog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2204]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/forest_trust.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2205]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/forest_trust.c:248: error[uninitvar]: Uninitialized variable: info
#  246|   	sr.in.trusted_domain = talloc_zero(tctx, struct lsa_String);
#  247|   	sr.in.trusted_domain->string = name;
#  248|-> 	sr.in.info = info;
#  249|   
#  250|   	for (c = 0; il[c].info_level != -1; c++) {

Error: CLANG_WARNING: [#def2206]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/forest_trust.c:248:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  246|   	sr.in.trusted_domain = talloc_zero(tctx, struct lsa_String);
#  247|   	sr.in.trusted_domain->string = name;
#  248|-> 	sr.in.info = info;
#  249|   
#  250|   	for (c = 0; il[c].info_level != -1; c++) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2207]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/forest_trust.c: scope_hint: In function ‘get_and_set_info’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/forest_trust.c:248:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘info’
#  246|   	sr.in.trusted_domain = talloc_zero(tctx, struct lsa_String);
#  247|   	sr.in.trusted_domain->string = name;
#  248|-> 	sr.in.info = info;
#  249|   
#  250|   	for (c = 0; il[c].info_level != -1; c++) {

Error: CPPCHECK_WARNING: [#def2208]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/frsapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2209]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/fsrvp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2210]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/handles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2211]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2212]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2213]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_common.c: scope_hint: In function ‘test_get_client_info’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2214]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2215]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c: scope_hint: In function ‘smb_copy_files’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c:101:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fpath, "r")’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c:99:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.20.2-build/samba-4.20.2/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): [#def2216]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c:101:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fpath, "r")’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/iremotewinspool_driver.c:99:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2217]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/lsa_lookup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2218]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/mdssvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2219]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/mgmt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2220]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2221]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:351: error[uninitvar]: Uninitialized variable: &mach_password
#  349|   					   a.in.secure_channel_type,
#  350|   					   &credentials1, &credentials2,
#  351|-> 					   &mach_password, &credentials3,
#  352|   					   negotiate_flags);
#  353|   

Error: CPPCHECK_WARNING (CWE-457): [#def2222]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:423: error[uninitvar]: Uninitialized variable: &mach_password
#  421|   					   a.in.secure_channel_type,
#  422|   					   &credentials1, &credentials2,
#  423|-> 					   &mach_password, &credentials3,
#  424|   					   negotiate_flags);
#  425|   

Error: CPPCHECK_WARNING (CWE-457): [#def2223]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2278: error[uninitvar]: Uninitialized variable: &mach_password
# 2276|   					   a.in.secure_channel_type,
# 2277|   					   &credentials1, &credentials2,
# 2278|-> 					   &mach_password, &credentials3,
# 2279|   					   flags);
# 2280|   

Error: CPPCHECK_WARNING (CWE-457): [#def2224]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2367: error[uninitvar]: Uninitialized variable: &mach_password
# 2365|   					   a.in.secure_channel_type,
# 2366|   					   &credentials1, &credentials2,
# 2367|-> 					   &mach_password, &credentials3,
# 2368|   					   flags);
# 2369|   

Error: CLANG_WARNING: [#def2225]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2380:2: warning[deadcode.DeadStores]: Value stored to 'creds' is never read
# 2378|   
# 2379|   	/* We have to re-run this part */
# 2380|-> 	creds = netlogon_creds_client_init(tctx, a.in.account_name,
# 2381|   					   a.in.computer_name,
# 2382|   					   a.in.secure_channel_type,

Error: CPPCHECK_WARNING (CWE-457): [#def2226]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2456: error[uninitvar]: Uninitialized variable: &mach_password
# 2454|   					   a.in.secure_channel_type,
# 2455|   					   &credentials1, &credentials2,
# 2456|-> 					   &mach_password, &credentials3,
# 2457|   					   flags);
# 2458|   

Error: CLANG_WARNING: [#def2227]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2469:2: warning[deadcode.DeadStores]: Value stored to 'creds' is never read
# 2467|   
# 2468|   	/* We have to re-run this part */
# 2469|-> 	creds = netlogon_creds_client_init(tctx, a.in.account_name,
# 2470|   					   a.in.computer_name,
# 2471|   					   a.in.secure_channel_type,

Error: CPPCHECK_WARNING (CWE-457): [#def2228]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2546: error[uninitvar]: Uninitialized variable: &mach_password
# 2544|   					   a.in.secure_channel_type,
# 2545|   					   &credentials1, &credentials2,
# 2546|-> 					   &mach_password, &credentials3,
# 2547|   					   flags);
# 2548|   

Error: CPPCHECK_WARNING (CWE-457): [#def2229]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2661: error[uninitvar]: Uninitialized variable: &mach_password
# 2659|   					   a.in.secure_channel_type,
# 2660|   					   &credentials1, &credentials2,
# 2661|-> 					   &mach_password, &credentials3,
# 2662|   					   flags);
# 2663|   

Error: CLANG_WARNING: [#def2230]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2674:2: warning[deadcode.DeadStores]: Value stored to 'creds' is never read
# 2672|   
# 2673|   	/* We have to re-run this part */
# 2674|-> 	creds = netlogon_creds_client_init(tctx, a.in.account_name,
# 2675|   					   a.in.computer_name,
# 2676|   					   a.in.secure_channel_type,

Error: CPPCHECK_WARNING (CWE-457): [#def2231]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2737: error[uninitvar]: Uninitialized variable: &mach_password
# 2735|   					   a.in.secure_channel_type,
# 2736|   					   &credentials1, &credentials2,
# 2737|-> 					   &mach_password, &credentials3,
# 2738|   					   flags);
# 2739|   

Error: CLANG_WARNING: [#def2232]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:2750:2: warning[deadcode.DeadStores]: Value stored to 'creds' is never read
# 2748|   
# 2749|   	/* We have to re-run this part */
# 2750|-> 	creds = netlogon_creds_client_init(tctx, a.in.account_name,
# 2751|   					   a.in.computer_name,
# 2752|   					   a.in.secure_channel_type,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2233]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c: scope_hint: In function ‘test_DatabaseRedo’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2234]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:5129:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 5127|   	if (sam_ctx) {
# 5128|   		/* Gets back the old DNS hostname in AD */
# 5129|-> 		ret = gendb_search(sam_ctx, tctx, NULL, &res, attrs,
# 5130|   				   "(sAMAccountName=%s$)", TEST_MACHINE_NAME);
# 5131|   		old_dnsname =

Error: CLANG_WARNING: [#def2235]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon.c:5454:4: warning[deadcode.DeadStores]: Value stored to 'tex2' is never read
# 5452|   		if (GUID_equal(&odiT->domain_guid, &odi1->domain_guid)) {
# 5453|   			odi2 = odiT;
# 5454|-> 			tex2 = texT;
# 5455|   			continue;
# 5456|   		}

Error: CPPCHECK_WARNING: [#def2236]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/netlogon_crypto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2237]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/ntsvcs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2238]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/ntsvcs.c:161:3: warning[deadcode.DeadStores]: Value stored to 'buffer' is never read
#  159|   	if (W_ERROR_EQUAL(r.out.result, WERR_CM_BUFFER_SMALL)) {
#  160|   
#  161|-> 		buffer = talloc_array(tctx, uint8_t, needed);
#  162|   		r.in.buffer_size = &needed;
#  163|   

Error: CLANG_WARNING: [#def2239]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/remote_pac.c:263:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  261|   	torture_assert_ntstatus_ok(tctx, status, "gensec_client_start (client) failed");
#  262|   
#  263|-> 	status = gensec_set_target_hostname(gensec_client_context, test_machine_name);
#  264|   
#  265|   	status = gensec_set_credentials(gensec_client_context, client_creds);

Error: CPPCHECK_WARNING: [#def2240]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samba3rpc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2241]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samba3rpc.c:900:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  898|   		}
#  899|   
#  900|-> 		status = init_samr_CryptPasswordEx(cli_credentials_get_password(wks_creds),
#  901|   						   &session_key,
#  902|   						   &u_info.info25.password);

Error: CLANG_WARNING: [#def2242]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samba3rpc.c:937:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  935|   		}
#  936|   
#  937|-> 		status = init_samr_CryptPassword(cli_credentials_get_password(wks_creds),
#  938|   						 &session_key,
#  939|   						 &u_info.info24.password);

Error: CLANG_WARNING: [#def2243]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samba3rpc.c:1830:8: warning[deadcode.DeadStores]: Although the value stored to 'user_sid' is used in the enclosing expression, the value is never actually read from 'user_sid'
# 1828|   	torture_assert_ntstatus_ok(torture, status, "smbcli_full_connection failed\n");
# 1829|   
# 1830|-> 	if (!(user_sid = whoami(torture, torture, cli->tree))) {
# 1831|   		torture_fail(torture, "whoami on auth'ed connection failed\n");
# 1832|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2244]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samba3rpc.c: scope_hint: In function ‘try_tcon’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2245]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2246]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c: scope_hint: In function ‘test_plaintext’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c:1301:31: warning[-Wanalyzer-malloc-leak]: leak of ‘*error_string’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:48: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/data_blob.h:48:75: note: in definition of macro ‘data_blob_talloc’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c:1255:23: note: in expansion of macro ‘data_blob_talloc’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/util/ntstatus.h:126:31: note: in expansion of macro ‘NT_STATUS_V’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c:1285:21: note: in expansion of macro ‘NT_STATUS_EQUAL’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/libcli/util/ntstatus.h:124:29: note: in expansion of macro ‘likely’
samba-4.20.2-build/samba-4.20.2/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): [#def2247]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c: scope_hint: In function ‘test_SamLogon’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c:1516:1: warning[-Wanalyzer-malloc-leak]: leak of ‘error_string’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:54: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samlogon.c:24: included_from: Included from here.
# 1514|   	talloc_free(fn_ctx);
# 1515|   	return ret;
# 1516|-> }
# 1517|   
# 1518|   /*

Error: CPPCHECK_WARNING: [#def2248]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2249]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:1587:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1585|   		break;
# 1586|   	case 31:
# 1587|-> 		status = init_samr_CryptPasswordAES(tctx,
# 1588|   						    newpass,
# 1589|   						    &salt,

Error: CLANG_WARNING: [#def2250]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:1595:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1593|   		break;
# 1594|   	case 32:
# 1595|-> 		status = init_samr_CryptPasswordAES(tctx,
# 1596|   						    newpass,
# 1597|   						    &salt,

Error: CLANG_WARNING: [#def2251]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:5847:24: warning[core.UndefinedBinaryOperatorResult]: The right operand of '!=' is a garbage value
# 5845|   				}
# 5846|   			}
# 5847|-> 			if (info->info5.rid != rid) {
# 5848|   				torture_result(tctx, TORTURE_FAIL, "QueryUserInfo level 5 failed, it returned %u when we expected rid of %u\n",
# 5849|   				       info->info5.rid, rid);

Error: CLANG_WARNING: [#def2252]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:5902:8: warning[core.CallAndMessage]: 8th function call argument is an uninitialized value
# 5900|   		}
# 5901|   
# 5902|-> 		if (!test_DeleteUser_with_privs(p, lp, tctx,
# 5903|   						domain_handle, lsa_handle, user_handle,
# 5904|   						domain_sid, rid,

Error: CLANG_WARNING: [#def2253]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:7428:8: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 7426|   		torture_assert_ntstatus_ok(tctx, dcerpc_samr_QueryUserInfo_r(b, tctx, &q),
# 7427|   			"QueryUserInfo failed");
# 7428|-> 		if (!NT_STATUS_IS_OK(r.out.result)) {
# 7429|   			torture_result(tctx, TORTURE_FAIL, "QueryUserInfo(%u) failed - %s\n", r.in.rid, nt_errstr(r.out.result));
# 7430|   			return false;

Error: CLANG_WARNING: [#def2254]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:7438:4: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 7436|   				*seen_testuser = true;
# 7437|   			}
# 7438|-> 			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].full_name,
# 7439|   					   info->info21.full_name, info->info21.account_name);
# 7440|   			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].account_name,

Error: CLANG_WARNING: [#def2255]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:7440:4: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 7438|   			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].full_name,
# 7439|   					   info->info21.full_name, info->info21.account_name);
# 7440|-> 			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].account_name,
# 7441|   					   info->info21.account_name, info->info21.account_name);
# 7442|   			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].description,

Error: CLANG_WARNING: [#def2256]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:7442:4: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 7440|   			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].account_name,
# 7441|   					   info->info21.account_name, info->info21.account_name);
# 7442|-> 			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].description,
# 7443|   					   info->info21.description, info->info21.account_name);
# 7444|   			INT_EQUAL_QUERY(querydisplayinfo->out.info->info1.entries[i].rid,

Error: CLANG_WARNING: [#def2257]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:7451:4: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 7449|   			break;
# 7450|   		case 2:
# 7451|-> 			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info2.entries[i].account_name,
# 7452|   					   info->info21.account_name, info->info21.account_name);
# 7453|   			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info2.entries[i].description,

Error: CLANG_WARNING: [#def2258]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:7453:4: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 7451|   			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info2.entries[i].account_name,
# 7452|   					   info->info21.account_name, info->info21.account_name);
# 7453|-> 			STRING_EQUAL_QUERY(querydisplayinfo->out.info->info2.entries[i].description,
# 7454|   					   info->info21.description, info->info21.account_name);
# 7455|   			INT_EQUAL_QUERY(querydisplayinfo->out.info->info2.entries[i].rid,

Error: CLANG_WARNING: [#def2259]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr.c:9013:3: warning[deadcode.DeadStores]: Value stored to 'got_handle' is never read
# 9011|   			test_samr_handle_Close(b, tctx, handle);
# 9012|   		}
# 9013|-> 		got_handle = true;
# 9014|   		*handle = h;
# 9015|   	}

Error: CPPCHECK_WARNING: [#def2260]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr_accessmask.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2261]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr_handletype.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2262]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samr_priv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2263]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2264]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:385:37: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  383|   	}
#  384|   	if (samsync_state->domain_handle[database_id]) {
#  385|-> 		samsync_state->sid[database_id] = dom_sid_dup(samsync_state, dom_sid);
#  386|   	}
#  387|   

Error: CLANG_WARNING: [#def2265]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:603:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  601|   
#  602|   	TEST_STRING_EQUAL(info->info21.comment, user->comment);
#  603|-> 	TEST_BINARY_STRING_EQUAL(info->info21.parameters, user->parameters);
#  604|   
#  605|   	TEST_INT_EQUAL(info->info21.country_code, user->country_code);

Error: CLANG_WARNING: [#def2266]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:983:21: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'old_mtime')
#  981|   			ret = false;
#  982|   		}
#  983|-> 		if (old->mtime != *q.out.old_mtime) {
#  984|   			torture_comment(tctx, "OLD mtime on secret %s does not match between SAMSYNC (%s) and LSA (%s)\n",
#  985|   			       old->name, nt_time_string(mem_ctx, old->mtime),

Error: CLANG_WARNING: [#def2267]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:1023:22: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'new_mtime')
# 1021|   			ret = false;
# 1022|   		}
# 1023|-> 		if (nsec->mtime != *q.out.new_mtime) {
# 1024|   			torture_comment(tctx, "NEW mtime on secret %s does not match between SAMSYNC (%s) and LSA (%s)\n",
# 1025|   			       nsec->name, nt_time_string(mem_ctx, nsec->mtime),

Error: CLANG_WARNING: [#def2268]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:1103:20: warning[core.NullDereference]: Dereference of null pointer
# 1101|   		TEST_STRING_EQUAL(info[8]->full_info.info_ex.netbios_name, trusted_domain->domain_name);
# 1102|   	}
# 1103|-> 	TEST_STRING_EQUAL(info[1]->name.netbios_name, trusted_domain->domain_name);
# 1104|   	TEST_INT_EQUAL(info[3]->posix_offset.posix_offset, trusted_domain->posix_offset);
# 1105|   /*

Error: CLANG_WARNING: [#def2269]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:1104:17: warning[core.NullDereference]: Dereference of null pointer
# 1102|   	}
# 1103|   	TEST_STRING_EQUAL(info[1]->name.netbios_name, trusted_domain->domain_name);
# 1104|-> 	TEST_INT_EQUAL(info[3]->posix_offset.posix_offset, trusted_domain->posix_offset);
# 1105|   /*
# 1106|     We would like to do this, but it is NOT_SUPPORTED on win2k3

Error: CLANG_WARNING: [#def2270]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/samsync.c:1168:45: warning[core.NullDereference]: Access to field 'count' results in a dereference of a null pointer (loaded from variable 'privs')
# 1166|   	}
# 1167|   
# 1168|-> 	TEST_INT_EQUAL(account->privilege_entries, privs->count);
# 1169|   
# 1170|   	for (i=0;i< privs->count; i++) {

Error: CPPCHECK_WARNING: [#def2271]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/scanner.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2272]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2273]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:152:3: warning[core.CallAndMessage]: 6th function call argument is an uninitialized value
#  150|   			"LogonSamLogonEx failed");
#  151|   	} else {
#  152|-> 		torture_comment(tctx,
#  153|   				"Skip auth_level[%u] Testing LogonSamLogonEx with name %s using %s and validation_level: %d\n",
#  154|   				auth_level, ninfo.identity_info.account_name.string, crypto_alg,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2274]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c: scope_hint: In function ‘test_netlogon_ex_ops’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:155:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r.in.validation_level’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/torture_rpc.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:28: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:927:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:935:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:938:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:943:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:948:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:826:17: note: in expansion of macro ‘torture_assert_ntstatus_equal’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:98:9: note: in expansion of macro ‘torture_assert_ntstatus_ok’
#  153|   				"Skip auth_level[%u] Testing LogonSamLogonEx with name %s using %s and validation_level: %d\n",
#  154|   				auth_level, ninfo.identity_info.account_name.string, crypto_alg,
#  155|-> 				r.in.validation_level);
#  156|   		r.out.result = NT_STATUS_INVALID_INFO_CLASS;
#  157|   	}

Error: CLANG_WARNING: [#def2275]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/schannel.c:357:3: warning[core.CallAndMessage]: 6th function call argument is an uninitialized value
#  355|   			"LogonSamLogonEx failed");
#  356|   	} else {
#  357|-> 		torture_comment(tctx,
#  358|   				"Skip auth_level[%u] Testing LogonSamLogonEx with name %s using %s and validation_level: %d\n",
#  359|   				auth_level, ninfo.identity_info.account_name.string, crypto_alg,

Error: CPPCHECK_WARNING: [#def2276]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/session_key.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2277]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/spoolss.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def2278]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/spoolss.c: scope_hint: In function ‘check_printer_driver_file.isra.0’
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/spoolss.c:10850:58: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#10850 |         const char *remote_name = talloc_asprintf(tctx, "%s\\%d\\%s",
#      |                                                          ^~
#10848|   {
#10849|   	const char *remote_arch_dir = driver_directory_dir(d->remote.driver_directory);
#10850|-> 	const char *remote_name = talloc_asprintf(tctx, "%s\\%d\\%s",
#10851|   						  remote_arch_dir,
#10852|   						  d->info8.version,

Error: CPPCHECK_WARNING: [#def2279]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/spoolss_access.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2280]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/srvsvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2281]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/svcctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2282]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/testjoin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2283]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/testjoin.c:235:18: warning[core.NullDereference]: Access to field 'entries' results in a dereference of a null pointer (loaded from variable 'sam')
#  233|   		}
#  234|   		for (i=0; i < 2; i++) {
#  235|-> 			if (!strequal(sam->entries[i].name.string, "builtin")) {
#  236|   				domain = sam->entries[i].name.string;
#  237|   				break;

Error: CLANG_WARNING: [#def2284]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/testjoin.c:755:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  753|   
#  754|   	if (join->libnet_r) {
#  755|-> 		status = torture_leave_ads_domain(tctx, join, join->libnet_r);
#  756|   	}
#  757|   	

Error: CPPCHECK_WARNING: [#def2285]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/winreg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2286]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/winreg.c:323:7: warning[core.NullDereference]: Access to field 'owner_sid' results in a dereference of a null pointer (loaded from variable 'sd')
#  321|   		sec_info = SECINFO_UNPROTECTED_SACL |
#  322|   			   SECINFO_UNPROTECTED_DACL;
#  323|-> 		if (sd->owner_sid) {
#  324|   			sec_info |= SECINFO_OWNER;
#  325|   		}

Error: CLANG_WARNING: [#def2287]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/winreg.c:3170:32: warning[deadcode.DeadStores]: Value stored to 'b' during its initialization is never read
# 3168|   	struct policy_handle newhandle;
# 3169|   	bool ret = true, created2 = false, created4 = false;
# 3170|-> 	struct dcerpc_binding_handle *b = p->binding_handle;
# 3171|   	const char *test_key2;
# 3172|   	const char *test_key4;

Error: CPPCHECK_WARNING: [#def2288]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/witness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2289]
samba-4.20.2-build/samba-4.20.2/source4/torture/rpc/wkssvc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2290]
samba-4.20.2-build/samba-4.20.2/source4/torture/shell.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2291]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/acls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2292]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/acls.c:1264:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1262|   		set.set_secdesc.in.secinfo_flags = SECINFO_DACL;
# 1263|   		set.set_secdesc.in.sd = sd_orig;
# 1264|-> 		status = smb2_setinfo_file(tree, &set);
# 1265|   	}
# 1266|   

Error: CLANG_WARNING: [#def2293]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/acls.c:1913:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1911|   	set.set_secdesc.in.secinfo_flags = SECINFO_DACL;
# 1912|   	set.set_secdesc.in.sd = sd_orig;
# 1913|-> 	status = smb2_setinfo_file(tree, &set);
# 1914|   
# 1915|   	smb2_util_close(tree, handle);

Error: CPPCHECK_WARNING: [#def2294]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/bench.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2295]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/block.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2296]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/charset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2297]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/compound.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2298]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2299]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/create.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2300]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:115:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  113|   	CHECK_STATUS(status, NT_STATUS_OK);
#  114|   
#  115|-> 	status = smb2_util_close(tree, handle);
#  116|   
#  117|   	return true;

Error: CLANG_WARNING: [#def2301]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:194:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  192|   	CHECK_STATUS(status, NT_STATUS_OK);
#  193|   
#  194|-> 	status = smb2_util_close(tree, handle);
#  195|   
#  196|   	return true;

Error: CLANG_WARNING: [#def2302]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:232:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  230|   	CHECK_STATUS(status, NT_STATUS_OK);
#  231|   
#  232|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  233|   
#  234|   	/* Check it was deleted */

Error: CLANG_WARNING: [#def2303]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:286:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  284|   	CHECK_STATUS(status, NT_STATUS_OK);
#  285|   
#  286|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  287|   
#  288|   	/* Next, try to open it for Delete On Close */

Error: CLANG_WARNING: [#def2304]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:301:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  299|   	CHECK_STATUS(status, NT_STATUS_ACCESS_DENIED);
#  300|   
#  301|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  302|   
#  303|   	return true;

Error: CLANG_WARNING: [#def2305]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:339:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  337|   	CHECK_STATUS(status, NT_STATUS_OK);
#  338|   
#  339|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  340|   
#  341|   	/* Check it was deleted */

Error: CLANG_WARNING: [#def2306]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:392:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  390|   	CHECK_STATUS(status, NT_STATUS_OK);
#  391|   
#  392|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  393|   
#  394|   	/* Next, try to open it for Delete on Close */

Error: CLANG_WARNING: [#def2307]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:395:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  393|   
#  394|   	/* Next, try to open it for Delete on Close */
#  395|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  396|   	ZERO_STRUCT(io);
#  397|   	io.in.desired_access	 = perms;

Error: CLANG_WARNING: [#def2308]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:408:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  406|   	CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_COLLISION);
#  407|   
#  408|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  409|   
#  410|   	return true;

Error: CLANG_WARNING: [#def2309]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:446:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  444|   	CHECK_STATUS(status, NT_STATUS_OK);
#  445|   
#  446|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  447|   
#  448|   	/* Check it was deleted */

Error: CLANG_WARNING: [#def2310]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:499:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  497|   	CHECK_STATUS(status, NT_STATUS_OK);
#  498|   
#  499|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  500|   
#  501|   	/* Now try to create it for delete on close */

Error: CLANG_WARNING: [#def2311]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/delete-on-close.c:514:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  512|   	CHECK_STATUS(status, NT_STATUS_ACCESS_DENIED);
#  513|   
#  514|-> 	status = smb2_util_close(tree, io.out.file.handle);
#  515|   
#  516|   	return true;

Error: CPPCHECK_WARNING: [#def2312]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2313]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:121:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  119|   	int i, j = 0, file_count = 0;
#  120|   
#  121|-> 	status = populate_tree(tctx, mem_ctx, tree, files, NFILES, &h);
#  122|   
#  123|   	ZERO_STRUCT(f);

Error: CLANG_WARNING: [#def2314]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:216:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  214|   	int i;
#  215|   
#  216|-> 	status = populate_tree(tctx, mem_ctx, tree, files, NFILES, &h);
#  217|   
#  218|   	ZERO_STRUCT(create);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2315]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c: scope_hint: In function ‘fill_result’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:690:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:176: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2316]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:879:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  877|   				"Continue %s via %s\n", search_types[t].name,
#  878|   				search_types[t].cont_name);
#  879|-> 		status = multiple_smb2_search(tree, tctx, "*",
#  880|   					      search_types[t].level,
#  881|   					      search_types[t].data_level,

Error: CLANG_WARNING: [#def2317]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:1066:2: warning[deadcode.DeadStores]: Value stored to 'num_files' is never read
# 1064|   	/* Reset the numfiles to include the new files and start the
# 1065|   	 * search from the beginning */
# 1066|-> 	num_files = num_files + 2;
# 1067|   	f.in.pattern = "*";
# 1068|   	f.in.continue_flags = SMB2_CONTINUE_FLAG_RESTART;

Error: CLANG_WARNING: [#def2318]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:1138:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1136|   	result.tctx = tctx;
# 1137|   
# 1138|-> 	status = multiple_smb2_search(tree, tctx, "*",
# 1139|   				      SMB2_FIND_BOTH_DIRECTORY_INFO,
# 1140|   				      RAW_SEARCH_DATA_BOTH_DIRECTORY_INFO,

Error: CLANG_WARNING: [#def2319]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/dir.c:1515:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1513|   		}
# 1514|   
# 1515|-> 		status = multiple_smb2_search(tree, tctx, "*",
# 1516|   				SMB2_FIND_FULL_DIRECTORY_INFO,
# 1517|   				RAW_SEARCH_DATA_FULL_DIRECTORY_INFO,

Error: CPPCHECK_WARNING: [#def2320]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2321]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c: scope_hint: In function ‘test_durable_open_reopen4’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c:1584:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tree2’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c:1532:9: note: in expansion of macro ‘CHECK_STATUS’
# 1582|   	if (tree != NULL) {
# 1583|   		if (h != NULL) {
# 1584|-> 			smb2_util_close(tree2, *h);
# 1585|   		}
# 1586|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2322]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c:1587:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tree2’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c:1532:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c:55:53: note: in definition of macro ‘CHECK_STATUS’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:8:22: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_open.c:1532:30: note: in expansion of macro ‘NT_STATUS_OK’
# 1585|   		}
# 1586|   
# 1587|-> 		smb2_util_unlink(tree2, fname);
# 1588|   
# 1589|   		talloc_free(tree);

Error: CPPCHECK_WARNING: [#def2323]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/durable_v2_open.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2324]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/getinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2325]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2326]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:946:2: warning[deadcode.DeadStores]: Value stored to 'ok' is never read
#  944|   	torture_assert_ndr_success(torture, ndr_ret,
#  945|   				   "ndr_pull_srv_copychunk_rsp");
#  946|-> 	ok = check_copy_chunk_rsp(torture, &cc_rsp,
#  947|   				  0,	/* chunks written */
#  948|   				  0,	/* chunk bytes unsuccessfully written */

Error: CLANG_WARNING: [#def2327]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/ioctl.c:5806:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 5804|   				   "ndr_push_fsctl_dup_extents_to_file");
# 5805|   
# 5806|-> 	status = smb2_ioctl(tree, tmp_ctx, &ioctl.smb2);
# 5807|   #if 0
# 5808|   	/*

Error: CPPCHECK_WARNING: [#def2328]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/lease.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2329]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/lease.c: scope_hint: In function ‘test_lease_dynamic_share’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/lease.c:4178:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘h’
# 4176|   
# 4177|   	if (tree_2 != NULL) {
# 4178|-> 		smb2_util_close(tree_2, h);
# 4179|   		smb2_util_unlink(tree_2, fname);
# 4180|   	}

Error: CPPCHECK_WARNING: [#def2330]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/lock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2331]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/mangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2332]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/mangle.c:271:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  269|   					"torture_smb2_testdir failed");
#  270|   
#  271|-> 	status = torture_smb2_testfile(tree, fname, &fh);
#  272|   	smb2_util_close(tree, fh);
#  273|   

Error: CLANG_WARNING: [#def2333]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/mangle.c:304:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  302|   	torture_comment(tctx, "Got shortname: %s\n", shortname);
#  303|   
#  304|-> 	status = torture_smb2_testdir(tree, dname, &dh);
#  305|   
#  306|   	ZERO_STRUCT(f);

Error: CPPCHECK_WARNING: [#def2334]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/max_allowed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2335]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/multichannel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2336]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/notify.c:639:2: warning[deadcode.DeadStores]: Value stored to 'req2' is never read
#  637|   
#  638|   	notify.smb2.in.recursive = false;
#  639|-> 	req2 = smb2_notify_send(tree1, &(notify.smb2));
#  640|   
#  641|   	status = smb2_notify_recv(req1, torture, &(notify.smb2));

Error: CLANG_WARNING: [#def2337]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/notify.c:1263:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1261|   	req = smb2_notify_send(tree, &(notify.smb2));
# 1262|   	smb2_cancel(req);
# 1263|-> 	status = smb2_notify_recv(req, torture, &(notify.smb2));
# 1264|   
# 1265|   	status = smb2_tdis(tree);

Error: CLANG_WARNING: [#def2338]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/notify.c:2035:4: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 2033|   			smb2_cancel(req);
# 2034|   			notify.smb2.out.num_changes = 0;
# 2035|-> 			status = smb2_notify_recv(req, torture,
# 2036|   				 &(notify.smb2));
# 2037|   			dirs[i].counted += notify.smb2.out.num_changes;

Error: CPPCHECK_WARNING: [#def2339]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/oplock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2340]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/oplock.c:2172:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 2170|   	qfi.generic.level = RAW_FILEINFO_SMB2_ALL_INFORMATION;
# 2171|   	qfi.generic.in.file.handle = h1;
# 2172|-> 	status = smb2_getinfo_file(tree2, tctx, &qfi);
# 2173|   
# 2174|   	torture_wait_for_oplock_break(tctx);

Error: CLANG_WARNING: [#def2341]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:152:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  150|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  151|   		cl.smb2.in.file.handle = h1;
#  152|-> 		status = smb2_close(tree1, &(cl.smb2));
#  153|   	}
#  154|   	smb2_deltree(tree1, BASEDIR);

Error: CLANG_WARNING: [#def2342]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:233:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  231|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  232|   		cl.smb2.in.file.handle = h1;
#  233|-> 		status = smb2_close(tree1, &(cl.smb2));
#  234|   	}
#  235|   	smb2_deltree(tree1, BASEDIR);

Error: CLANG_WARNING: [#def2343]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:324:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  322|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  323|   		cl.smb2.in.file.handle = h1;
#  324|-> 		status = smb2_close(tree1, &(cl.smb2));
#  325|   	}
#  326|   	smb2_deltree(tree1, BASEDIR);

Error: CLANG_WARNING: [#def2344]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:444:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  442|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  443|   		cl.smb2.in.file.handle = fh;
#  444|-> 		status = smb2_close(tree1, &(cl.smb2));
#  445|   	}
#  446|   	if (dh.data[0] || dh.data[1]) {

Error: CLANG_WARNING: [#def2345]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:450:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  448|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  449|   		cl.smb2.in.file.handle = dh;
#  450|-> 		status = smb2_close(tree1, &(cl.smb2));
#  451|   	}
#  452|   

Error: CLANG_WARNING: [#def2346]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:571:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  569|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  570|   		cl.smb2.in.file.handle = fh;
#  571|-> 		status = smb2_close(tree1, &(cl.smb2));
#  572|   	}
#  573|   	if (dh.data[0] || dh.data[1]) {

Error: CLANG_WARNING: [#def2347]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:577:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  575|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  576|   		cl.smb2.in.file.handle = dh;
#  577|-> 		status = smb2_close(tree1, &(cl.smb2));
#  578|   	}
#  579|   

Error: CLANG_WARNING: [#def2348]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:708:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  706|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  707|   		cl.smb2.in.file.handle = fh;
#  708|-> 		status = smb2_close(tree1, &(cl.smb2));
#  709|   	}
#  710|   	if (dh.data[0] || dh.data[1]) {

Error: CLANG_WARNING: [#def2349]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:714:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  712|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  713|   		cl.smb2.in.file.handle = dh;
#  714|-> 		status = smb2_close(tree1, &(cl.smb2));
#  715|   	}
#  716|   

Error: CLANG_WARNING: [#def2350]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:835:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  833|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  834|   		cl.smb2.in.file.handle = fh;
#  835|-> 		status = smb2_close(tree1, &(cl.smb2));
#  836|   	}
#  837|   	if (dh.data[0] || dh.data[1]) {

Error: CLANG_WARNING: [#def2351]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:841:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  839|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  840|   		cl.smb2.in.file.handle = dh;
#  841|-> 		status = smb2_close(tree1, &(cl.smb2));
#  842|   	}
#  843|   

Error: CLANG_WARNING: [#def2352]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:962:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  960|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  961|   		cl.smb2.in.file.handle = fh;
#  962|-> 		status = smb2_close(tree1, &(cl.smb2));
#  963|   	}
#  964|   	if (dh.data[0] || dh.data[1]) {

Error: CLANG_WARNING: [#def2353]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:968:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  966|   		cl.smb2.level = RAW_CLOSE_SMB2;
#  967|   		cl.smb2.in.file.handle = dh;
#  968|-> 		status = smb2_close(tree1, &(cl.smb2));
#  969|   	}
#  970|   

Error: CLANG_WARNING: [#def2354]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/rename.c:1065:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1063|   		cl.smb2.level = RAW_CLOSE_SMB2;
# 1064|   		cl.smb2.in.file.handle = h1;
# 1065|-> 		status = smb2_close(tree1, &(cl.smb2));
# 1066|   	}
# 1067|   	smb2_deltree(tree1, BASEDIR);

Error: CPPCHECK_WARNING: [#def2355]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2356]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:1574:3: warning[deadcode.DeadStores]: Value stored to 'lease_epoch1' is never read
# 1572|   			  SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED);
# 1573|   		CHECK_VAL(lb->new_epoch, lease_epoch1+1);
# 1574|-> 		lease_epoch1 += 1;
# 1575|   
# 1576|   		lb_ack1.in.lease.lease_key = lb->current_lease.lease_key;

Error: CLANG_WARNING: [#def2357]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2195:3: warning[deadcode.DeadStores]: Value stored to 'lease_epoch1' is never read
# 2193|   			  SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED);
# 2194|   		CHECK_VAL(lb->new_epoch, lease_epoch1+1);
# 2195|-> 		lease_epoch1 += 1;
# 2196|   	} else {
# 2197|   		torture_wait_for_oplock_break(tctx);

Error: CLANG_WARNING: [#def2358]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3034:3: warning[deadcode.DeadStores]: Value stored to 'lease_epoch1' is never read
# 3032|   			  SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED);
# 3033|   		CHECK_VAL(lb->new_epoch, lease_epoch1+1);
# 3034|-> 		lease_epoch1 += 1;
# 3035|   	} else {
# 3036|   		torture_wait_for_oplock_break(tctx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2359]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c: scope_hint: In function ‘_test_dhv2_pending2_vs_hold’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3162:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:26: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2360]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3162:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport2_2')
# 3160|   
# 3161|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3162|-> 	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3163|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3164|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2361]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3163:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2857:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2862:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2362]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3163:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport2_3')
# 3161|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3162|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3163|-> 	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3164|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3165|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2363]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3164:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_4’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2849:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2857:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2862:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:2879:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2364]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3164:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport2_4')
# 3162|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3163|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3164|-> 	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 3165|   
# 3166|   	if (h1 != NULL) {

Error: CLANG_WARNING: [#def2365]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3870:3: warning[deadcode.DeadStores]: Value stored to 'lease_epoch1' is never read
# 3868|   			  SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED);
# 3869|   		CHECK_VAL(lb->new_epoch, lease_epoch1+1);
# 3870|-> 		lease_epoch1 += 1;
# 3871|   	} else {
# 3872|   		torture_wait_for_oplock_break(tctx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2366]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c: scope_hint: In function ‘_test_dhv2_pending3_vs_hold’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:4036:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:512:36: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2367]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:4036:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport2_2')
# 4034|   
# 4035|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4036|-> 	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4037|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4038|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2368]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:4037:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3693:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3698:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3698:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:512:36: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2369]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:4037:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport2_3')
# 4035|   	smbXcli_conn_disconnect(transport2_1->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4036|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4037|-> 	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4038|   	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4039|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2370]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:4038:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_4’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3685:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3693:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3698:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3715:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:3723:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/bin/default/libcli/util/ntstatus_gen.h:512:36: note: in expansion of macro ‘NT_STATUS’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2371]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/replay.c:4038:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport2_4')
# 4036|   	smbXcli_conn_disconnect(transport2_2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4037|   	smbXcli_conn_disconnect(transport2_3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4038|-> 	smbXcli_conn_disconnect(transport2_4->conn, NT_STATUS_LOCAL_DISCONNECT);
# 4039|   
# 4040|   	if (h1 != NULL) {

Error: CPPCHECK_WARNING: [#def2372]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2373]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c: scope_hint: In function ‘test_session_bind2’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c:2247:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport3’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c:25: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c:2032:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c:2032:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
# 2245|   done:
# 2246|   
# 2247|-> 	smbXcli_conn_disconnect(transport3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 2248|   	smbXcli_conn_disconnect(transport2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 2249|   

Error: CLANG_WARNING: [#def2374]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/session.c:2247:26: warning[core.NullDereference]: Access to field 'conn' results in a dereference of a null pointer (loaded from variable 'transport3')
# 2245|   done:
# 2246|   
# 2247|-> 	smbXcli_conn_disconnect(transport3->conn, NT_STATUS_LOCAL_DISCONNECT);
# 2248|   	smbXcli_conn_disconnect(transport2->conn, NT_STATUS_LOCAL_DISCONNECT);
# 2249|   

Error: CPPCHECK_WARNING: [#def2375]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2376]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:53:30: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   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-688): [#def2377]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c: scope_hint: In function ‘find_returned_ea’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:53:44: warning[-Wanalyzer-null-argument]: use of NULL ‘eavalue’ where non-null expected
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:114:17: note: in expansion of macro ‘RECREATE_FILE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:117:9: note: in expansion of macro ‘RECREATE_BOTH’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:114:17: note: in expansion of macro ‘RECREATE_FILE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:117:9: note: in expansion of macro ‘RECREATE_BOTH’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:186:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:187:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:187:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:188:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:188:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:189:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:189:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:190:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:190:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:191:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:191:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:199:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:200:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:200:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:201:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:201:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:202:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:202:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:203:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:156:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:203:9: note: in expansion of macro ‘CHECK_TIME’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:204:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:204:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:208:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:209:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:209:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:213:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:214:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:214:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:218:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:222:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:223:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:223:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:227:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:228:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:228:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:229:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:229:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:232:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:233:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:233:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:234:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:234:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:238:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:239:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:239:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:240:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:240:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:243:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:244:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:244:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:245:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:245:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:249:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:250:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:250:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:253:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:254:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:254:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:258:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:259:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:259:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:260:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:260:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:264:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:265:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:265:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:266:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:266:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:269:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:272:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:273:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:145:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:273:9: note: in expansion of macro ‘CHECK_VALUE’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:281:9: note: in expansion of macro ‘CHECK1’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:291:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:297:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:67:21: note: in definition of macro ‘FAIL_UNLESS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:298:9: note: in expansion of macro ‘FAIL_UNLESS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:303:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:307:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:67:21: note: in definition of macro ‘FAIL_UNLESS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:308:9: note: in expansion of macro ‘FAIL_UNLESS’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/setinfo.c:319:9: note: in expansion of macro ‘CHECK_CALL’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2378]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2379]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:475:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  473|   	io.smb2.in.fname = fname;
#  474|   	io.smb2.in.create_disposition = NTCREATEX_DISP_OPEN;
#  475|-> 	status = smb2_create(tree, mem_ctx, &(io.smb2));
#  476|   	h2 = io.smb2.out.file.handle;
#  477|   	check_stream_list(tree,tctx, fname, 1, one, h2);

Error: CLANG_WARNING: [#def2380]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:563:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  561|   		SEC_FILE_READ_DATA |
#  562|   		SEC_FILE_WRITE_DATA;
#  563|-> 	status = smb2_create(tree, mem_ctx, &(io.smb2));
#  564|   	bh = io.smb2.out.file.handle;
#  565|   

Error: CLANG_WARNING: [#def2381]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:650:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  648|   	smb2_util_close(tree, h1);
#  649|   	smb2_util_close(tree, h2);
#  650|-> 	status = smb2_util_unlink(tree, fname);
#  651|   	smb2_deltree(tree, DNAME);
#  652|   	talloc_free(mem_ctx);

Error: CLANG_WARNING: [#def2382]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:1149:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1147|   done:
# 1148|   	smb2_util_close(tree, h1);
# 1149|-> 	status = smb2_util_unlink(tree, fname);
# 1150|   	smb2_deltree(tree, DNAME);
# 1151|   	talloc_free(mem_ctx);

Error: CLANG_WARNING: [#def2383]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:1227:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1225|   done:
# 1226|   	smb2_util_close(tree, h1);
# 1227|-> 	status = smb2_util_unlink(tree, fname);
# 1228|   	smb2_deltree(tree, DNAME);
# 1229|   	talloc_free(mem_ctx);

Error: CLANG_WARNING: [#def2384]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:1341:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1339|   	smb2_util_close(tree, hf);
# 1340|   	smb2_util_close(tree, h);
# 1341|-> 	status = smb2_util_unlink(tree, fname);
# 1342|   	smb2_deltree(tree, DNAME);
# 1343|   	talloc_free(mem_ctx);

Error: CLANG_WARNING: [#def2385]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:1447:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1445|   done:
# 1446|   	smb2_util_close(tree, h1);
# 1447|-> 	status = smb2_util_unlink(tree, fname);
# 1448|   	smb2_deltree(tree, DNAME);
# 1449|   	talloc_free(mem_ctx);

Error: CLANG_WARNING: [#def2386]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:1587:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1585|    done:
# 1586|   	smb2_util_close(tree, h1);
# 1587|-> 	status = smb2_util_unlink(tree, fname1);
# 1588|   	status = smb2_util_unlink(tree, fname2);
# 1589|   	smb2_deltree(tree, DNAME);

Error: CLANG_WARNING: [#def2387]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/streams.c:1588:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 1586|   	smb2_util_close(tree, h1);
# 1587|   	status = smb2_util_unlink(tree, fname1);
# 1588|-> 	status = smb2_util_unlink(tree, fname2);
# 1589|   	smb2_deltree(tree, DNAME);
# 1590|   	talloc_free(mem_ctx);

Error: CPPCHECK_WARNING: [#def2388]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/tcon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2389]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2390]
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/util.c: scope_hint: In function ‘smb2_create_simple_file’
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/util.c:635:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*handle’
samba-4.20.2-build/samba-4.20.2/libcli/util/error.h:24: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:64: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/util.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/smb2/util.c:534:9: note: in expansion of macro ‘NT_STATUS_NOT_OK_RETURN’
samba-4.20.2-build/samba-4.20.2/libcli/util/ntstatus.h:159:24: note: in definition of macro ‘NT_STATUS_NOT_OK_RETURN’
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2391]
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2392]
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.c:238:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'userdn'
#  236|   	p = strchr_m(d, '#');
#  237|   	if (!p) {
#  238|-> 		lpcfg_set_cmdline(lp_ctx, "torture:ldap_basedn", "");
#  239|   		lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", "");
#  240|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2393]
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.c: scope_hint: In function ‘parse_dns’
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.c:239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
#  237|   	if (!p) {
#  238|   		lpcfg_set_cmdline(lp_ctx, "torture:ldap_basedn", "");
#  239|-> 		lpcfg_set_cmdline(lp_ctx, "torture:ldap_secret", "");
#  240|   		return;
#  241|   	}

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

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

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

Error: CLANG_WARNING: [#def2397]
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.c:256:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'basedn'
#  254|   	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  255|   
#  256|-> }
#  257|   
#  258|   /* Print the full test list, formatted into separate labelled test

Error: CLANG_WARNING: [#def2398]
samba-4.20.2-build/samba-4.20.2/source4/torture/smbtorture.c:256:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'secret'
#  254|   	printf ("%s - %s - %s\n", userdn, basedn, secret);
#  255|   
#  256|-> }
#  257|   
#  258|   /* Print the full test list, formatted into separate labelled test

Error: CPPCHECK_WARNING: [#def2399]
samba-4.20.2-build/samba-4.20.2/source4/torture/unix/unix_info2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2400]
samba-4.20.2-build/samba-4.20.2/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): [#def2401]
samba-4.20.2-build/samba-4.20.2/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: [#def2402]
samba-4.20.2-build/samba-4.20.2/source4/torture/unix/whoami.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def2403]
samba-4.20.2-build/samba-4.20.2/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: CPPCHECK_WARNING: [#def2404]
samba-4.20.2-build/samba-4.20.2/source4/torture/util_smb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2405]
samba-4.20.2-build/samba-4.20.2/source4/torture/util_smb.c:610:2: warning[deadcode.DeadStores]: Value stored to 'synccount' is never read
#  608|   	*result = true;
#  609|   
#  610|-> 	synccount = 0;
#  611|   
#  612|   	signal(SIGCONT, sigcont);

Error: CPPCHECK_WARNING: [#def2406]
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def2407]
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:34: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c: scope_hint: In function ‘check_stream’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1853:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:2875:9: note: in expansion of macro ‘CHECK_STATUS’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:2879:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:2883:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:2891:9: note: in expansion of macro ‘torture_assert_goto’
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:23: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1816:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/lib/replace/replace.h:818:24: note: in expansion of macro ‘memset_s’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1843:9: note: in expansion of macro ‘ZERO_STRUCT’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:829:17: note: in expansion of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1853:49: note: read of 1 byte from after the end of ‘data’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1853:49: note: valid subscripts for ‘data’ are ‘[0]’ to ‘[15]’
samba-4.20.2-build/samba-4.20.2/lib/torture/torture.h:330:148: note: in definition of macro ‘torture_assert_ntstatus_equal_goto’
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:1850:9: note: in expansion of macro ‘torture_assert_ntstatus_ok_goto’
#                                                       └─────────────────┘
#                                                                ^
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2408]
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:2517:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 2515|   	}
# 2516|   
# 2517|-> 	ret &= write_stream(tree, __location__, tctx, mem_ctx,
# 2518|   			    fname, AFPRESOURCE_STREAM,
# 2519|   			    10, 10, rfork_content);

Error: CLANG_WARNING: [#def2409]
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:3980:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 3978|   
# 3979|   done:
# 3980|-> 	status = smb2_util_unlink(tree, fname);
# 3981|   	smb2_deltree(tree, BASEDIR);
# 3982|   	talloc_free(mem_ctx);

Error: CLANG_WARNING: [#def2410]
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:4108:3: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 4106|   		cl.smb2.level = RAW_CLOSE_SMB2;
# 4107|   		cl.smb2.in.file.handle = h1;
# 4108|-> 		status = smb2_close(tree, &(cl.smb2));
# 4109|   	}
# 4110|   

Error: CLANG_WARNING: [#def2411]
samba-4.20.2-build/samba-4.20.2/source4/torture/vfs/fruit.c:8088:2: warning[deadcode.DeadStores]: Value stored to 'status' is never read
# 8086|   
# 8087|   done:
# 8088|-> 	status = smb2_util_unlink(tree, fname);
# 8089|   	smb2_deltree(tree, BASEDIR);
# 8090|   	talloc_free(mem_ctx);

Error: CPPCHECK_WARNING: [#def2412]
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2413]
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c: scope_hint: In function ‘torture_winbind_struct_list_users’
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:670:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘users’
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:82:9: note: in expansion of macro ‘DO_STRUCT_REQ_REP_EXT’
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:639:9: note: in expansion of macro ‘DO_STRUCT_REQ_REP’
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:22: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:642:9: note: in expansion of macro ‘torture_assert’
samba-4.20.2-build/samba-4.20.2/lib/util/samba_util.h:57: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/include/includes.h:62: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:21: included_from: Included from here.
samba-4.20.2-build/samba-4.20.2/lib/util/memory.h:31:32: note: in definition of macro ‘SAFE_FREE’
samba-4.20.2-build/samba-4.20.2/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: CLANG_WARNING: [#def2414]
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:974:8: warning[deadcode.DeadStores]: Although the value stored to 'p' is used in the enclosing expression, the value is never actually read from 'p'
#  972|   	if (!p) {
#  973|   		/* Maybe it was a UPN? */
#  974|-> 		if ((p = strchr(domuser, '@')) != NULL) {
#  975|   			fstrcpy(domain, "");
#  976|   			fstrcpy(user, domuser);

Error: CLANG_WARNING: [#def2415]
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:997:18: warning[core.NullDereference]: Array access (from variable 'list') results in a null pointer dereference
#  995|   	uint32_t count;
#  996|   
#  997|-> 	for (count = 0; list[count]; count++) {
#  998|   		struct winbindd_request req;
#  999|   		struct winbindd_response rep;

Error: CLANG_WARNING: [#def2416]
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:1093:2: warning[deadcode.DeadStores]: Value stored to 'ok' is never read
# 1091|   	fstrcpy(req.data.sid, invalid_sid);
# 1092|   
# 1093|-> 	ok = true;
# 1094|   	DO_STRUCT_REQ_REP_EXT(WINBINDD_LOOKUPSID, &req, &rep,
# 1095|   			      NSS_STATUS_NOTFOUND,

Error: CLANG_WARNING: [#def2417]
samba-4.20.2-build/samba-4.20.2/source4/torture/winbind/struct_based.c:1122:2: warning[deadcode.DeadStores]: Value stored to 'ok' is never read
# 1120|   				count));
# 1121|   
# 1122|-> 	ok = true;
# 1123|   	DO_STRUCT_REQ_REP_EXT(WINBINDD_LOOKUPNAME, &req, &rep,
# 1124|   			      NSS_STATUS_NOTFOUND,

Error: CPPCHECK_WARNING: [#def2418]
samba-4.20.2-build/samba-4.20.2/source4/utils/oLschema2ldif/lib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2419]
samba-4.20.2-build/samba-4.20.2/source4/winbind/idmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2420]
samba-4.20.2-build/samba-4.20.2/source4/winbind/idmap.c:68:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   66|   	lower_bound = ldb_msg_find_attr_as_uint(res->msgs[0], "lowerBound", -1);
#   67|   	if (lower_bound != (uint32_t) -1) {
#   68|-> 		ret = LDB_SUCCESS;
#   69|   	} else {
#   70|   		ret = -1;

Error: CPPCHECK_WARNING: [#def2421]
samba-4.20.2-build/samba-4.20.2/source4/wrepl_server/wrepl_apply_records.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2422]
samba-4.20.2-build/samba-4.20.2/source4/wrepl_server/wrepl_in_call.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2423]
samba-4.20.2-build/samba-4.20.2/source4/wrepl_server/wrepl_in_connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2424]
samba-4.20.2-build/samba-4.20.2/source4/wrepl_server/wrepl_scavenging.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2425]
samba-4.20.2-build/samba-4.20.2/source4/wrepl_server/wrepl_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2426]
samba-4.20.2-build/samba-4.20.2/source4/wrepl_server/wrepl_server.c:324:7: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  322|   
#  323|   	for (cur = table; cur; cur = cur->next) {
#  324|-> 		if (strcmp(cur->owner.address, wins_owner) == 0) {
#  325|   			/*
#  326|   			 * if it's our local entry

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-139.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namesamba-4.20.2-2.fc41
store-results-to/tmp/tmpdon5fhje/samba-4.20.2-2.fc41.tar.xz
time-created2024-07-03 18:43:58
time-finished2024-07-03 19:25:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdon5fhje/samba-4.20.2-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdon5fhje/samba-4.20.2-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9