samba-4.23.4-1.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/smbprint:50:21: warning[SC2154]: acct_file is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-156): [#def2]
/usr/bin/smbprint:59:6: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/bin/smbprint:63:7: warning[SC2154]: user is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/smbprint:69:7: warning[SC2154]: workgroup is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/smbprint:75:7: warning[SC2154]: translate is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/smbprint:82:36: warning[SC2154]: password is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-156): [#def7]
/usr/bin/smbtar:160:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-398): [#def8]
/usr/share/doc/samba/LDAP/get_next_oid:3:41: warning[SC2062]: Quote the grep pattern so the shell won't interpret it.
Error: SHELLCHECK_WARNING (CWE-398): [#def9]
/usr/share/doc/samba/LDAP/get_next_oid:10:37: warning[SC2062]: Quote the grep pattern so the shell won't interpret it.
Error: COMPILER_WARNING (CWE-704): [#def10]
samba-4.23.4/auth/credentials/credentials.c: scope_hint: In function ‘cli_credentials_get_principal_and_obtained’
samba-4.23.4/auth/credentials/credentials.c:397:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def11]
samba-4.23.4/auth/credentials/credentials.c:397:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def12]
samba-4.23.4/auth/credentials/credentials.c: scope_hint: In function ‘cli_credentials_set_principal’
samba-4.23.4/auth/credentials/credentials.c:487:35: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def13]
samba-4.23.4/auth/credentials/credentials.c:487:35: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def14]
samba-4.23.4/auth/credentials/credentials.c:500:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def15]
samba-4.23.4/auth/credentials/credentials.c:500:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-477): [#def16]
samba-4.23.4/auth/gensec/gensec.c: scope_hint: In function ‘gensec_update’
samba-4.23.4/auth/gensec/gensec.c:382:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.23.4/auth/gensec/gensec.c:26: included_from: Included from here.
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def17]
samba-4.23.4/auth/gensec/gensec.c:382:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: CPPCHECK_WARNING (CWE-758): [#def18]
samba-4.23.4/bin/.conf_check_7983482e19abcf7ecc45fcaf70f17448/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): [#def19]
samba-4.23.4/bin/.conf_check_7983482e19abcf7ecc45fcaf70f17448/libdir/liblc1.c:2: error[resourceLeak]: Resource leak: f
Error: COMPILER_WARNING (CWE-563): [#def20]
samba-4.23.4/bin/.conf_check_7983482e19abcf7ecc45fcaf70f17448/libdir/liblc1.c: scope_hint: In function ‘lib_func’
samba-4.23.4/bin/.conf_check_7983482e19abcf7ecc45fcaf70f17448/libdir/liblc1.c:2:28: warning[-Wunused-variable]: unused variable ‘f’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
samba-4.23.4/bin/.conf_check_7983482e19abcf7ecc45fcaf70f17448/libdir/liblc1.c:2:50: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<return-value>’
Error: COMPILER_WARNING (CWE-393): [#def22]
samba-4.23.4/bin/.conf_check_7983482e19abcf7ecc45fcaf70f17448/libdir/liblc1.c:2:50: warning[-Wreturn-type]: control reaches end of non-void function
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1711:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1590:10: enter_function: entry to ‘__claims_tf_yy_restart’
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1595:9: call_function: calling ‘__claims_tf_yy_ensure_buffer_stack’ from ‘__claims_tf_yy_restart’
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1595:9: return_function: returning to ‘__claims_tf_yy_restart’ from ‘__claims_tf_yy_ensure_buffer_stack’
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1597:13: call_function: calling ‘__claims_tf_yy__create_buffer’ from ‘__claims_tf_yy_restart’
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1597:13: return_function: returning to ‘__claims_tf_yy_restart’ from ‘__claims_tf_yy__create_buffer’
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1600:9: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1600:9: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.lex.c:1600:9: call_function: calling ‘__claims_tf_yy__init_buffer’ from ‘__claims_tf_yy_restart’
Error: COMPILER_WARNING: [#def24]
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c: scope_hint: In function ‘__claims_tf_yy_parse’
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:74:25: warning[-Wunused-but-set-variable=]: variable ‘__claims_tf_yy_nerrs’ set but not used
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1360:9: note: in expansion of macro ‘yynerrs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1484:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1439:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1508:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1508:6: branch_false: following ‘false’ branch (when ‘yystate != 22’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1511:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1523:6: branch_false: following ‘false’ branch (when ‘yyn != -50’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1529:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1529:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1532:16: branch_true: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1541:11: branch_false: following ‘false’ branch (when ‘yychar != 256’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1554:17: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1561:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1564:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1574:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1574:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1581:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1439:6: branch_true: following ‘true’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1445:28: branch_true: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1471:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1473:7: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1480:11: acquire_memory: allocated here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1482:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1484:9: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1488:12: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1488:12: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1502:10: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1508:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1508:6: branch_false: following ‘false’ branch (when ‘yystate != 22’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1511:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1523:6: branch_false: following ‘false’ branch (when ‘yyn != -50’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1529:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1529:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1532:16: branch_true: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1532:16: throw: if ‘__claims_tf_yy_lex’ throws an exception...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1484:9: danger: ‘yyptr’ leaks here; was allocated at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1484:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1439:6: branch_true: following ‘true’ branch...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1445:28: branch_true: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1471:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1473:7: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1482:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1484:9: branch_false: ...to here
samba-4.23.4/bin/default/libcli/security/claims_transformation.tab.c:1484:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1648:54: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64, yyscanner)’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1635:21: enter_function: entry to ‘yy_create_buffer’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1639:24: call_function: calling ‘yyalloc’ from ‘yy_create_buffer’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1639:24: return_function: returning to ‘yy_create_buffer’ from ‘yyalloc’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1640:12: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1643:2: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1648:54: danger: ‘yyalloc(64, yyscanner)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1691:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1570:10: enter_function: entry to ‘yyrestart’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1575:16: call_function: calling ‘yyensure_buffer_stack’ from ‘yyrestart’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1575:16: return_function: returning to ‘yyrestart’ from ‘yyensure_buffer_stack’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1577:27: call_function: calling ‘yy_create_buffer’ from ‘yyrestart’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1577:27: return_function: returning to ‘yyrestart’ from ‘yy_create_buffer’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1580:2: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1580:2: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1580:2: call_function: calling ‘yy_init_buffer’ from ‘yyrestart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1909:26: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(n, yyscanner)’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1893:17: enter_function: entry to ‘yy_scan_bytes’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1902:24: call_function: calling ‘yyalloc’ from ‘yy_scan_bytes’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1902:24: return_function: returning to ‘yy_scan_bytes’ from ‘yyalloc’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1903:12: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1903:12: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_lexer.c:1911:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’
Error: COMPILER_WARNING: [#def30]
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c: scope_hint: In function ‘yyparse’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:980:9: warning[-Wunused-but-set-variable=]: variable ‘yynerrs’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: following ‘false’ branch (when ‘yystate != 15’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1113:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1125:6: branch_false: following ‘false’ branch (when ‘yyn != -60’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1134:16: branch_true: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1143:11: branch_false: following ‘false’ branch (when ‘yychar != 256’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1155:17: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1162:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1165:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1182:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: following ‘false’ branch (when ‘yystate != 15’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1113:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1125:6: branch_false: following ‘false’ branch (when ‘yyn != -60’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1134:16: branch_true: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1162:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1165:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1175:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1182:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_true: following ‘true’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1052:28: branch_true: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1075:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1077:7: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1084:11: acquire_memory: allocated here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1086:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1091:12: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1091:12: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1104:10: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1110:6: branch_false: following ‘false’ branch (when ‘yystate != 15’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1113:3: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1125:6: branch_false: following ‘false’ branch (when ‘yyn != -60’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1131:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1134:16: branch_true: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1134:16: throw: if ‘yylex’ throws an exception...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: danger: ‘yyptr’ leaks here; was allocated at [(35)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/34)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1046:6: branch_true: following ‘true’ branch...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1052:28: branch_true: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1075:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1077:7: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1086:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: branch_false: ...to here
samba-4.23.4/bin/default/libcli/wsp/wsp_aqs_parser.tab.c:1088:9: danger: use of uninitialized value ‘yyss’ here
Error: COMPILER_WARNING (CWE-1164): [#def33]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:89:13: warning[-Wunused-function]: ‘ndr_print_flags_domsid’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def34]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:228:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_100’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def35]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:279:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_101’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def36]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:348:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_102’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def37]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:460:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_402’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def38]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:596:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_403’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def39]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:703:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_502’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def40]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:842:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_503’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def41]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1033:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_599’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def42]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1210:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_598’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def43]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1005’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def44]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1107’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def45]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1010’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def46]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1016’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def47]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1017’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def48]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1018’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def49]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1501’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def50]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1502’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def51]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1503’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def52]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1506’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def53]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1509’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def54]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1510’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def55]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1511’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def56]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1512’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def57]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1513’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def58]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1514’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def59]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1515’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def60]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:1971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1516’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def61]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1518’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def62]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2051:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1520’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def63]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2091:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1521’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def64]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2131:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1522’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def65]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2171:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1523’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def66]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2211:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1524’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def67]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2251:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1525’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def68]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1528’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def69]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1529’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def70]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1530’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def71]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1533’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def72]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1534’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def73]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1535’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def74]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1536’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def75]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1537’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def76]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1538’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def77]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1539’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def78]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1540’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def79]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1541’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def80]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1542’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def81]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1543’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def82]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1544’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def83]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1545’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def84]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1546’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def85]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:2971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1547’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def86]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1548’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def87]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3051:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1549’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def88]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3091:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1550’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def89]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3131:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1552’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def90]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3171:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1553’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def91]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3211:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1554’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def92]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3251:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1555’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def93]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1556’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def94]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1557’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def95]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1560’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def96]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1561’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def97]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1562’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def98]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1563’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def99]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1564’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def100]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1565’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def101]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1566’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def102]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1567’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def103]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1568’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def104]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1569’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def105]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1570’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def106]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1571’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def107]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1572’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def108]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1573’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def109]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1574’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def110]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:3971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1575’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def111]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1576’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def112]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4051:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1577’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def113]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4091:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1578’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def114]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4131:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1579’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def115]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4171:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1580’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def116]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4211:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1581’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def117]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4251:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1582’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def118]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4291:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1583’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def119]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4331:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1584’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def120]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4371:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1585’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def121]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4411:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1586’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def122]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4451:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1587’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def123]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4491:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1588’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def124]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4531:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1590’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def125]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4571:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1591’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def126]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4611:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1592’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def127]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4651:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1593’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def128]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4691:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1594’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def129]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4731:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1595’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def130]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4771:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1596’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def131]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4811:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1597’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def132]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4851:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1598’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def133]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4891:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1599’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def134]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4931:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1600’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def135]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:4971:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1601’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def136]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5011:13: warning[-Wunused-function]: ‘ndr_print_flags_SERVER_INFO_1602’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def137]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5059:13: warning[-Wunused-function]: ‘ndr_print_flags_WKSTA_INFO_100’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def138]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5113:13: warning[-Wunused-function]: ‘ndr_print_flags_WKSTA_INFO_101’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def139]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5170:13: warning[-Wunused-function]: ‘ndr_print_flags_WKSTA_INFO_102’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def140]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5270:13: warning[-Wunused-function]: ‘ndr_print_flags_DOMAIN_CONTROLLER_INFO’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def141]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5318:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_0’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def142]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5372:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def143]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5481:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_2’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def144]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5619:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_3’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def145]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5779:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_4’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def146]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5863:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_10’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def147]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:5960:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_11’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def148]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6032:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_20’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def149]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6079:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_21’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def150]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6184:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_22’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def151]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6276:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_23’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def152]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6325:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1003’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def153]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6365:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1005’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def154]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6405:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1006’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def155]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6445:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1007’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def156]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6485:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1008’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def157]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6525:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1009’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def158]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6565:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1010’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def159]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6605:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1011’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def160]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6645:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1012’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def161]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6685:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1013’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def162]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6725:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1014’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def163]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6765:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1017’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def164]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6805:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1018’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def165]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6863:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1020’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def166]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6909:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1023’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def167]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6949:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1024’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def168]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:6989:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1025’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def169]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7029:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1051’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def170]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7069:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1052’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def171]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7109:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_1053’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def172]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7221:13: warning[-Wunused-function]: ‘ndr_print_flags_USER_INFO_X’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def173]
samba-4.23.4/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
Error: COMPILER_WARNING (CWE-1164): [#def174]
samba-4.23.4/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
Error: COMPILER_WARNING (CWE-1164): [#def175]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7387:13: warning[-Wunused-function]: ‘ndr_print_flags_NET_DISPLAY_USER’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def176]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7440:13: warning[-Wunused-function]: ‘ndr_print_flags_NET_DISPLAY_MACHINE’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def177]
samba-4.23.4/bin/default/source3/librpc/gen_ndr/ndr_libnetapi.c:7492:13: warning[-Wunused-function]: ‘ndr_print_flags_NET_DISPLAY_GROUP’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def178]
samba-4.23.4/bin/default/source3/modules/getdate.c:1303:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.23.4/bin/default/source3/modules/getdate.c:1261:6: branch_true: following ‘true’ branch...
samba-4.23.4/bin/default/source3/modules/getdate.c:1264:31: branch_true: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1291:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.23.4/bin/default/source3/modules/getdate.c:1293:7: branch_false: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1301:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.23.4/bin/default/source3/modules/getdate.c:1301:12: branch_false: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1303:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
samba-4.23.4/bin/default/source3/modules/getdate.c:1420:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
samba-4.23.4/bin/default/source3/modules/getdate.c:1261:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/source3/modules/getdate.c:1324:6: branch_false: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1324:6: branch_false: following ‘false’ branch (when ‘yystate != 2’)...
samba-4.23.4/bin/default/source3/modules/getdate.c:1327:3: branch_false: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1339:6: branch_true: following ‘true’ branch (when ‘yyn == -17’)...
samba-4.23.4/bin/default/source3/modules/getdate.c:1340:5: branch_true: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1400:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
samba-4.23.4/bin/default/source3/modules/getdate.c:1402:3: branch_false: ...to here
samba-4.23.4/bin/default/source3/modules/getdate.c:1420:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: CPPCHECK_WARNING (CWE-476): [#def180]
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1668: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def181]
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1669: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1797:63: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1866:17: enter_function: entry to ‘mdsyyl_scan_bytes’
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1875:24: acquire_memory: allocated here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1876:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1876:12: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1884:13: call_function: calling ‘mdsyyl_scan_buffer’ from ‘mdsyyl_scan_bytes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1797:63: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1816:17: enter_function: entry to ‘mdsyyl_scan_buffer’
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1826:31: acquire_memory: allocated here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1827:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1830:32: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_lexer.lex.c:1840:9: call_function: calling ‘mdsyyl_switch_to_buffer’ from ‘mdsyyl_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def184]
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1295:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1253:6: branch_true: following ‘true’ branch...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1259:28: branch_true: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1282:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1284:7: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1293:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1295:9: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1295:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def185]
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1422:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(const char **)<unknown>’
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1253:6: branch_false: following ‘false’ branch...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1317:6: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1317:6: branch_false: following ‘false’ branch (when ‘yystate != 2’)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1320:3: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1332:6: branch_true: following ‘true’ branch (when ‘yyn == -19’)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1333:5: branch_true: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1402:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1404:3: branch_false: ...to here
samba-4.23.4/bin/default/source3/rpc_server/mdssvc/es_parser.tab.c:1422:3: danger: use of uninitialized value ‘*(const char **)<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def186]
samba-4.23.4/ctdb/client/client_connect.c:126:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 1, 0)’
samba-4.23.4/ctdb/client/client_connect.c:68:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:72:12: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:72:12: branch_false: following ‘false’ branch (when ‘sockpath’ is non-NULL)...
samba-4.23.4/ctdb/client/client_connect.c:78:18: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:79:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:83:15: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:91:15: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:92:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:99:15: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:100:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:107:9: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:117:22: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:117:22: acquire_resource: stream socket created here
samba-4.23.4/ctdb/client/client_connect.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/client/client_connect.c:126:15: branch_false: ...to here
samba-4.23.4/ctdb/client/client_connect.c:126:15: danger: ‘socket(1, 1, 0)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def187]
samba-4.23.4/ctdb/common/ctdb_io.c:469:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/ctdb/common/ctdb_io.c:467:9: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/ctdb_io.c:468:9: branch_false: ...to here
samba-4.23.4/ctdb/common/ctdb_io.c:468:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/ctdb/common/ctdb_io.c:469:23: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/ctdb/common/ctdb_io.c:469:23: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def188]
samba-4.23.4/ctdb/common/ctdb_ltdb.c:359: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def189]
samba-4.23.4/ctdb/common/ctdb_ltdb.c:359:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.23.4/ctdb/common/ctdb_ltdb.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/ctdb_ltdb.c:358:23: branch_true: ...to here
samba-4.23.4/ctdb/common/ctdb_ltdb.c:358:23: acquire_memory: this call could return NULL
samba-4.23.4/ctdb/common/ctdb_ltdb.c:359:17: danger: argument 1 (‘buf’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-404): [#def190]
samba-4.23.4/ctdb/common/ctdb_util.c:57:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/ctdb/common/ctdb_util.c:56:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/ctdb/common/ctdb_util.c:57:25: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/ctdb/common/ctdb_util.c:57:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
samba-4.23.4/ctdb/common/event_script.c:174:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(script_dir)’
samba-4.23.4/ctdb/common/event_script.c:168:16: acquire_memory: allocated here
samba-4.23.4/ctdb/common/event_script.c:169:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/event_script.c:169:12: branch_false: ...to here
samba-4.23.4/ctdb/common/event_script.c:174:22: throw: if ‘readdir’ throws an exception...
samba-4.23.4/ctdb/common/event_script.c:174:22: danger: ‘opendir(script_dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
samba-4.23.4/ctdb/common/run_event.c:412:17: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/ctdb/common/run_event.c:404:13: acquire_memory: allocated here
samba-4.23.4/ctdb/common/run_event.c:405:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/ctdb/common/run_event.c:410:16: branch_false: ...to here
samba-4.23.4/ctdb/common/run_event.c:411:16: branch_true: following ‘true’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/ctdb/common/run_event.c:412:17: branch_true: ...to here
samba-4.23.4/ctdb/common/run_event.c:412:17: branch_true: following ‘true’ branch (when ‘loglevel <= 1000’)...
samba-4.23.4/ctdb/common/run_event.c:412:17: branch_true: ...to here
samba-4.23.4/ctdb/common/run_event.c:412:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/ctdb/common/run_event.c:412:17: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
samba-4.23.4/ctdb/common/run_proc.c:108:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:107:23: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:108:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:108:17: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
samba-4.23.4/ctdb/common/run_proc.c:108:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:107:23: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:108:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:108:17: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
samba-4.23.4/ctdb/common/run_proc.c:109:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:107:23: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:109:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:109:17: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
samba-4.23.4/ctdb/common/run_proc.c:114:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:114:17: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:114:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:114:17: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
samba-4.23.4/ctdb/common/run_proc.c:114:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:114:17: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:114:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:114:17: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
samba-4.23.4/ctdb/common/run_proc.c:125:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:114:17: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:117:20: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/common/run_proc.c:120:23: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:121:20: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/common/run_proc.c:125:17: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:125:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:125:17: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def199]
samba-4.23.4/ctdb/common/run_proc.c:125:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/run_proc.c:114:17: branch_true: ...to here
samba-4.23.4/ctdb/common/run_proc.c:116:23: acquire_resource: opened here
samba-4.23.4/ctdb/common/run_proc.c:117:20: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/common/run_proc.c:120:23: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:121:20: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/common/run_proc.c:125:17: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:125:17: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:125:17: danger: ‘ret’ leaks here; was opened at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
samba-4.23.4/ctdb/common/run_proc.c:147:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:147:9: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:147:9: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:147:9: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def201]
samba-4.23.4/ctdb/common/run_proc.c:147:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
samba-4.23.4/ctdb/common/run_proc.c:101:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/common/run_proc.c:105:21: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/run_proc.c:147:9: branch_false: ...to here
samba-4.23.4/ctdb/common/run_proc.c:147:9: throw: if ‘close’ throws an exception...
samba-4.23.4/ctdb/common/run_proc.c:147:9: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
samba-4.23.4/ctdb/common/sock_client.c:73:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/ctdb/common/sock_client.c:62:12: branch_false: following ‘false’ branch (when ‘len <= 107’)...
samba-4.23.4/ctdb/common/sock_client.c:67:14: branch_false: ...to here
samba-4.23.4/ctdb/common/sock_client.c:67:14: acquire_resource: stream socket created here
samba-4.23.4/ctdb/common/sock_client.c:68:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/ctdb/common/sock_client.c:73:15: branch_false: ...to here
samba-4.23.4/ctdb/common/sock_client.c:73:15: throw: if ‘connect’ throws an exception...
samba-4.23.4/ctdb/common/sock_client.c:73:15: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
samba-4.23.4/ctdb/common/system_socket.c:133:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ips_ctx’
samba-4.23.4/ctdb/common/system_socket.c:196:6: enter_function: entry to ‘ctdb_sys_have_ip’
samba-4.23.4/ctdb/common/system_socket.c:198:44: release_memory: ‘ips_ctx’ is NULL
samba-4.23.4/ctdb/common/system_socket.c:202:15: call_function: calling ‘ctdb_sys_local_ips_init’ from ‘ctdb_sys_have_ip’
samba-4.23.4/ctdb/common/system_socket.c:202:15: return_function: returning to ‘ctdb_sys_have_ip’ from ‘ctdb_sys_local_ips_init’
samba-4.23.4/ctdb/common/system_socket.c:203:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/system_socket.c:209:19: branch_false: ...to here
samba-4.23.4/ctdb/common/system_socket.c:209:19: release_memory: ‘ips_ctx’ is NULL
samba-4.23.4/ctdb/common/system_socket.c:209:19: call_function: calling ‘ctdb_sys_local_ip_check’ from ‘ctdb_sys_have_ip’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
samba-4.23.4/ctdb/common/system_socket.c:452:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
samba-4.23.4/ctdb/common/system_socket.c:446:13: acquire_resource: socket created here
samba-4.23.4/ctdb/common/system_socket.c:447:12: branch_false: following ‘false’ branch (when ‘s != -1’)...
samba-4.23.4/ctdb/common/system_socket.c:452:9: branch_false: ...to here
samba-4.23.4/ctdb/common/system_socket.c:452:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/ctdb/common/system_socket.c:452:9: danger: ‘s’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def205]
samba-4.23.4/ctdb/common/system_socket.c:978:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
samba-4.23.4/ctdb/common/system_socket.c:972:13: acquire_resource: socket created here
samba-4.23.4/ctdb/common/system_socket.c:973:12: branch_false: following ‘false’ branch (when ‘s != -1’)...
samba-4.23.4/ctdb/common/system_socket.c:978:9: branch_false: ...to here
samba-4.23.4/ctdb/common/system_socket.c:978:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/ctdb/common/system_socket.c:978:9: danger: ‘s’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def206]
samba-4.23.4/ctdb/common/system_socket.c:980:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
samba-4.23.4/ctdb/common/system_socket.c:972:13: acquire_resource: socket created here
samba-4.23.4/ctdb/common/system_socket.c:973:12: branch_false: following ‘false’ branch (when ‘s != -1’)...
samba-4.23.4/ctdb/common/system_socket.c:978:9: branch_false: ...to here
samba-4.23.4/ctdb/common/system_socket.c:980:15: throw: if ‘set_blocking’ throws an exception...
samba-4.23.4/ctdb/common/system_socket.c:980:15: danger: ‘s’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def207]
samba-4.23.4/ctdb/common/tunable.c:381:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
samba-4.23.4/ctdb/common/tunable.c:370:14: acquire_resource: opened here
samba-4.23.4/ctdb/common/tunable.c:371:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/tunable.c:381:9: branch_false: ...to here
samba-4.23.4/ctdb/common/tunable.c:381:9: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/tunable.c:381:9: branch_true: ...to here
samba-4.23.4/ctdb/common/tunable.c:381:9: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/ctdb/common/tunable.c:381:9: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
samba-4.23.4/ctdb/common/tunable.c:381:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
samba-4.23.4/ctdb/common/tunable.c:370:14: acquire_memory: allocated here
samba-4.23.4/ctdb/common/tunable.c:371:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/common/tunable.c:381:9: branch_false: ...to here
samba-4.23.4/ctdb/common/tunable.c:381:9: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/common/tunable.c:381:9: branch_true: ...to here
samba-4.23.4/ctdb/common/tunable.c:381:9: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/ctdb/common/tunable.c:381:9: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def209]
samba-4.23.4/ctdb/conf/conf_tool.c:147:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i_val’
samba-4.23.4/ctdb/conf/conf_tool.c:85:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.23.4/ctdb/conf/conf_tool.c:90:9: branch_false: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:94:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/conf/conf_tool.c:100:15: branch_true: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:101:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/conf/conf_tool.c:106:9: branch_false: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:136:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/conf/conf_tool.c:141:9: branch_false: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:147:17: danger: use of uninitialized value ‘i_val’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
samba-4.23.4/ctdb/conf/conf_tool.c:151:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b_val’
samba-4.23.4/ctdb/conf/conf_tool.c:85:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.23.4/ctdb/conf/conf_tool.c:90:9: branch_false: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:94:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/conf/conf_tool.c:100:15: branch_true: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:101:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/conf/conf_tool.c:106:9: branch_false: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:136:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/ctdb/conf/conf_tool.c:141:9: branch_false: ...to here
samba-4.23.4/ctdb/conf/conf_tool.c:151:38: danger: use of uninitialized value ‘b_val’ here
Error: COMPILER_WARNING (CWE-704): [#def211]
samba-4.23.4/ctdb/protocol/protocol_util.c: scope_hint: In function ‘ip_from_string’
samba-4.23.4/ctdb/protocol/protocol_util.c:257:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def212]
samba-4.23.4/ctdb/protocol/protocol_util.c:257:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def213]
samba-4.23.4/ctdb/protocol/protocol_util.c:275:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def214]
samba-4.23.4/ctdb/protocol/protocol_util.c:275:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def215]
samba-4.23.4/ctdb/server/ctdb_call.c:98:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/ctdb/server/ctdb_call.c:92:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/server/ctdb_call.c:97:9: branch_false: ...to here
samba-4.23.4/ctdb/server/ctdb_call.c:97:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/ctdb/server/ctdb_call.c:98:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/ctdb/server/ctdb_call.c:98:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-477): [#def216]
samba-4.23.4/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘ctdb_start_daemon’
samba-4.23.4/ctdb/server/ctdb_daemon.c:1568:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.23.4/ctdb/server/ctdb_daemon.c:30: included_from: Included from here.
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def217]
samba-4.23.4/ctdb/server/ctdb_daemon.c:1568:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def218]
samba-4.23.4/ctdb/server/ctdb_daemon.c: scope_hint: In function ‘switch_from_server_to_client’
samba-4.23.4/ctdb/server/ctdb_daemon.c:2488:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def219]
samba-4.23.4/ctdb/server/ctdb_daemon.c:2488:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
samba-4.23.4/ctdb/server/ctdb_ltdb_server.c:1323:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*ctdb.db_directory_persistent)’
samba-4.23.4/ctdb/server/ctdb_ltdb_server.c:1318:13: acquire_memory: allocated here
samba-4.23.4/ctdb/server/ctdb_ltdb_server.c:1319:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/server/ctdb_ltdb_server.c:1319:12: branch_false: ...to here
samba-4.23.4/ctdb/server/ctdb_ltdb_server.c:1323:20: throw: if ‘readdir’ throws an exception...
samba-4.23.4/ctdb/server/ctdb_ltdb_server.c:1323:20: danger: ‘opendir(*ctdb.db_directory_persistent)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:120:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nlist’
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2540:13: enter_function: entry to ‘recovery_nodemap_verify’
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2560:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2578:39: branch_true: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2579:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2579:12: branch_false: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2583:19: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2584:39: branch_true: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2593:20: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2593:20: branch_false: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2600:27: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2601:29: branch_true: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2601:28: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2602:33: branch_true: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2609:20: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2613:22: branch_false: ...to here
samba-4.23.4/ctdb/server/ctdb_recovery_helper.c:2613:22: call_function: calling ‘node_list_add’ from ‘recovery_nodemap_verify’
Error: COMPILER_WARNING (CWE-477): [#def222]
samba-4.23.4/ctdb/server/ctdbd.c: scope_hint: In function ‘main’
samba-4.23.4/ctdb/server/ctdbd.c:188:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.23.4/ctdb/server/ctdbd.c:31: included_from: Included from here.
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def223]
samba-4.23.4/ctdb/server/ctdbd.c:188:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-404): [#def224]
samba-4.23.4/ctdb/server/eventscript.c:610:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/ctdb/server/eventscript.c:760:5: enter_function: entry to ‘ctdb_event_script_callback’
samba-4.23.4/ctdb/server/eventscript.c:770:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/ctdb/server/eventscript.c:771:15: call_function: calling ‘ctdb_event_script_run’ from ‘ctdb_event_script_callback’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def225]
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:160:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hn’
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:134:6: enter_function: entry to ‘ipalloc_deterministic’
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:136:40: call_function: calling ‘ipalloc_get_home_nodes’ from ‘ipalloc_deterministic’
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:136:40: return_function: returning to ‘ipalloc_deterministic’ from ‘ipalloc_get_home_nodes’
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:150:49: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:153:26: branch_true: ...to here
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:155:29: branch_true: following ‘true’ branch (when ‘j < num_home_nodes’)...
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:156:59: branch_true: ...to here
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:158:28: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:160:37: branch_true: ...to here
samba-4.23.4/ctdb/server/ipalloc_deterministic.c:160:37: danger: dereference of NULL ‘hn’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def226]
samba-4.23.4/ctdb/tools/ctdb.c:207:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/ctdb/tools/ctdb.c:192:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/tools/ctdb.c:196:9: branch_false: ...to here
samba-4.23.4/ctdb/tools/ctdb.c:200:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/tools/ctdb.c:206:16: branch_false: ...to here
samba-4.23.4/ctdb/tools/ctdb.c:207:13: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
samba-4.23.4/ctdb/tools/ctdb.c:212:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/ctdb/tools/ctdb.c:175:30: enter_function: entry to ‘get_nodemap’
samba-4.23.4/ctdb/tools/ctdb.c:192:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/tools/ctdb.c:196:9: branch_false: ...to here
samba-4.23.4/ctdb/tools/ctdb.c:200:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/tools/ctdb.c:206:16: branch_false: ...to here
samba-4.23.4/ctdb/tools/ctdb.c:206:16: call_function: inlined call to ‘get_node_by_pnn’ from ‘get_nodemap’
samba-4.23.4/ctdb/tools/ctdb.c:207:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/tools/ctdb.c:207:12: branch_true: ...to here
samba-4.23.4/ctdb/tools/ctdb.c:211:32: call_function: inlined call to ‘get_node_by_pnn’ from ‘get_nodemap’
samba-4.23.4/ctdb/tools/ctdb.c:212:32: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:71:16: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:119:13: enter_function: entry to ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:129:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:134:13: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:134:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:142:32: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:142:32: acquire_memory: allocated here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:143:12: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:151:9: call_function: inlined call to ‘start_timer’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:153:15: call_function: calling ‘lock_range’ from ‘ping_pong’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:86:15: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:119:13: enter_function: entry to ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:129:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:134:13: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:134:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:142:32: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:142:32: acquire_memory: allocated here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:143:12: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:151:9: call_function: inlined call to ‘start_timer’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:153:15: call_function: calling ‘lock_range’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:153:15: return_function: returning to ‘ping_pong’ from ‘lock_range’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:154:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:154:12: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:162:21: call_function: calling ‘lock_range’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:162:21: return_function: returning to ‘ping_pong’ from ‘lock_range’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:166:20: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:167:31: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:167:31: call_function: calling ‘check_lock’ from ‘ping_pong’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:115:16: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:119:13: enter_function: entry to ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:129:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:134:13: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:134:12: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:135:21: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:136:20: branch_false: following ‘false’ branch (when ‘p != 18446744073709551615’)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:142:32: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:142:32: acquire_memory: allocated here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:143:12: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:151:9: call_function: inlined call to ‘start_timer’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:153:15: call_function: calling ‘lock_range’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:153:15: return_function: returning to ‘ping_pong’ from ‘lock_range’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:154:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:154:12: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:162:21: call_function: calling ‘lock_range’ from ‘ping_pong’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:162:21: return_function: returning to ‘ping_pong’ from ‘lock_range’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:166:20: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:167:31: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:168:28: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:172:21: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:172:20: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:174:29: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:174:28: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:175:38: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:182:20: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:183:37: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:184:28: branch_true: following ‘true’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:185:34: branch_true: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:190:21: call_function: calling ‘unlock_range’ from ‘ping_pong’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:186:36: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:230:5: enter_function: entry to ‘main’
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:262:12: branch_false: following ‘false’ branch (when ‘argc > 0’)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:267:9: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:270:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:274:13: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:274:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:289:12: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:289:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:294:21: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:295:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:300:9: branch_false: ...to here
samba-4.23.4/ctdb/utils/ping_pong/ping_pong.c:300:9: call_function: calling ‘ping_pong’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:71:16: warning[-Wanalyzer-malloc-leak]: leak of ‘key.dptr’
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:60:12: enter_function: entry to ‘get_hash_chain’
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:67:20: call_function: calling ‘hex_decode’ from ‘get_hash_chain’
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:67:20: return_function: returning to ‘get_hash_chain’ from ‘hex_decode’
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:68:12: branch_false: following ‘false’ branch...
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:71:16: throw: if ‘tdb_jenkins_hash’ throws an exception...
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c:71:16: danger: ‘key.dptr’ leaks here; was allocated at [(6)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/5)
Error: COMPILER_WARNING (CWE-477): [#def233]
samba-4.23.4/ctdb/utils/tdb/tdb_mutex_check.c: scope_hint: In function ‘check_one’
samba-4.23.4/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:540: 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.23.4/ctdb/utils/tdb/tdb_mutex_check.c:20: included_from: Included from here.
/usr/include/pthread.h:859:12: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def234]
samba-4.23.4/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
Error: COMPILER_WARNING (CWE-704): [#def235]
samba-4.23.4/lib/addns/dnsquery_srv.c: scope_hint: In function ‘ads_dns_query_srv_send’
samba-4.23.4/lib/addns/dnsquery_srv.c:348:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def236]
samba-4.23.4/lib/addns/dnsquery_srv.c:348:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def237]
samba-4.23.4/lib/cmdline/cmdline.c: scope_hint: In function ‘is_password_option’
samba-4.23.4/lib/cmdline/cmdline.c:241:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def238]
samba-4.23.4/lib/cmdline/cmdline.c:241:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def239]
samba-4.23.4/lib/cmdline/cmdline.c:245:30: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def240]
samba-4.23.4/lib/cmdline/cmdline.c:245:30: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def241]
samba-4.23.4/lib/compression/lzxpress_huffman.c:219: warning[uninitvar]: Uninitialized variable: row
Error: CPPCHECK_WARNING (CWE-786): [#def242]
samba-4.23.4/lib/dbwrap/dbwrap.c:184: error[negativeIndex]: Array 'locked_dbs[4]' accessed at index -1, which is out of bounds.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
samba-4.23.4/lib/krb5_wrap/gss_samba.c:132:32: warning[-Wanalyzer-malloc-leak]: leak of ‘keytab_element.value’
samba-4.23.4/lib/krb5_wrap/gss_samba.c:118:12: branch_false: following ‘false’ branch (when ‘id’ is NULL)...
samba-4.23.4/lib/krb5_wrap/gss_samba.c:127:12: branch_false: ...to here
samba-4.23.4/lib/krb5_wrap/gss_samba.c:127:12: branch_true: following ‘true’ branch (when ‘keytab’ is non-NULL)...
samba-4.23.4/lib/krb5_wrap/gss_samba.c:128:40: branch_true: ...to here
samba-4.23.4/lib/krb5_wrap/gss_samba.c:128:40: acquire_memory: allocated here
samba-4.23.4/lib/krb5_wrap/gss_samba.c:129:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/krb5_wrap/gss_samba.c:132:32: branch_false: ...to here
samba-4.23.4/lib/krb5_wrap/gss_samba.c:132:32: throw: if ‘krb5_kt_get_name’ throws an exception...
samba-4.23.4/lib/krb5_wrap/gss_samba.c:132:32: danger: ‘keytab_element.value’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def244]
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:2994:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:2993:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:2994:16: throw: if ‘krb5_build_principal_alloc_va’ throws an exception...
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:2994:16: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def245]
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:3529:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:3528:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:3529:9: throw: if ‘com_err_va’ throws an exception...
samba-4.23.4/lib/krb5_wrap/krb5_samba.c:3529:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def246]
samba-4.23.4/lib/krb5_wrap/krb5_samba.h:209:24: warning[-Wunused-but-set-variable=]: variable ‘key’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def247]
samba-4.23.4/lib/krb5_wrap/krb5_samba.h:212:24: warning[-Wunused-variable]: unused variable ‘ptr’
Error: COMPILER_WARNING (CWE-563): [#def248]
samba-4.23.4/lib/krb5_wrap/krb5_samba.h:213:18: warning[-Wunused-variable]: unused variable ‘len’
Error: COMPILER_WARNING (CWE-563): [#def249]
samba-4.23.4/lib/krb5_wrap/keytab_util.c:37: included_from: Included from here.
samba-4.23.4/lib/krb5_wrap/krb5_samba.h: scope_hint: In function ‘samba_trace_keytab_entry’
samba-4.23.4/lib/krb5_wrap/krb5_samba.h:213:23: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-477): [#def250]
samba-4.23.4/lib/ldb/common/ldb.c: scope_hint: In function ‘ldb_init’
samba-4.23.4/lib/ldb/common/ldb.c:121:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.23.4/lib/ldb/include/ldb.h:51: included_from: Included from here.
samba-4.23.4/lib/ldb/include/ldb_private.h:43: included_from: Included from here.
samba-4.23.4/lib/ldb/common/ldb.c:36: included_from: Included from here.
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def251]
samba-4.23.4/lib/ldb/common/ldb.c:121:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-404): [#def252]
samba-4.23.4/lib/ldb/common/ldb.c:314:27: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb.c:1504:5: enter_function: entry to ‘ldb_build_search_req’
samba-4.23.4/lib/ldb/common/ldb.c:1520:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb.c:1521:17: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb.c:1521:17: call_function: calling ‘ldb_set_errstring’ from ‘ldb_build_search_req’
Error: COMPILER_WARNING (CWE-477): [#def253]
samba-4.23.4/lib/ldb/common/ldb.c: scope_hint: In function ‘ldb_handle_new’
samba-4.23.4/lib/ldb/common/ldb.c:761:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def254]
samba-4.23.4/lib/ldb/common/ldb.c:761:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-404): [#def255]
samba-4.23.4/lib/ldb/common/ldb.c:1769:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb.c:1763:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb.c:1767:12: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb.c:1767:12: branch_true: following ‘true’ branch (when ‘exp_fmt’ is non-NULL)...
samba-4.23.4/lib/ldb/common/ldb.c:1768:17: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb.c:1768:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb.c:1769:30: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb.c:1769:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def256]
samba-4.23.4/lib/ldb/common/ldb_debug.c:93:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_debug.c:99:6: enter_function: entry to ‘ldb_debug’
samba-4.23.4/lib/ldb/common/ldb_debug.c:102:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_debug.c:103:9: call_function: calling ‘ldb_vdebug’ from ‘ldb_debug’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def257]
samba-4.23.4/lib/ldb/common/ldb_debug.c:115:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_debug.c:113:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_debug.c:114:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_debug.c:115:38: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_debug.c:115:38: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_debug.c:115:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def258]
samba-4.23.4/lib/ldb/common/ldb_debug.c:117:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_debug.c:113:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_debug.c:114:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_debug.c:117:38: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_debug.c:117:38: throw: if ‘talloc_vasprintf_append’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_debug.c:117:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def259]
samba-4.23.4/lib/ldb/common/ldb_debug.c:142:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_debug.c:141:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_debug.c:142:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_debug.c:142:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def260]
samba-4.23.4/lib/ldb/common/ldb_dn.c:1545:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_dn.c:1540:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_dn.c:1544:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_dn.c:1545:20: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_dn.c:1545:20: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def261]
samba-4.23.4/lib/ldb/common/ldb_dn.c:1674:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_dn.c:1669:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_dn.c:1673:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_dn.c:1674:21: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_dn.c:1674:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-704): [#def262]
samba-4.23.4/lib/ldb/common/ldb_ldif.c: scope_hint: In function ‘ldb_base64_decode’
samba-4.23.4/lib/ldb/common/ldb_ldif.c:117:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def263]
samba-4.23.4/lib/ldb/common/ldb_ldif.c:117:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def264]
samba-4.23.4/lib/ldb/common/ldb_ldif.c:1057:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_ldif.c:1066:7: enter_function: entry to ‘ldb_ldif_write_redacted_trace_string’
samba-4.23.4/lib/ldb/common/ldb_ldif.c:1071:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_ldif.c:1074:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_ldif.c:1074:13: call_function: calling ‘ldb_ldif_write_trace’ from ‘ldb_ldif_write_redacted_trace_string’
Error: COMPILER_WARNING (CWE-704): [#def265]
samba-4.23.4/lib/ldb/common/ldb_modules.c: scope_hint: In function ‘ldb_module_connect_backend’
samba-4.23.4/lib/ldb/common/ldb_modules.c:202:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def266]
samba-4.23.4/lib/ldb/common/ldb_modules.c:202:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
samba-4.23.4/lib/ldb/common/ldb_modules.c:1063:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(modules_dir)’
samba-4.23.4/lib/ldb/common/ldb_modules.c:1049:15: acquire_memory: allocated here
samba-4.23.4/lib/ldb/common/ldb_modules.c:1050:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_modules.c:1050:12: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_modules.c:1063:22: throw: if ‘readdir’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_modules.c:1063:22: danger: ‘opendir(modules_dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def268]
samba-4.23.4/lib/ldb/common/ldb_msg.c:597:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_msg.c:596:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_msg.c:597:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_msg.c:597:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def269]
samba-4.23.4/lib/ldb/common/ldb_msg.c:729:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/common/ldb_msg.c:728:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/common/ldb_msg.c:729:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/common/ldb_msg.c:729:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/lib/ldb/common/ldb_pack.c:555:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:562:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:612:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:617:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:617:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:621:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:621:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:626:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:628:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:642:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:642:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:643:40: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:645:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:651:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:651:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:660:20: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:660:20: branch_false: following ‘false’ branch (when ‘remaining > 9’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:669:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:670:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:674:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:674:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:680:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:684:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:688:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:691:17: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:695:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:704:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:705:20: branch_false: following ‘false’ branch (when ‘remaining > 3’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:709:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:710:29: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:715:28: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:715:28: branch_false: following ‘false’ branch (when ‘remaining > 4’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:719:25: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:722:28: branch_false: following ‘false’ branch (when ‘remaining >= len’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.23.4/lib/ldb/common/ldb_pack.c:555:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:562:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:612:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:617:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:617:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:621:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:621:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:626:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:628:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:642:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:642:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:651:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:651:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:660:20: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:660:20: branch_false: following ‘false’ branch (when ‘remaining > 9’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:669:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:670:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:674:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:674:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:680:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:684:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:688:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:691:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:692:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:695:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:695:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:704:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:705:20: branch_false: following ‘false’ branch (when ‘remaining > 3’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:709:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:710:29: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:715:28: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:715:28: branch_false: following ‘false’ branch (when ‘remaining > 4’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:719:25: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:722:28: branch_false: following ‘false’ branch (when ‘remaining >= len’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:731:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_true: following ‘true’ branch (when ‘val_len_width == 1’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:972:37: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:61: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:33: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_true: following ‘true’ branch (when ‘val_len_width == 1’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:972:37: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:61: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:33: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:973:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_true: following ‘true’ branch (when ‘val_len_width == 2’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:977:37: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:61: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:33: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def275]
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_true: following ‘true’ branch (when ‘val_len_width == 2’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:977:37: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:61: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:33: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:978:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def276]
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_false: following ‘false’ branch (when ‘val_len_width != 2’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:981:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:981:27: branch_true: following ‘true’ branch (when ‘val_len_width == 4’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:981:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:982:37: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:61: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:33: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def277]
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: following ‘false’ branch (when ‘val_len_width != 1’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:976:27: branch_false: following ‘false’ branch (when ‘val_len_width != 2’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:981:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:981:27: branch_true: following ‘true’ branch (when ‘val_len_width == 4’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:981:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:982:37: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:61: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:33: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:983:33: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*element.values’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:876:40: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:879:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:972:37: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:991:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:991:29: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:31: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:31: release_memory: ‘*element.values’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ldb_val_single_array’
samba-4.23.4/lib/ldb/common/ldb_pack.c:789:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:794:33: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:800:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:805:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:820:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:826:15: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:829:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:834:9: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:836:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:841:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:853:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:858:29: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:861:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:13: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:875:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:885:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:889:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:898:27: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:895:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:903:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:906:20: branch_false: following ‘false’ branch (when ‘attr_len != 0’)...
samba-4.23.4/lib/ldb/common/ldb_pack.c:912:22: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:919:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:21: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:924:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:929:28: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:934:17: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:935:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:939:27: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:956:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:959:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:971:20: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:972:37: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:991:17: branch_false: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:991:29: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:31: branch_true: ...to here
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:31: release_memory: ‘ldb_val_single_array’ is NULL
samba-4.23.4/lib/ldb/common/ldb_pack.c:992:25: danger: dereference of NULL ‘*element.values + (long unsigned int)j * 16’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def280]
samba-4.23.4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c:40:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c:36:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c:39:9: branch_false: ...to here
samba-4.23.4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c:39:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c:40:19: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c:40:19: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def281]
samba-4.23.4/lib/ldb/tools/ldbadd.c:58:100: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
samba-4.23.4/lib/ldb/tools/ldbadd.c:131:5: enter_function: entry to ‘main’
samba-4.23.4/lib/ldb/tools/ldbadd.c:139:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:143:19: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:146:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:151:20: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:151:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:151:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:154:26: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:155:45: branch_true: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:157:29: acquire_resource: opened here
samba-4.23.4/lib/ldb/tools/ldbadd.c:158:28: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:162:31: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:162:31: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
samba-4.23.4/lib/ldb/tools/ldbadd.c:58:100: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
samba-4.23.4/lib/ldb/tools/ldbadd.c:131:5: enter_function: entry to ‘main’
samba-4.23.4/lib/ldb/tools/ldbadd.c:139:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:143:19: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:146:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:151:20: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:151:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:151:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:154:26: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:155:45: branch_true: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:157:29: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbadd.c:158:28: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbadd.c:162:31: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbadd.c:162:31: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
samba-4.23.4/lib/ldb/tools/ldbedit.c:206:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/lib/ldb/tools/ldbedit.c:216:12: enter_function: entry to ‘do_edit’
samba-4.23.4/lib/ldb/tools/ldbedit.c:231:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:236:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:236:13: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbedit.c:238:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/lib/ldb/tools/ldbedit.c:245:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:245:13: call_function: calling ‘save_ldif’ from ‘do_edit’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def284]
samba-4.23.4/lib/ldb/tools/ldbedit.c:276:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&file_template, "r")’
samba-4.23.4/lib/ldb/tools/ldbedit.c:231:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:236:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:238:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/lib/ldb/tools/ldbedit.c:245:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:253:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:260:15: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:263:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:270:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:270:13: acquire_resource: opened here
samba-4.23.4/lib/ldb/tools/ldbedit.c:271:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:271:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:276:24: throw: if ‘ldb_ldif_read_file’ throws an exception...
samba-4.23.4/lib/ldb/tools/ldbedit.c:276:24: danger: ‘fopen(&file_template, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
samba-4.23.4/lib/ldb/tools/ldbedit.c:276:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&file_template, "r")’
samba-4.23.4/lib/ldb/tools/ldbedit.c:231:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:236:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:238:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/lib/ldb/tools/ldbedit.c:245:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:253:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:260:15: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:263:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:270:13: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:270:13: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbedit.c:271:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbedit.c:271:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbedit.c:276:24: throw: if ‘ldb_ldif_read_file’ throws an exception...
samba-4.23.4/lib/ldb/tools/ldbedit.c:276:24: danger: ‘fopen(&file_template, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def286]
samba-4.23.4/lib/ldb/tools/ldbmodify.c:57:100: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
samba-4.23.4/lib/ldb/tools/ldbmodify.c:151:5: enter_function: entry to ‘main’
samba-4.23.4/lib/ldb/tools/ldbmodify.c:159:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:163:19: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:165:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:165:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:168:26: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:169:45: branch_true: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:171:29: acquire_resource: opened here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:172:28: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:176:31: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:176:31: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
samba-4.23.4/lib/ldb/tools/ldbmodify.c:57:100: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
samba-4.23.4/lib/ldb/tools/ldbmodify.c:151:5: enter_function: entry to ‘main’
samba-4.23.4/lib/ldb/tools/ldbmodify.c:159:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:163:19: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:165:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:165:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:168:26: branch_true: following ‘true’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:169:45: branch_true: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:171:29: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:172:28: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbmodify.c:176:31: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbmodify.c:176:31: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("uid")’
samba-4.23.4/lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:9: danger: ‘strdup("uid")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
samba-4.23.4/lib/ldb/tools/ldbtest.c:345:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
samba-4.23.4/lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:345:9: danger: ‘strdup("test")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
samba-4.23.4/lib/ldb/tools/ldbtest.c:346:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
samba-4.23.4/lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:346:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:346:9: danger: ‘strdup("test")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
samba-4.23.4/lib/ldb/tools/ldbtest.c:347:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("test")’
samba-4.23.4/lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:346:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:347:40: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:347:9: danger: ‘strdup("test")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
samba-4.23.4/lib/ldb/tools/ldbtest.c:348:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("OpenLDAPperson")’
samba-4.23.4/lib/ldb/tools/ldbtest.c:327:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:332:9: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:333:45: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:335:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbtest.c:340:48: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbtest.c:345:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:346:39: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:347:40: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:348:48: acquire_memory: allocated here
samba-4.23.4/lib/ldb/tools/ldbtest.c:348:9: danger: ‘strdup("OpenLDAPperson")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def293]
samba-4.23.4/lib/ldb/tools/ldbutil.c:181:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/ldb/tools/ldbutil.c:175:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/ldb/tools/ldbutil.c:179:12: branch_false: ...to here
samba-4.23.4/lib/ldb/tools/ldbutil.c:179:12: branch_true: following ‘true’ branch (when ‘exp_fmt’ is non-NULL)...
samba-4.23.4/lib/ldb/tools/ldbutil.c:180:17: branch_true: ...to here
samba-4.23.4/lib/ldb/tools/ldbutil.c:180:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/ldb/tools/ldbutil.c:181:30: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/ldb/tools/ldbutil.c:181:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
samba-4.23.4/lib/messaging/messages_dgm.c:1665:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&*ctx.socket_dir.buf)’
samba-4.23.4/lib/messaging/messages_dgm.c:1648:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
samba-4.23.4/lib/messaging/messages_dgm.c:1660:26: branch_false: ...to here
samba-4.23.4/lib/messaging/messages_dgm.c:1660:18: acquire_memory: allocated here
samba-4.23.4/lib/messaging/messages_dgm.c:1661:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/messaging/messages_dgm.c:1661:12: branch_false: ...to here
samba-4.23.4/lib/messaging/messages_dgm.c:1665:22: throw: if ‘readdir’ throws an exception...
samba-4.23.4/lib/messaging/messages_dgm.c:1665:22: danger: ‘opendir(&*ctx.socket_dir.buf)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def295]
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
samba-4.23.4/lib/mscat/mscat_pkcs7.c:73:14: acquire_resource: opened here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:74:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:78:14: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:79:12: branch_false: following ‘false’ branch (when ‘rc == 0’)...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:14: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:88:43: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:88:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:93:22: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:95:16: throw: if ‘data_blob_talloc_zero’ throws an exception...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:14: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
samba-4.23.4/lib/mscat/mscat_pkcs7.c:73:14: acquire_memory: allocated here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:74:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:78:14: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:79:12: branch_false: following ‘false’ branch (when ‘rc == 0’)...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:14: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:88:43: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:88:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:93:22: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:95:16: throw: if ‘data_blob_talloc_zero’ throws an exception...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:83:14: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
samba-4.23.4/lib/mscat/mscat_pkcs7.c:116:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
samba-4.23.4/lib/mscat/mscat_pkcs7.c:73:14: acquire_resource: opened here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:74:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:78:14: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:116:9: throw: if ‘data_blob_free’ throws an exception...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:116:9: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
samba-4.23.4/lib/mscat/mscat_pkcs7.c:116:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
samba-4.23.4/lib/mscat/mscat_pkcs7.c:73:14: acquire_memory: allocated here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:74:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:78:14: branch_false: ...to here
samba-4.23.4/lib/mscat/mscat_pkcs7.c:116:9: throw: if ‘data_blob_free’ throws an exception...
samba-4.23.4/lib/mscat/mscat_pkcs7.c:116:9: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def299]
samba-4.23.4/lib/param/loadparm.c:626:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dest’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def300]
samba-4.23.4/lib/param/loadparm.c:630:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dest’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def301]
samba-4.23.4/lib/param/loadparm.c:648:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dest’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def302]
samba-4.23.4/lib/param/loadparm.c:652:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dest’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def303]
samba-4.23.4/lib/param/loadparm.c:1057:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
samba-4.23.4/lib/param/loadparm.c:1663:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def305]
samba-4.23.4/lib/param/loadparm.c:1674:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def306]
samba-4.23.4/lib/param/loadparm.c:1679:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:3378:13: enter_function: entry to ‘lpcfg_update’
samba-4.23.4/lib/param/loadparm.c:3387:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:3391:41: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:3393:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/param/loadparm.c:3394:17: call_function: calling ‘lpcfg_do_global_parameter’ from ‘lpcfg_update’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def307]
samba-4.23.4/lib/param/loadparm.c:1683:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
samba-4.23.4/lib/param/loadparm.c:1699:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
samba-4.23.4/lib/param/loadparm.c:1710:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
samba-4.23.4/lib/param/loadparm.c:1724:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/lib/param/loadparm.c:1994:6: enter_function: entry to ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2000:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2010:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2014:13: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2026:20: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_do_global_parameter’
samba-4.23.4/lib/param/loadparm.c:2026:20: return_function: returning to ‘lpcfg_do_global_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2028:16: call_function: calling ‘set_variable’ from ‘lpcfg_do_global_parameter’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def311]
samba-4.23.4/lib/param/loadparm.c:2117:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/param/loadparm.c:2116:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/param/loadparm.c:2117:13: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/param/loadparm.c:2117:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
samba-4.23.4/lib/param/loadparm.c:2231:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
samba-4.23.4/lib/param/loadparm.c:2240:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def314]
samba-4.23.4/lib/param/loadparm.c:2244:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
samba-4.23.4/lib/param/loadparm.c:2249:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
samba-4.23.4/lib/param/loadparm.c:2253:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
samba-4.23.4/lib/param/loadparm.c:2257:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def318]
samba-4.23.4/lib/param/loadparm.c:2290:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ptr’
samba-4.23.4/lib/param/loadparm.c:2533:6: enter_function: entry to ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2545:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2549:20: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2551:12: branch_false: following ‘false’ branch (when ‘parm_opt’ is NULL)...
samba-4.23.4/lib/param/loadparm.c:2566:9: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2569:16: call_function: calling ‘lpcfg_parm_struct’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2569:16: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_struct’
samba-4.23.4/lib/param/loadparm.c:2570:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/param/loadparm.c:2574:12: branch_false: ...to here
samba-4.23.4/lib/param/loadparm.c:2578:15: call_function: calling ‘lpcfg_parm_ptr’ from ‘lpcfg_dump_a_parameter’
samba-4.23.4/lib/param/loadparm.c:2578:15: return_function: returning to ‘lpcfg_dump_a_parameter’ from ‘lpcfg_parm_ptr’
samba-4.23.4/lib/param/loadparm.c:2580:9: call_function: calling ‘lpcfg_print_parameter’ from ‘lpcfg_dump_a_parameter’
Error: COMPILER_WARNING (CWE-704): [#def319]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘find_manufacturer_name’
samba-4.23.4/lib/printer_driver/printer_driver.c:153:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def320]
samba-4.23.4/lib/printer_driver/printer_driver.c:153:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def321]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘find_manufacturer_url’
samba-4.23.4/lib/printer_driver/printer_driver.c:208:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def322]
samba-4.23.4/lib/printer_driver/printer_driver.c:208:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def323]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘add_dependent_driver_file’
samba-4.23.4/lib/printer_driver/printer_driver.c:303:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def324]
samba-4.23.4/lib/printer_driver/printer_driver.c:303:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def325]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘enum_devices_in_toc’
samba-4.23.4/lib/printer_driver/printer_driver.c:395:35: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def326]
samba-4.23.4/lib/printer_driver/printer_driver.c:395:35: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def327]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘process_driver_section_copyfiles’
samba-4.23.4/lib/printer_driver/printer_driver.c:509:35: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def328]
samba-4.23.4/lib/printer_driver/printer_driver.c:509:35: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def329]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘process_driver_section_printprocessor’
samba-4.23.4/lib/printer_driver/printer_driver.c:587:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def330]
samba-4.23.4/lib/printer_driver/printer_driver.c:587:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def331]
samba-4.23.4/lib/printer_driver/printer_driver.c: scope_hint: In function ‘process_driver_driverver’
samba-4.23.4/lib/printer_driver/printer_driver.c:886:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def332]
samba-4.23.4/lib/printer_driver/printer_driver.c:886:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def333]
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:44:12: branch_false: following ‘false’ branch (when ‘pool’ is non-NULL)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:47:21: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:50:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: throw: if ‘pthreadpool_init’ throws an exception...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pool’
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:43:16: acquire_memory: allocated here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:44:12: branch_false: following ‘false’ branch (when ‘pool’ is non-NULL)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:47:21: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:50:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: throw: if ‘pthreadpool_init’ throws an exception...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:56:15: danger: ‘pool’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING: [#def335]
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:134:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘signal_fd’
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:117:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:121:9: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:123:9: release_resource: closed here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:130:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:134:15: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:134:15: danger: ‘signal_fd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def336]
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:139:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*pool.pipe_fds[0]’
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:117:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:121:9: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:130:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:134:15: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:135:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:139:9: branch_false: ...to here
samba-4.23.4/lib/pthreadpool/pthreadpool_pipe.c:139:9: danger: ‘*pool.pipe_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def337]
samba-4.23.4/lib/socket/interfaces.c:144:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:137:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:138:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:143:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:143:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/socket/interfaces.c:144:17: branch_true: ...to here
samba-4.23.4/lib/socket/interfaces.c:144:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:144:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def338]
samba-4.23.4/lib/socket/interfaces.c:148:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:137:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:138:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:143:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:143:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/socket/interfaces.c:148:9: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:148:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:148:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def339]
samba-4.23.4/lib/socket/interfaces.c:152:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:137:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:138:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:143:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:143:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/socket/interfaces.c:148:9: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:152:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:152:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
samba-4.23.4/lib/socket/interfaces.c:174:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:137:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:138:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:143:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:143:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/socket/interfaces.c:144:17: branch_true: ...to here
samba-4.23.4/lib/socket/interfaces.c:174:15: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:174:15: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def341]
samba-4.23.4/lib/socket/interfaces.c:192:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:185:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:186:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:191:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:191:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/socket/interfaces.c:192:17: branch_true: ...to here
samba-4.23.4/lib/socket/interfaces.c:192:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:192:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def342]
samba-4.23.4/lib/socket/interfaces.c:196:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:185:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:186:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:191:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:191:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/socket/interfaces.c:196:9: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:196:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:196:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def343]
samba-4.23.4/lib/socket/interfaces.c:200:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:185:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:186:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:191:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:191:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/socket/interfaces.c:196:9: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:200:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:200:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def344]
samba-4.23.4/lib/socket/interfaces.c:210:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/socket/interfaces.c:185:14: acquire_resource: datagram socket created here
samba-4.23.4/lib/socket/interfaces.c:186:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/socket/interfaces.c:191:13: branch_false: ...to here
samba-4.23.4/lib/socket/interfaces.c:191:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/socket/interfaces.c:192:17: branch_true: ...to here
samba-4.23.4/lib/socket/interfaces.c:210:15: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/socket/interfaces.c:210:15: danger: ‘fd’ leaks here
Error: COMPILER_WARNING (CWE-477): [#def345]
samba-4.23.4/lib/talloc/testsuite.c: scope_hint: In function ‘test_memlimit’
samba-4.23.4/lib/talloc/testsuite.c:1680:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
samba-4.23.4/lib/talloc/testsuite.c:28: included_from: Included from here.
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def346]
samba-4.23.4/lib/talloc/testsuite.c:1680:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def347]
samba-4.23.4/lib/talloc/testsuite.c:1740:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def348]
samba-4.23.4/lib/talloc/testsuite.c:1740:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def349]
samba-4.23.4/lib/talloc/testsuite.c:1753:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def350]
samba-4.23.4/lib/talloc/testsuite.c:1753:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def351]
samba-4.23.4/lib/talloc/testsuite.c:1787:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def352]
samba-4.23.4/lib/talloc/testsuite.c:1787:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def353]
samba-4.23.4/lib/talloc/testsuite.c:1820:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def354]
samba-4.23.4/lib/talloc/testsuite.c:1820:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def355]
samba-4.23.4/lib/talloc/testsuite.c:1873:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def356]
samba-4.23.4/lib/talloc/testsuite.c:1873:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def357]
samba-4.23.4/lib/talloc/testsuite.c:1885:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def358]
samba-4.23.4/lib/talloc/testsuite.c:1885:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def359]
samba-4.23.4/lib/talloc/testsuite.c:1923:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def360]
samba-4.23.4/lib/talloc/testsuite.c:1923:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def361]
samba-4.23.4/lib/talloc/testsuite.c:1944:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
/usr/include/talloc.h:1951:14: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def362]
samba-4.23.4/lib/talloc/testsuite.c:1944:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def363]
samba-4.23.4/lib/tevent/testsuite.c: scope_hint: In function ‘test_wrapper’
samba-4.23.4/lib/tevent/testsuite.c:1716:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
samba-4.23.4/lib/tevent/testsuite.c:29: included_from: Included from here.
samba-4.23.4/lib/tevent/tevent.h:2911:24: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def364]
samba-4.23.4/lib/tevent/testsuite.c:1716:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def365]
samba-4.23.4/lib/tevent/testsuite.c:1760:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
samba-4.23.4/lib/tevent/tevent.h:2990:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def366]
samba-4.23.4/lib/tevent/testsuite.c:1760:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def367]
samba-4.23.4/lib/tevent/testsuite.c:1762:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
samba-4.23.4/lib/tevent/tevent.h:2990:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def368]
samba-4.23.4/lib/tevent/testsuite.c:1762:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_push_use’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def369]
samba-4.23.4/lib/tevent/testsuite.c:1764:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
samba-4.23.4/lib/tevent/tevent.h:3019:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def370]
samba-4.23.4/lib/tevent/testsuite.c:1764:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def371]
samba-4.23.4/lib/tevent/testsuite.c:1765:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
samba-4.23.4/lib/tevent/tevent.h:3019:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def372]
samba-4.23.4/lib/tevent/testsuite.c:1765:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def373]
samba-4.23.4/lib/tevent/testsuite.c:1794:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
samba-4.23.4/lib/tevent/tevent.h:3019:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def374]
samba-4.23.4/lib/tevent/testsuite.c:1794:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_pop_use’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def375]
samba-4.23.4/lib/tevent/testsuite.c: scope_hint: In function ‘test_free_wrapper’
samba-4.23.4/lib/tevent/testsuite.c:1889:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
samba-4.23.4/lib/tevent/tevent.h:2911:24: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def376]
samba-4.23.4/lib/tevent/testsuite.c:1889:9: warning[-Wdeprecated-declarations]: ‘_tevent_context_wrapper_create’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
samba-4.23.4/lib/torture/torture.c:147:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
samba-4.23.4/lib/torture/torture.c:140:20: acquire_memory: allocated here
samba-4.23.4/lib/torture/torture.c:141:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/torture/torture.c:141:12: branch_false: ...to here
samba-4.23.4/lib/torture/torture.c:147:26: throw: if ‘readdir’ throws an exception...
samba-4.23.4/lib/torture/torture.c:147:26: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def378]
samba-4.23.4/lib/torture/torture.c:215:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/torture/torture.c:211:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/torture/torture.c:214:9: branch_false: ...to here
samba-4.23.4/lib/torture/torture.c:214:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/torture/torture.c:215:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/torture/torture.c:215:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def379]
samba-4.23.4/lib/torture/torture.c:235:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/torture/torture.c:231:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/torture/torture.c:234:9: branch_false: ...to here
samba-4.23.4/lib/torture/torture.c:234:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/torture/torture.c:235:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/torture/torture.c:235:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def380]
samba-4.23.4/lib/torture/torture.c:238:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/torture/torture.c:246:6: enter_function: entry to ‘torture_result’
samba-4.23.4/lib/torture/torture.c:250:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/torture/torture.c:253:17: branch_true: ...to here
samba-4.23.4/lib/torture/torture.c:253:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/torture/torture.c:255:20: branch_true: following ‘true’ branch...
samba-4.23.4/lib/torture/torture.c:256:25: branch_true: ...to here
samba-4.23.4/lib/torture/torture.c:256:25: call_function: calling ‘torture_warning’ from ‘torture_result’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def381]
samba-4.23.4/lib/torture/torture.c:261:40: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/torture/torture.c:250:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/torture/torture.c:253:17: branch_true: ...to here
samba-4.23.4/lib/torture/torture.c:253:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/torture/torture.c:261:40: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/torture/torture.c:261:40: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def382]
samba-4.23.4/lib/tsocket/tsocket_bsd.c:109:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/tsocket/tsocket_bsd.c:94:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:99:12: branch_false: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:99:12: branch_true: following ‘true’ branch (when ‘high_fd != 0’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:99:12: branch_true: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:100:24: branch_true: following ‘true’ branch (when ‘fd <= 2’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:101:29: branch_true: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:102:30: acquire_resource: opened here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:103:28: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:103:28: branch_false: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:108:27: branch_true: following ‘true’ branch (when ‘i < num_fds’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:109:25: branch_true: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:109:25: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:109:25: danger: ‘fd’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def383]
samba-4.23.4/lib/tsocket/tsocket_bsd.c:117:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/tsocket/tsocket_bsd.c:94:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:99:12: branch_false: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:99:12: branch_true: following ‘true’ branch (when ‘high_fd != 0’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:99:12: branch_true: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:100:24: branch_true: following ‘true’ branch (when ‘fd <= 2’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:101:29: branch_true: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:102:30: acquire_resource: opened here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:103:28: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:103:28: branch_false: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:111:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:117:18: branch_false: ...to here
samba-4.23.4/lib/tsocket/tsocket_bsd.c:117:18: throw: if ‘set_blocking’ throws an exception...
samba-4.23.4/lib/tsocket/tsocket_bsd.c:117:18: danger: ‘fd’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-704): [#def384]
samba-4.23.4/lib/util/base64.c: scope_hint: In function ‘base64_decode_data_blob_talloc’
samba-4.23.4/lib/util/base64.c:51:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def385]
samba-4.23.4/lib/util/base64.c:51:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def386]
samba-4.23.4/lib/util/charset/util_str.c: scope_hint: In function ‘strchr_m’
samba-4.23.4/lib/util/charset/util_str.c:370:24: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def387]
samba-4.23.4/lib/util/charset/util_str.c:370:24: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def388]
samba-4.23.4/lib/util/charset/util_str.c: scope_hint: In function ‘strrchr_m’
samba-4.23.4/lib/util/charset/util_str.c:418:24: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def389]
samba-4.23.4/lib/util/charset/util_str.c:418:24: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def390]
samba-4.23.4/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))
Error: CPPCHECK_WARNING (CWE-457): [#def391]
samba-4.23.4/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))
Error: CPPCHECK_WARNING (CWE-457): [#def392]
samba-4.23.4/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))
Error: CPPCHECK_WARNING (CWE-457): [#def393]
samba-4.23.4/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))
Error: CPPCHECK_WARNING (CWE-457): [#def394]
samba-4.23.4/lib/util/charset/util_unistr_w.c:155: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp))
Error: CPPCHECK_WARNING (CWE-457): [#def395]
samba-4.23.4/lib/util/charset/util_unistr_w.c:177: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cp))[0]=((const unsigned char*)(s))[0],((unsigned char*)(&cp))[1]=((const unsigned char*)(s))[1],&cp))
Error: CPPCHECK_WARNING (CWE-457): [#def396]
samba-4.23.4/lib/util/charset/util_unistr_w.c:193: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cpa))[0]=((const unsigned char*)(a))[0],((unsigned char*)(&cpa))[1]=((const unsigned char*)(a))[1],&cpa))
Error: CPPCHECK_WARNING (CWE-457): [#def397]
samba-4.23.4/lib/util/charset/util_unistr_w.c:193: error[uninitvar]: Uninitialized variable: *((((unsigned char*)(&cpb))[0]=((const unsigned char*)(b))[0],((unsigned char*)(&cpb))[1]=((const unsigned char*)(b))[1],&cpb))
Error: CPPCHECK_WARNING (CWE-457): [#def398]
samba-4.23.4/lib/util/charset/util_unistr_w.c:228: error[uninitvar]: Uninitialized variable: ret
Error: GCC_ANALYZER_WARNING: [#def399]
samba-4.23.4/lib/util/close_low_fd.c:68:15: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fd’
samba-4.23.4/lib/util/close_low_fd.c:42:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/close_low_fd.c:46:23: release_resource: closed here
samba-4.23.4/lib/util/close_low_fd.c:47:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/close_low_fd.c:51:28: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:61:12: branch_false: following ‘false’ branch (when ‘fd != dev_null’)...
samba-4.23.4/lib/util/close_low_fd.c:68:15: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:68:15: danger: ‘fd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def400]
samba-4.23.4/lib/util/close_low_fd.c:74:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
samba-4.23.4/lib/util/close_low_fd.c:57:12: branch_false: following ‘false’ branch (when ‘dev_null != -1’)...
samba-4.23.4/lib/util/close_low_fd.c:61:12: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:61:12: branch_false: following ‘false’ branch (when ‘fd != dev_null’)...
samba-4.23.4/lib/util/close_low_fd.c:68:15: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:68:15: acquire_resource: opened here
samba-4.23.4/lib/util/close_low_fd.c:69:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/lib/util/close_low_fd.c:74:9: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:74:9: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/close_low_fd.c:74:9: danger: ‘ret’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def401]
samba-4.23.4/lib/util/close_low_fd.c:76:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
samba-4.23.4/lib/util/close_low_fd.c:57:12: branch_false: following ‘false’ branch (when ‘dev_null != -1’)...
samba-4.23.4/lib/util/close_low_fd.c:61:12: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:61:12: branch_false: following ‘false’ branch (when ‘fd != dev_null’)...
samba-4.23.4/lib/util/close_low_fd.c:68:15: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:68:15: acquire_resource: opened here
samba-4.23.4/lib/util/close_low_fd.c:69:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/lib/util/close_low_fd.c:74:9: branch_false: ...to here
samba-4.23.4/lib/util/close_low_fd.c:76:1: danger: ‘ret’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
samba-4.23.4/lib/util/getpass.c:66:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
samba-4.23.4/lib/util/getpass.c:53:15: acquire_memory: allocated here
samba-4.23.4/lib/util/getpass.c:54:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
samba-4.23.4/lib/util/getpass.c:57:9: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:61:20: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/getpass.c:62:25: branch_true: ...to here
samba-4.23.4/lib/util/getpass.c:66:17: throw: if ‘fflush’ throws an exception...
samba-4.23.4/lib/util/getpass.c:66:17: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
samba-4.23.4/lib/util/getpass.c:91:25: warning[-Wanalyzer-malloc-leak]: leak of ‘key_string’
samba-4.23.4/lib/util/getpass.c:54:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
samba-4.23.4/lib/util/getpass.c:57:9: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:67:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/getpass.c:72:28: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:72:20: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
samba-4.23.4/lib/util/getpass.c:75:17: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:77:20: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/getpass.c:78:25: branch_true: ...to here
samba-4.23.4/lib/util/getpass.c:81:20: branch_true: following ‘true’ branch (when ‘verify != 0’)...
samba-4.23.4/lib/util/getpass.c:84:38: branch_true: ...to here
samba-4.23.4/lib/util/getpass.c:84:38: acquire_memory: allocated here
samba-4.23.4/lib/util/getpass.c:85:28: branch_false: following ‘false’ branch (when ‘key_string’ is non-NULL)...
samba-4.23.4/lib/util/getpass.c:88:25: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:91:25: throw: if ‘fflush’ throws an exception...
samba-4.23.4/lib/util/getpass.c:91:25: danger: ‘key_string’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
samba-4.23.4/lib/util/getpass.c:91:25: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
samba-4.23.4/lib/util/getpass.c:53:15: acquire_memory: allocated here
samba-4.23.4/lib/util/getpass.c:54:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
samba-4.23.4/lib/util/getpass.c:57:9: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:67:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/getpass.c:72:28: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:72:20: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
samba-4.23.4/lib/util/getpass.c:75:17: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:77:20: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/getpass.c:78:25: branch_true: ...to here
samba-4.23.4/lib/util/getpass.c:81:20: branch_true: following ‘true’ branch (when ‘verify != 0’)...
samba-4.23.4/lib/util/getpass.c:84:38: branch_true: ...to here
samba-4.23.4/lib/util/getpass.c:85:28: branch_false: following ‘false’ branch (when ‘key_string’ is non-NULL)...
samba-4.23.4/lib/util/getpass.c:88:25: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:91:25: throw: if ‘fflush’ throws an exception...
samba-4.23.4/lib/util/getpass.c:91:25: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
samba-4.23.4/lib/util/getpass.c:106:33: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
samba-4.23.4/lib/util/getpass.c:157:5: enter_function: entry to ‘samba_getpass’
samba-4.23.4/lib/util/getpass.c:169:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/getpass.c:173:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/getpass.c:205:17: branch_false: ...to here
samba-4.23.4/lib/util/getpass.c:208:14: call_function: calling ‘samba_gets’ from ‘samba_getpass’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def406]
samba-4.23.4/lib/util/idtree.c:261:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.23.4/lib/util/idtree.c:366:14: enter_function: entry to ‘idr_get_new_above’
samba-4.23.4/lib/util/idtree.c:368:19: call_function: calling ‘idr_get_new_above_int’ from ‘idr_get_new_above’
samba-4.23.4/lib/util/idtree.c:368:19: return_function: returning to ‘idr_get_new_above’ from ‘idr_get_new_above_int’
samba-4.23.4/lib/util/idtree.c:369:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/idtree.c:370:17: branch_true: ...to here
samba-4.23.4/lib/util/idtree.c:370:17: call_function: calling ‘idr_remove’ from ‘idr_get_new_above’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
samba-4.23.4/lib/util/modules.c:94:24: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
samba-4.23.4/lib/util/modules.c:88:15: acquire_memory: allocated here
samba-4.23.4/lib/util/modules.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/modules.c:89:12: branch_false: ...to here
samba-4.23.4/lib/util/modules.c:94:24: throw: if ‘readdir’ throws an exception...
samba-4.23.4/lib/util/modules.c:94:24: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def408]
samba-4.23.4/lib/util/params.c:111:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
samba-4.23.4/lib/util/params.c:106:13: acquire_resource: opened here
samba-4.23.4/lib/util/params.c:107:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/params.c:111:15: branch_false: ...to here
samba-4.23.4/lib/util/params.c:111:15: throw: if ‘tini_parse’ throws an exception...
samba-4.23.4/lib/util/params.c:111:15: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
samba-4.23.4/lib/util/params.c:111:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
samba-4.23.4/lib/util/params.c:106:13: acquire_memory: allocated here
samba-4.23.4/lib/util/params.c:107:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/params.c:111:15: branch_false: ...to here
samba-4.23.4/lib/util/params.c:111:15: throw: if ‘tini_parse’ throws an exception...
samba-4.23.4/lib/util/params.c:111:15: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def410]
samba-4.23.4/lib/util/pidfile.c:146:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
samba-4.23.4/lib/util/pidfile.c:146:23: release_resource: first ‘close’ here
samba-4.23.4/lib/util/pidfile.c:147:18: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/pidfile.c:146:23: danger: second ‘close’ here; first ‘close’ was at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def411]
samba-4.23.4/lib/util/smb_strtox.c: scope_hint: In function ‘smb_strtoul’
samba-4.23.4/lib/util/smb_strtox.c:83:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def412]
samba-4.23.4/lib/util/smb_strtox.c:83:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def413]
samba-4.23.4/lib/util/smb_strtox.c: scope_hint: In function ‘smb_strtoull’
samba-4.23.4/lib/util/smb_strtox.c:159:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def414]
samba-4.23.4/lib/util/smb_strtox.c:159:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def415]
samba-4.23.4/lib/util/sys_popen.c:73:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘child_end’
samba-4.23.4/lib/util/sys_popen.c:50:12: branch_false: following ‘false’ branch (when ‘argl’ is non-NULL)...
samba-4.23.4/lib/util/sys_popen.c:54:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:61:15: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:62:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.23.4/lib/util/sys_popen.c:68:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:72:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/sys_popen.c:73:17: branch_true: ...to here
samba-4.23.4/lib/util/sys_popen.c:73:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/lib/util/sys_popen.c:73:17: danger: ‘child_end’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def416]
samba-4.23.4/lib/util/sys_popen.c:73:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘parent_end’
samba-4.23.4/lib/util/sys_popen.c:50:12: branch_false: following ‘false’ branch (when ‘argl’ is non-NULL)...
samba-4.23.4/lib/util/sys_popen.c:54:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:61:15: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:62:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.23.4/lib/util/sys_popen.c:68:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:72:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/sys_popen.c:73:17: branch_true: ...to here
samba-4.23.4/lib/util/sys_popen.c:73:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/lib/util/sys_popen.c:73:17: danger: ‘parent_end’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def417]
samba-4.23.4/lib/util/sys_popen.c:132:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘child_end’
samba-4.23.4/lib/util/sys_popen.c:50:12: branch_false: following ‘false’ branch (when ‘argl’ is non-NULL)...
samba-4.23.4/lib/util/sys_popen.c:54:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:61:15: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:62:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.23.4/lib/util/sys_popen.c:68:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:72:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/sys_popen.c:73:17: branch_true: ...to here
samba-4.23.4/lib/util/sys_popen.c:131:9: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:132:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:132:9: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/sys_popen.c:132:9: danger: ‘child_end’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def418]
samba-4.23.4/lib/util/sys_popen.c:132:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘parent_end’
samba-4.23.4/lib/util/sys_popen.c:50:12: branch_false: following ‘false’ branch (when ‘argl’ is non-NULL)...
samba-4.23.4/lib/util/sys_popen.c:54:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:61:15: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:62:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.23.4/lib/util/sys_popen.c:68:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:72:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/sys_popen.c:73:17: branch_true: ...to here
samba-4.23.4/lib/util/sys_popen.c:131:9: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:132:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:132:9: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/sys_popen.c:132:9: danger: ‘parent_end’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def419]
samba-4.23.4/lib/util/sys_popen.c:133:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘child_end’
samba-4.23.4/lib/util/sys_popen.c:50:12: branch_false: following ‘false’ branch (when ‘argl’ is non-NULL)...
samba-4.23.4/lib/util/sys_popen.c:54:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:61:15: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:62:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.23.4/lib/util/sys_popen.c:68:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:72:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/sys_popen.c:73:17: branch_true: ...to here
samba-4.23.4/lib/util/sys_popen.c:131:9: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/sys_popen.c:132:9: branch_false: ...to here
samba-4.23.4/lib/util/sys_popen.c:133:9: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/sys_popen.c:133:9: danger: ‘child_end’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def420]
samba-4.23.4/lib/util/talloc_report.c:50:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/util/talloc_report.c:97:14: enter_function: entry to ‘talloc_asprintf_append_largebuf’
samba-4.23.4/lib/util/talloc_report.c:102:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/util/talloc_report.c:103:15: call_function: calling ‘talloc_vasprintf_append_largebuf’ from ‘talloc_asprintf_append_largebuf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
samba-4.23.4/lib/util/talloc_stack.c:116:42: warning[-Wanalyzer-malloc-leak]: leak of ‘talloc_stackframe_get()’
samba-4.23.4/lib/util/talloc_stack.c:223:20: enter_function: entry to ‘talloc_stackframe_internal’
samba-4.23.4/lib/util/talloc_stack.c:227:40: call_function: calling ‘talloc_stackframe_get’ from ‘talloc_stackframe_internal’
samba-4.23.4/lib/util/talloc_stack.c:227:40: return_function: returning to ‘talloc_stackframe_internal’ from ‘talloc_stackframe_get’
samba-4.23.4/lib/util/talloc_stack.c:229:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/talloc_stack.c:230:23: branch_true: ...to here
samba-4.23.4/lib/util/talloc_stack.c:232:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/talloc_stack.c:235:17: branch_false: ...to here
samba-4.23.4/lib/util/talloc_stack.c:239:12: branch_true: following ‘true’ branch (when ‘poolsize != 0’)...
samba-4.23.4/lib/util/talloc_stack.c:240:35: branch_true: ...to here
samba-4.23.4/lib/util/talloc_stack.c:240:23: throw: if ‘talloc_pool’ throws an exception...
samba-4.23.4/lib/util/talloc_stack.c:116:42: danger: ‘talloc_stackframe_get()’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
samba-4.23.4/lib/util/talloc_stack.c:151:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ts’
samba-4.23.4/lib/util/talloc_stack.c:131:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/talloc_stack.c:140:42: branch_false: ...to here
samba-4.23.4/lib/util/talloc_stack.c:140:42: acquire_memory: allocated here
samba-4.23.4/lib/util/talloc_stack.c:145:12: branch_false: following ‘false’ branch (when ‘ts’ is non-NULL)...
samba-4.23.4/lib/util/talloc_stack.c:150:15: branch_false: ...to here
samba-4.23.4/lib/util/talloc_stack.c:151:9: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/talloc_stack.c:151:9: branch_true: ...to here
samba-4.23.4/lib/util/talloc_stack.c:151:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/lib/util/talloc_stack.c:151:9: danger: ‘ts’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
samba-4.23.4/lib/util/tfork.c:160:23: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
samba-4.23.4/lib/util/tfork.c:737:15: enter_function: entry to ‘tfork_create’
samba-4.23.4/lib/util/tfork.c:749:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tfork.c:756:17: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:757:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tfork.c:760:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:766:13: acquire_memory: allocated here
samba-4.23.4/lib/util/tfork.c:767:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:772:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:779:15: call_function: calling ‘tfork_install_sigchld_handler’ from ‘tfork_create’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def424]
samba-4.23.4/lib/util/tfork.c:495:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
samba-4.23.4/lib/util/tfork.c:476:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:480:15: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:481:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:484:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:490:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:495:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:495:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/lib/util/tfork.c:495:9: danger: ‘p[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def425]
samba-4.23.4/lib/util/tfork.c:495:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
samba-4.23.4/lib/util/tfork.c:476:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:480:15: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:481:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:484:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:490:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:495:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:495:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/lib/util/tfork.c:495:9: danger: ‘p[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def426]
samba-4.23.4/lib/util/tfork.c:509:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
samba-4.23.4/lib/util/tfork.c:476:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:480:15: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:481:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:484:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:490:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:495:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:502:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:509:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:509:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/lib/util/tfork.c:509:9: danger: ‘p[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def427]
samba-4.23.4/lib/util/tfork.c:509:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
samba-4.23.4/lib/util/tfork.c:476:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:480:15: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:481:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:484:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:490:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:495:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:502:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:509:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:509:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/lib/util/tfork.c:509:9: danger: ‘p[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def428]
samba-4.23.4/lib/util/tfork.c:654:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/lib/util/tfork.c:476:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:480:15: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:481:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:484:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:490:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:495:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:502:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/lib/util/tfork.c:509:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:515:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/lib/util/tfork.c:524:12: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:524:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/lib/util/tfork.c:575:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:584:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/lib/util/tfork.c:588:12: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:588:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
samba-4.23.4/lib/util/tfork.c:607:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:619:12: branch_false: following ‘false’ branch (when ‘event_pipe_waiter_fd <= 0’)...
samba-4.23.4/lib/util/tfork.c:638:12: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:638:12: branch_true: following ‘true’ branch (when ‘status_sp_waiter_fd > 1’)...
samba-4.23.4/lib/util/tfork.c:638:12: branch_true: ...to here
samba-4.23.4/lib/util/tfork.c:640:30: acquire_resource: opened here
samba-4.23.4/lib/util/tfork.c:642:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/lib/util/tfork.c:651:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:654:20: throw: if ‘sys_write’ throws an exception...
samba-4.23.4/lib/util/tfork.c:654:20: danger: ‘fd’ leaks here; was opened at [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
samba-4.23.4/lib/util/tfork.c:730:23: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
samba-4.23.4/lib/util/tfork.c:737:15: enter_function: entry to ‘tfork_create’
samba-4.23.4/lib/util/tfork.c:749:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tfork.c:756:17: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:757:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tfork.c:760:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:766:13: acquire_memory: allocated here
samba-4.23.4/lib/util/tfork.c:767:12: branch_false: following ‘false’ branch (when ‘t’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:772:9: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:780:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/tfork.c:781:17: branch_true: ...to here
samba-4.23.4/lib/util/tfork.c:809:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/tfork.c:810:31: branch_true: ...to here
samba-4.23.4/lib/util/tfork.c:812:20: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
samba-4.23.4/lib/util/tfork.c:813:29: branch_true: ...to here
samba-4.23.4/lib/util/tfork.c:813:28: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tfork.c:816:29: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:816:28: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tfork.c:820:32: branch_false: ...to here
samba-4.23.4/lib/util/tfork.c:820:32: call_function: calling ‘tfork_create_reap_waiter’ from ‘tfork_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
samba-4.23.4/lib/util/tftw.c:52:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(fpath)’
samba-4.23.4/lib/util/tftw.c:37:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tftw.c:42:19: branch_false: ...to here
samba-4.23.4/lib/util/tftw.c:42:19: acquire_memory: allocated here
samba-4.23.4/lib/util/tftw.c:42:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tftw.c:42:12: branch_false: ...to here
samba-4.23.4/lib/util/tftw.c:52:26: throw: if ‘readdir’ throws an exception...
samba-4.23.4/lib/util/tftw.c:52:26: danger: ‘opendir(fpath)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
samba-4.23.4/lib/util/tini.c:59:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/lib/util/tini.c:267:6: enter_function: entry to ‘tini_parse’
samba-4.23.4/lib/util/tini.c:279:15: acquire_memory: allocated here
samba-4.23.4/lib/util/tini.c:280:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tini.c:280:12: branch_false: ...to here
samba-4.23.4/lib/util/tini.c:288:23: call_function: calling ‘get_line’ from ‘tini_parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
samba-4.23.4/lib/util/tini.c:59:42: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/lib/util/tini.c:267:6: enter_function: entry to ‘tini_parse’
samba-4.23.4/lib/util/tini.c:279:15: acquire_memory: allocated here
samba-4.23.4/lib/util/tini.c:280:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tini.c:280:12: branch_false: ...to here
samba-4.23.4/lib/util/tini.c:288:23: call_function: calling ‘get_line’ from ‘tini_parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
samba-4.23.4/lib/util/tini.c:75:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/lib/util/tini.c:267:6: enter_function: entry to ‘tini_parse’
samba-4.23.4/lib/util/tini.c:279:15: acquire_memory: allocated here
samba-4.23.4/lib/util/tini.c:280:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tini.c:280:12: branch_false: ...to here
samba-4.23.4/lib/util/tini.c:288:23: call_function: calling ‘get_line’ from ‘tini_parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
samba-4.23.4/lib/util/tini.c:75:42: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/lib/util/tini.c:267:6: enter_function: entry to ‘tini_parse’
samba-4.23.4/lib/util/tini.c:279:15: acquire_memory: allocated here
samba-4.23.4/lib/util/tini.c:280:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tini.c:280:12: branch_false: ...to here
samba-4.23.4/lib/util/tini.c:288:23: call_function: calling ‘get_line’ from ‘tini_parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
samba-4.23.4/lib/util/tini.c:144:32: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/lib/util/tini.c:267:6: enter_function: entry to ‘tini_parse’
samba-4.23.4/lib/util/tini.c:279:15: acquire_memory: allocated here
samba-4.23.4/lib/util/tini.c:280:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tini.c:280:12: branch_false: ...to here
samba-4.23.4/lib/util/tini.c:288:23: call_function: calling ‘get_line’ from ‘tini_parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
samba-4.23.4/lib/util/tiniparser.c:257:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/lib/util/tiniparser.c:208:12: branch_false: following ‘false’ branch (when ‘section’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:211:12: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:211:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:214:12: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:214:12: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:218:19: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:222:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:235:17: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:236:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:239:22: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:239:22: acquire_memory: allocated here
samba-4.23.4/lib/util/tiniparser.c:240:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:244:9: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:247:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:252:9: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:257:1: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
samba-4.23.4/lib/util/tiniparser.c:257:1: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
samba-4.23.4/lib/util/tiniparser.c:208:12: branch_false: following ‘false’ branch (when ‘section’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:211:12: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:211:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:214:12: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:214:12: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:218:19: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:222:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:235:17: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:235:17: acquire_memory: allocated here
samba-4.23.4/lib/util/tiniparser.c:236:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:239:22: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:240:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:244:9: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:247:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:252:9: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:257:1: danger: ‘entry’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def438]
samba-4.23.4/lib/util/tiniparser.c:335:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
samba-4.23.4/lib/util/tiniparser.c:347:31: enter_function: entry to ‘tiniparser_load’
samba-4.23.4/lib/util/tiniparser.c:350:20: acquire_resource: opened here
samba-4.23.4/lib/util/tiniparser.c:352:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:356:13: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:356:13: call_function: calling ‘tiniparser_load_stream’ from ‘tiniparser_load’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
samba-4.23.4/lib/util/tiniparser.c:335:15: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
samba-4.23.4/lib/util/tiniparser.c:329:13: acquire_memory: allocated here
samba-4.23.4/lib/util/tiniparser.c:330:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
samba-4.23.4/lib/util/tiniparser.c:333:9: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:335:15: throw: if ‘tini_parse’ throws an exception...
samba-4.23.4/lib/util/tiniparser.c:335:15: danger: ‘d’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
samba-4.23.4/lib/util/tiniparser.c:335:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
samba-4.23.4/lib/util/tiniparser.c:347:31: enter_function: entry to ‘tiniparser_load’
samba-4.23.4/lib/util/tiniparser.c:350:20: acquire_memory: allocated here
samba-4.23.4/lib/util/tiniparser.c:352:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/tiniparser.c:356:13: branch_false: ...to here
samba-4.23.4/lib/util/tiniparser.c:356:13: call_function: calling ‘tiniparser_load_stream’ from ‘tiniparser_load’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def441]
samba-4.23.4/lib/util/util.c:677:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf1’ where non-null expected
samba-4.23.4/lib/util/util.c:641:19: branch_true: following ‘true’ branch (when ‘i < len’)...
samba-4.23.4/lib/util/util.c:642:24: branch_true: ...to here
samba-4.23.4/lib/util/util.c:650:20: branch_false: following ‘false’ branch (when ‘i >= len1’)...
samba-4.23.4/lib/util/util.c:655:20: branch_false: ...to here
samba-4.23.4/lib/util/util.c:655:20: branch_false: following ‘false’ branch (when ‘i >= len2’)...
samba-4.23.4/lib/util/util.c:662:21: branch_false: ...to here
samba-4.23.4/lib/util/util.c:661:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util.c:676:20: branch_false: ...to here
samba-4.23.4/lib/util/util.c:676:20: branch_true: following ‘true’ branch (when ‘this_len1 == this_len2’)...
samba-4.23.4/lib/util/util.c:677:22: branch_true: ...to here
samba-4.23.4/lib/util/util.c:677:22: danger: argument 1 (‘this_buf1’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def442]
samba-4.23.4/lib/util/util.c:677:22: warning[-Wanalyzer-null-argument]: use of NULL ‘this_buf2’ where non-null expected
samba-4.23.4/lib/util/util.c:641:19: branch_true: following ‘true’ branch (when ‘i < len’)...
samba-4.23.4/lib/util/util.c:642:24: branch_true: ...to here
samba-4.23.4/lib/util/util.c:650:20: branch_false: following ‘false’ branch (when ‘i >= len1’)...
samba-4.23.4/lib/util/util.c:655:20: branch_false: ...to here
samba-4.23.4/lib/util/util.c:655:20: branch_false: following ‘false’ branch (when ‘i >= len2’)...
samba-4.23.4/lib/util/util.c:662:21: branch_false: ...to here
samba-4.23.4/lib/util/util.c:661:20: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util.c:676:20: branch_false: ...to here
samba-4.23.4/lib/util/util.c:676:20: branch_true: following ‘true’ branch (when ‘this_len1 == this_len2’)...
samba-4.23.4/lib/util/util.c:677:22: branch_true: ...to here
samba-4.23.4/lib/util/util.c:677:22: danger: argument 2 (‘this_buf2’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def443]
samba-4.23.4/lib/util/util_file.c:193:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
samba-4.23.4/lib/util/util_file.c:236:16: enter_function: entry to ‘file_load’
samba-4.23.4/lib/util/util_file.c:243:14: acquire_resource: opened here
samba-4.23.4/lib/util/util_file.c:244:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_file.c:246:13: branch_false: ...to here
samba-4.23.4/lib/util/util_file.c:246:13: call_function: calling ‘fd_load’ from ‘file_load’
samba-4.23.4/lib/util/util_file.c:246:13: return_function: returning to ‘file_load’ from ‘fd_load’
samba-4.23.4/lib/util/util_file.c:193:25: danger: ‘open(fname, 0)’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
samba-4.23.4/lib/util/util_file.c:218:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
samba-4.23.4/lib/util/util_file.c:172:16: enter_function: entry to ‘fd_load’
samba-4.23.4/lib/util/util_file.c:184:16: call_function: calling ‘fdopen_keepfd’ from ‘fd_load’
samba-4.23.4/lib/util/util_file.c:184:16: return_function: returning to ‘fd_load’ from ‘fdopen_keepfd’
samba-4.23.4/lib/util/util_file.c:185:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_file.c:185:12: branch_false: ...to here
samba-4.23.4/lib/util/util_file.c:189:16: branch_false: following ‘false’ branch (when ‘maxsize <= size’)...
samba-4.23.4/lib/util/util_file.c:213:15: branch_false: ...to here
samba-4.23.4/lib/util/util_file.c:214:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
samba-4.23.4/lib/util/util_file.c:218:10: branch_false: ...to here
samba-4.23.4/lib/util/util_file.c:218:10: release_memory: ‘p’ is NULL
samba-4.23.4/lib/util/util_file.c:218:9: danger: dereference of NULL ‘p + size’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def445]
samba-4.23.4/lib/util/util_file.c:248:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
samba-4.23.4/lib/util/util_file.c:236:16: enter_function: entry to ‘file_load’
samba-4.23.4/lib/util/util_file.c:243:14: acquire_resource: opened here
samba-4.23.4/lib/util/util_file.c:244:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_file.c:246:13: branch_false: ...to here
samba-4.23.4/lib/util/util_file.c:246:13: call_function: calling ‘fd_load’ from ‘file_load’
samba-4.23.4/lib/util/util_file.c:246:13: return_function: returning to ‘file_load’ from ‘fd_load’
samba-4.23.4/lib/util/util_file.c:248:9: danger: ‘open(fname, 0)’ leaks here; was opened at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def446]
samba-4.23.4/lib/util/util_file.c:513:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
samba-4.23.4/lib/util/util_file.c:236:16: enter_function: entry to ‘file_load’
samba-4.23.4/lib/util/util_file.c:243:14: acquire_resource: opened here
samba-4.23.4/lib/util/util_file.c:244:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_file.c:246:13: branch_false: ...to here
samba-4.23.4/lib/util/util_file.c:246:13: call_function: calling ‘fd_load’ from ‘file_load’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def447]
samba-4.23.4/lib/util/util_ldb.c:45:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/util/util_ldb.c:86:5: enter_function: entry to ‘gendb_search’
samba-4.23.4/lib/util/util_ldb.c:96:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/util/util_ldb.c:97:17: call_function: calling ‘gendb_search_v’ from ‘gendb_search’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def448]
samba-4.23.4/lib/util/util_ldb.c:55:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/util/util_ldb.c:86:5: enter_function: entry to ‘gendb_search’
samba-4.23.4/lib/util/util_ldb.c:96:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/util/util_ldb.c:97:17: call_function: calling ‘gendb_search_v’ from ‘gendb_search’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def449]
samba-4.23.4/lib/util/util_ldb.c:59:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/util/util_ldb.c:86:5: enter_function: entry to ‘gendb_search’
samba-4.23.4/lib/util/util_ldb.c:96:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/util/util_ldb.c:97:17: call_function: calling ‘gendb_search_v’ from ‘gendb_search’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def450]
samba-4.23.4/lib/util/util_runcmd.c:128:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:128:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:128:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:128:17: danger: ‘p1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def451]
samba-4.23.4/lib/util/util_runcmd.c:128:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:128:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:128:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:128:17: danger: ‘p1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def452]
samba-4.23.4/lib/util/util_runcmd.c:129:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:128:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:129:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:129:17: danger: ‘p1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def453]
samba-4.23.4/lib/util/util_runcmd.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:134:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:134:17: danger: ‘p1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def454]
samba-4.23.4/lib/util/util_runcmd.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:134:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:134:17: danger: ‘p1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def455]
samba-4.23.4/lib/util/util_runcmd.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:134:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:134:17: danger: ‘p2[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def456]
samba-4.23.4/lib/util/util_runcmd.c:134:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:134:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:134:17: danger: ‘p2[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def457]
samba-4.23.4/lib/util/util_runcmd.c:135:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:135:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:135:17: danger: ‘p1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def458]
samba-4.23.4/lib/util/util_runcmd.c:135:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:135:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:135:17: danger: ‘p2[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def459]
samba-4.23.4/lib/util/util_runcmd.c:135:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:135:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:135:17: danger: ‘p2[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def460]
samba-4.23.4/lib/util/util_runcmd.c:136:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:136:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:136:17: danger: ‘p2[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def461]
samba-4.23.4/lib/util/util_runcmd.c:136:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:136:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:136:17: danger: ‘p2[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def462]
samba-4.23.4/lib/util/util_runcmd.c:137:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_true: following ‘true’ branch...
samba-4.23.4/lib/util/util_runcmd.c:134:17: branch_true: ...to here
samba-4.23.4/lib/util/util_runcmd.c:137:17: throw: if ‘close’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:137:17: danger: ‘p2[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def463]
samba-4.23.4/lib/util/util_runcmd.c:142:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:142:24: throw: if ‘tfork_create’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:142:24: danger: ‘p1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def464]
samba-4.23.4/lib/util/util_runcmd.c:142:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p1[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:142:24: throw: if ‘tfork_create’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:142:24: danger: ‘p1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def465]
samba-4.23.4/lib/util/util_runcmd.c:142:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:142:24: throw: if ‘tfork_create’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:142:24: danger: ‘p2[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def466]
samba-4.23.4/lib/util/util_runcmd.c:142:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p2[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:142:24: throw: if ‘tfork_create’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:142:24: danger: ‘p2[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def467]
samba-4.23.4/lib/util/util_runcmd.c:142:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p3[0]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:142:24: throw: if ‘tfork_create’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:142:24: danger: ‘p3[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def468]
samba-4.23.4/lib/util/util_runcmd.c:142:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p3[1]’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:142:24: throw: if ‘tfork_create’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:142:24: danger: ‘p3[1]’ leaks here
Error: GCC_ANALYZER_WARNING: [#def469]
samba-4.23.4/lib/util/util_runcmd.c:235:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:226:9: release_resource: closed here
samba-4.23.4/lib/util/util_runcmd.c:235:9: danger: ‘0’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def470]
samba-4.23.4/lib/util/util_runcmd.c:236:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:227:9: release_resource: closed here
samba-4.23.4/lib/util/util_runcmd.c:236:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def471]
samba-4.23.4/lib/util/util_runcmd.c:237:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:228:9: release_resource: closed here
samba-4.23.4/lib/util/util_runcmd.c:237:9: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-404): [#def472]
samba-4.23.4/lib/util/util_runcmd.c:255:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/util/util_runcmd.c:104:12: branch_false: following ‘false’ branch (when ‘argv0’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:108:15: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:110:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:114:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:123:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:127:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:133:13: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:133:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:142:14: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:143:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:153:22: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:154:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:223:9: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:244:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_runcmd.c:249:9: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:249:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/util/util_runcmd.c:253:20: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
samba-4.23.4/lib/util/util_runcmd.c:255:21: branch_false: ...to here
samba-4.23.4/lib/util/util_runcmd.c:255:21: throw: if ‘str_list_add’ throws an exception...
samba-4.23.4/lib/util/util_runcmd.c:255:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(22)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def473]
samba-4.23.4/lib/util/util_strlist.c:340:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/lib/util/util_strlist.c:320:6: enter_function: entry to ‘str_list_add_printf’
samba-4.23.4/lib/util/util_strlist.c:327:12: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
samba-4.23.4/lib/util/util_strlist.c:330:15: branch_false: ...to here
samba-4.23.4/lib/util/util_strlist.c:330:15: call_function: calling ‘str_list_length’ from ‘str_list_add_printf’
samba-4.23.4/lib/util/util_strlist.c:330:15: return_function: returning to ‘str_list_add_printf’ from ‘str_list_length’
samba-4.23.4/lib/util/util_strlist.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/lib/util/util_strlist.c:337:14: branch_false: ...to here
samba-4.23.4/lib/util/util_strlist.c:339:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/lib/util/util_strlist.c:340:21: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/lib/util/util_strlist.c:340:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def474]
samba-4.23.4/libcli/auth/msrpc_parse.c:75:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:60:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:63:19: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:64:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:69:9: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:69:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:70:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:71:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:75:31: throw: if ‘push_ucs2_talloc’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:75:31: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def475]
samba-4.23.4/libcli/auth/msrpc_parse.c:90:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:60:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:63:19: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:64:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:69:9: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:69:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:70:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:71:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:90:31: throw: if ‘push_ascii_talloc’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:90:31: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def476]
samba-4.23.4/libcli/auth/msrpc_parse.c:259:39: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:252:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:253:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:258:28: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:259:39: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:259:39: throw: if ‘talloc_strdup’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:259:39: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def477]
samba-4.23.4/libcli/auth/msrpc_parse.c:283:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:252:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:253:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:258:28: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:268:36: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:268:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:272:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:277:37: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:277:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:283:38: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:283:38: throw: if ‘convert_string_talloc’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:283:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def478]
samba-4.23.4/libcli/auth/msrpc_parse.c:300:39: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:292:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:293:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:299:28: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:300:39: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:300:39: throw: if ‘talloc_strdup’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:300:39: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def479]
samba-4.23.4/libcli/auth/msrpc_parse.c:320:46: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:292:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:293:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:299:28: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:306:36: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:306:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:311:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:317:36: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:317:36: branch_true: following ‘true’ branch (when ‘len1 != 0’)...
samba-4.23.4/libcli/auth/msrpc_parse.c:320:46: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:320:46: throw: if ‘convert_string_talloc’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:320:46: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def480]
samba-4.23.4/libcli/auth/msrpc_parse.c:327:47: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:292:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:293:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:299:28: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:306:36: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:306:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:311:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:317:36: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:317:36: branch_false: following ‘false’ branch (when ‘len1 == 0’)...
samba-4.23.4/libcli/auth/msrpc_parse.c:327:47: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:327:47: throw: if ‘talloc_strdup’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:327:47: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def481]
samba-4.23.4/libcli/auth/msrpc_parse.c:343:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:336:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:337:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:342:28: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:343:38: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:343:38: throw: if ‘data_blob_talloc_named’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:343:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def482]
samba-4.23.4/libcli/auth/msrpc_parse.c:357:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:336:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:337:32: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:342:28: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:346:36: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:346:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:351:36: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:357:38: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:357:38: throw: if ‘data_blob_talloc_named’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:357:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def483]
samba-4.23.4/libcli/auth/msrpc_parse.c:371:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/auth/msrpc_parse.c:248:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/libcli/auth/msrpc_parse.c:249:19: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:250:17: branch_true: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:364:25: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:365:29: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:365:28: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:366:41: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:365:29: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/auth/msrpc_parse.c:371:30: branch_false: ...to here
samba-4.23.4/libcli/auth/msrpc_parse.c:371:30: throw: if ‘data_blob_talloc_named’ throws an exception...
samba-4.23.4/libcli/auth/msrpc_parse.c:371:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def484]
samba-4.23.4/libcli/auth/netlogon_creds_cli.c: scope_hint: In function ‘netlogon_creds_cli_context_common’
samba-4.23.4/libcli/auth/netlogon_creds_cli.c:172:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def485]
samba-4.23.4/libcli/auth/netlogon_creds_cli.c:172:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-563): [#def486]
samba-4.23.4/libcli/auth/smbencrypt.c: scope_hint: In function ‘decode_pw_buffer’
samba-4.23.4/libcli/auth/smbencrypt.c:1449:13: warning[-Wunused-variable]: unused variable ‘byte_len’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def487]
samba-4.23.4/libcli/dns/dns_lookup.c:89:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/libcli/dns/dns_lookup.c:62:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/dns/dns_lookup.c:65:14: branch_false: ...to here
samba-4.23.4/libcli/dns/dns_lookup.c:70:12: branch_true: following ‘true’ branch (when ‘resolv_conf_fp’ is NULL)...
samba-4.23.4/libcli/dns/dns_lookup.c:82:22: branch_true: ...to here
samba-4.23.4/libcli/dns/dns_lookup.c:82:22: acquire_resource: opened here
samba-4.23.4/libcli/dns/dns_lookup.c:83:20: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/dns/dns_lookup.c:93:23: branch_false: ...to here
samba-4.23.4/libcli/dns/dns_lookup.c:89:15: throw: if ‘parse_resolvconf_fp’ throws an exception...
samba-4.23.4/libcli/dns/dns_lookup.c:89:15: danger: ‘fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
samba-4.23.4/libcli/dns/dns_lookup.c:89:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/libcli/dns/dns_lookup.c:62:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/dns/dns_lookup.c:65:14: branch_false: ...to here
samba-4.23.4/libcli/dns/dns_lookup.c:70:12: branch_true: following ‘true’ branch (when ‘resolv_conf_fp’ is NULL)...
samba-4.23.4/libcli/dns/dns_lookup.c:82:22: branch_true: ...to here
samba-4.23.4/libcli/dns/dns_lookup.c:82:22: acquire_memory: allocated here
samba-4.23.4/libcli/dns/dns_lookup.c:83:20: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/dns/dns_lookup.c:93:23: branch_false: ...to here
samba-4.23.4/libcli/dns/dns_lookup.c:89:15: throw: if ‘parse_resolvconf_fp’ throws an exception...
samba-4.23.4/libcli/dns/dns_lookup.c:89:15: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def489]
samba-4.23.4/libcli/nbt/lmhosts.c:69:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘startlmhosts(lmhosts_file)’
samba-4.23.4/libcli/nbt/lmhosts.c:163:10: enter_function: entry to ‘resolve_lmhosts_file_as_sockaddr’
samba-4.23.4/libcli/nbt/lmhosts.c:187:14: call_function: calling ‘startlmhosts’ from ‘resolve_lmhosts_file_as_sockaddr’
samba-4.23.4/libcli/nbt/lmhosts.c:187:14: return_function: returning to ‘resolve_lmhosts_file_as_sockaddr’ from ‘startlmhosts’
samba-4.23.4/libcli/nbt/lmhosts.c:189:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/nbt/lmhosts.c:192:15: branch_false: ...to here
samba-4.23.4/libcli/nbt/lmhosts.c:193:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/nbt/lmhosts.c:193:12: branch_false: ...to here
samba-4.23.4/libcli/nbt/lmhosts.c:198:16: call_function: calling ‘getlmhostsent’ from ‘resolve_lmhosts_file_as_sockaddr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
samba-4.23.4/libcli/nbt/lmhosts.c:69:22: warning[-Wanalyzer-malloc-leak]: leak of ‘startlmhosts(lmhosts_file)’
samba-4.23.4/libcli/nbt/lmhosts.c:163:10: enter_function: entry to ‘resolve_lmhosts_file_as_sockaddr’
samba-4.23.4/libcli/nbt/lmhosts.c:187:14: call_function: calling ‘startlmhosts’ from ‘resolve_lmhosts_file_as_sockaddr’
samba-4.23.4/libcli/nbt/lmhosts.c:187:14: return_function: returning to ‘resolve_lmhosts_file_as_sockaddr’ from ‘startlmhosts’
samba-4.23.4/libcli/nbt/lmhosts.c:189:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/nbt/lmhosts.c:192:15: branch_false: ...to here
samba-4.23.4/libcli/nbt/lmhosts.c:193:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/nbt/lmhosts.c:193:12: branch_false: ...to here
samba-4.23.4/libcli/nbt/lmhosts.c:198:16: call_function: calling ‘getlmhostsent’ from ‘resolve_lmhosts_file_as_sockaddr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def491]
samba-4.23.4/libcli/nbt/namequery.c:83:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.23.4/libcli/nbt/namequery.c:129:19: enter_function: entry to ‘nbt_name_query’
samba-4.23.4/libcli/nbt/namequery.c:133:16: call_function: calling ‘nbt_name_query_recv’ from ‘nbt_name_query’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def492]
samba-4.23.4/libcli/nbt/namequery.c:187:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.23.4/libcli/nbt/namequery.c:227:19: enter_function: entry to ‘nbt_name_status’
samba-4.23.4/libcli/nbt/namequery.c:231:16: call_function: calling ‘nbt_name_status_recv’ from ‘nbt_name_status’
Error: COMPILER_WARNING (CWE-704): [#def493]
samba-4.23.4/libcli/nbt/tools/nmblookup.c: scope_hint: In function ‘process_one’
samba-4.23.4/libcli/nbt/tools/nmblookup.c:212:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def494]
samba-4.23.4/libcli/nbt/tools/nmblookup.c:212:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def495]
samba-4.23.4/libcli/security/sddl_conditional_ace.c:1285:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/libcli/security/sddl_conditional_ace.c:2704:13: enter_function: entry to ‘parse_paren_literal’
samba-4.23.4/libcli/security/sddl_conditional_ace.c:2707:12: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/security/sddl_conditional_ace.c:2708:17: branch_true: ...to here
samba-4.23.4/libcli/security/sddl_conditional_ace.c:2708:17: call_function: calling ‘comp_error’ from ‘parse_paren_literal’
Error: CPPCHECK_WARNING (CWE-562): [#def496]
samba-4.23.4/libcli/security/sddl_conditional_ace.c:2642: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def497]
samba-4.23.4/libcli/security/sddl_conditional_ace.c:3014: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
samba-4.23.4/libcli/smb/py_reparse_symlink.c:183:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/libcli/smb/py_reparse_symlink.c:173:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/py_reparse_symlink.c:176:9: branch_false: ...to here
samba-4.23.4/libcli/smb/py_reparse_symlink.c:181:12: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/smb/py_reparse_symlink.c:182:23: branch_true: ...to here
samba-4.23.4/libcli/smb/py_reparse_symlink.c:182:23: acquire_memory: allocated here
samba-4.23.4/libcli/smb/py_reparse_symlink.c:183:26: throw: if ‘reparse_data_buffer_marshall’ throws an exception...
samba-4.23.4/libcli/smb/py_reparse_symlink.c:183:26: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-457): [#def499]
samba-4.23.4/libcli/smb/smbXcli_base.c:5356: error[uninitvar]: Uninitialized variable: val
Error: GCC_ANALYZER_WARNING (CWE-775): [#def500]
samba-4.23.4/libcli/smb/smbXcli_base.c:7700:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wireshark_keyfile, 1025)’
samba-4.23.4/libcli/smb/smbXcli_base.c:7683:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7686:9: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7690:12: branch_false: following ‘false’ branch (when ‘wireshark_keyfile’ is non-NULL)...
samba-4.23.4/libcli/smb/smbXcli_base.c:7693:14: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7693:14: acquire_resource: opened here
samba-4.23.4/libcli/smb/smbXcli_base.c:7694:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7700:19: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7700:19: throw: if ‘write’ throws an exception...
samba-4.23.4/libcli/smb/smbXcli_base.c:7700:19: danger: ‘open(wireshark_keyfile, 1025)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def501]
samba-4.23.4/libcli/smb/smbXcli_base.c:7701:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(wireshark_keyfile, 1025)’
samba-4.23.4/libcli/smb/smbXcli_base.c:7683:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7686:9: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7690:12: branch_false: following ‘false’ branch (when ‘wireshark_keyfile’ is non-NULL)...
samba-4.23.4/libcli/smb/smbXcli_base.c:7693:14: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7693:14: acquire_resource: opened here
samba-4.23.4/libcli/smb/smbXcli_base.c:7694:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7700:19: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7701:12: branch_true: following ‘true’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7702:17: branch_true: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7702:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/libcli/smb/smbXcli_base.c:7701:13: danger: ‘open(wireshark_keyfile, 1025)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def502]
samba-4.23.4/libcli/smb/smbXcli_base.c:7711:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/libcli/smb/smbXcli_base.c:7683:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7686:9: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7690:12: branch_false: following ‘false’ branch (when ‘wireshark_keyfile’ is non-NULL)...
samba-4.23.4/libcli/smb/smbXcli_base.c:7693:14: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7693:14: acquire_resource: opened here
samba-4.23.4/libcli/smb/smbXcli_base.c:7694:12: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7700:19: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7709:9: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smb/smbXcli_base.c:7710:12: branch_false: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7710:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
samba-4.23.4/libcli/smb/smbXcli_base.c:7711:17: branch_true: ...to here
samba-4.23.4/libcli/smb/smbXcli_base.c:7711:17: throw: if ‘close’ throws an exception...
samba-4.23.4/libcli/smb/smbXcli_base.c:7711:17: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/libcli/smbreadline/smbreadline.c:83:24: acquire_memory: allocated here
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:88:16: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: danger: ‘line’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
samba-4.23.4/libcli/smbreadline/smbreadline.c:95:21: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/libcli/smbreadline/smbreadline.c:83:24: acquire_memory: allocated here
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:88:16: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:95:21: throw: if ‘sys_poll_intr’ throws an exception...
samba-4.23.4/libcli/smbreadline/smbreadline.c:95:21: danger: ‘line’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
samba-4.23.4/libcli/smbreadline/smbreadline.c:96:31: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/libcli/smbreadline/smbreadline.c:83:24: acquire_memory: allocated here
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:88:16: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:97:28: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smbreadline/smbreadline.c:100:32: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:96:31: danger: ‘line’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
samba-4.23.4/libcli/smbreadline/smbreadline.c:103:25: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/libcli/smbreadline/smbreadline.c:83:24: acquire_memory: allocated here
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/libcli/smbreadline/smbreadline.c:84:12: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:88:16: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smbreadline/smbreadline.c:91:17: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:95:20: branch_false: following ‘false’ branch...
samba-4.23.4/libcli/smbreadline/smbreadline.c:102:20: branch_false: ...to here
samba-4.23.4/libcli/smbreadline/smbreadline.c:103:25: throw: if the called function throws an exception...
samba-4.23.4/libcli/smbreadline/smbreadline.c:103:25: danger: ‘line’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
samba-4.23.4/libgpo/gpext/gpext.c:549:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(modules_path(_talloc_tos("../../libgpo/gpext/gpext.c:543"), "gpext"))’
samba-4.23.4/libgpo/gpext/gpext.c:543:15: acquire_memory: allocated here
samba-4.23.4/libgpo/gpext/gpext.c:545:12: branch_false: following ‘false’ branch...
samba-4.23.4/libgpo/gpext/gpext.c:545:12: branch_false: ...to here
samba-4.23.4/libgpo/gpext/gpext.c:549:26: throw: if ‘readdir’ throws an exception...
samba-4.23.4/libgpo/gpext/gpext.c:549:26: danger: ‘opendir(modules_path(_talloc_tos("../../libgpo/gpext/gpext.c:543"), "gpext"))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
samba-4.23.4/libgpo/gpo_filesync.c:72:26: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
samba-4.23.4/libgpo/gpo_filesync.c:55:12: branch_false: following ‘false’ branch...
samba-4.23.4/libgpo/gpo_filesync.c:59:19: branch_false: ...to here
samba-4.23.4/libgpo/gpo_filesync.c:59:12: branch_false: following ‘false’ branch...
samba-4.23.4/libgpo/gpo_filesync.c:64:29: branch_false: ...to here
samba-4.23.4/libgpo/gpo_filesync.c:64:29: acquire_memory: allocated here
samba-4.23.4/libgpo/gpo_filesync.c:64:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
samba-4.23.4/libgpo/gpo_filesync.c:64:12: branch_false: ...to here
samba-4.23.4/libgpo/gpo_filesync.c:72:26: throw: if ‘cli_read’ throws an exception...
samba-4.23.4/libgpo/gpo_filesync.c:72:26: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-477): [#def509]
samba-4.23.4/libgpo/pygpo.c: scope_hint: In function ‘GPO_set_ds_path’
samba-4.23.4/libgpo/pygpo.c:58:16: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
samba-4.23.4/libgpo/pygpo.c:74:1: note: in expansion of macro ‘GPO_setter’
/usr/include/python3.14/unicodeobject.h:1022: included_from: Included from here.
/usr/include/python3.14/Python.h:90: included_from: Included from here.
samba-4.23.4/lib/replace/system/python.h:27: included_from: Included from here.
samba-4.23.4/libgpo/pygpo.c:19: included_from: Included from here.
/usr/include/python3.14/cpython/unicodeobject.h:648:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def510]
samba-4.23.4/libgpo/pygpo.c:74:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def511]
samba-4.23.4/libgpo/pygpo.c:75:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def512]
samba-4.23.4/libgpo/pygpo.c:76:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def513]
samba-4.23.4/libgpo/pygpo.c:77:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def514]
samba-4.23.4/libgpo/pygpo.c:78:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def515]
samba-4.23.4/libgpo/pygpo.c:79:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def516]
samba-4.23.4/libgpo/pygpo.c:80:1: warning[-Wdeprecated-declarations]: ‘_PyUnicode_AsString’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-404): [#def517]
samba-4.23.4/librpc/ndr/ndr.c:388:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/librpc/ndr/ndr.c:387:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/librpc/ndr/ndr.c:388:29: throw: if ‘talloc_vasprintf_append_buffer’ throws an exception...
samba-4.23.4/librpc/ndr/ndr.c:388:29: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def518]
samba-4.23.4/librpc/ndr/ndr.c:544:17: warning[-Wanalyzer-jump-through-null]: jump through null pointer
samba-4.23.4/librpc/ndr/ndr.c:654:16: enter_function: entry to ‘ndr_print_function_secret_string’
samba-4.23.4/librpc/ndr/ndr.c:660:16: call_function: calling ‘ndr_print_generic_string’ from ‘ndr_print_function_secret_string’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def519]
samba-4.23.4/librpc/ndr/ndr_basic.c:1060:69: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr[i]’
samba-4.23.4/librpc/ndr/ndr_basic.c:1057:9: branch_false: following ‘false’ branch...
samba-4.23.4/librpc/ndr/ndr_basic.c:1058:9: branch_false: ...to here
samba-4.23.4/librpc/ndr/ndr_basic.c:1058:9: branch_false: following ‘false’ branch...
samba-4.23.4/librpc/ndr/ndr_basic.c:1058:9: branch_false: ...to here
samba-4.23.4/librpc/ndr/ndr_basic.c:1059:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
samba-4.23.4/librpc/ndr/ndr_basic.c:1060:69: branch_true: ...to here
samba-4.23.4/librpc/ndr/ndr_basic.c:1060:69: danger: use of uninitialized value ‘addr[i]’ here
Error: COMPILER_WARNING (CWE-704): [#def520]
samba-4.23.4/librpc/rpc/binding.c: scope_hint: In function ‘dcerpc_parse_binding’
samba-4.23.4/librpc/rpc/binding.c:398:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def521]
samba-4.23.4/librpc/rpc/binding.c:398:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:49:22: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:44:13: acquire_memory: allocated here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:45:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:49:22: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:49:22: throw: if ‘wbcCtxCreate’ throws an exception...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:49:22: danger: ‘d’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:44:13: acquire_memory: allocated here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:45:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:49:22: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:50:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:55:9: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:55:9: throw: if ‘wbcSetClientProcessName’ throws an exception...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:55:9: danger: ‘d’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:231:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:207:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:211:22: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:217:24: acquire_memory: allocated here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:231:9: throw: if ‘wbcFreeMemory’ throws an exception...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_localauth.c:231:9: danger: ‘name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:190:23: warning[-Wanalyzer-malloc-leak]: leak of ‘kdc_name’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:316:24: enter_function: entry to ‘smb_krb5_locator_lookup’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:342:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:351:14: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:363:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:367:23: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:368:20: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:377:17: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:379:28: acquire_memory: allocated here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:380:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:403:1: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:393:15: call_function: calling ‘smb_krb5_locator_call_cbfunc’ from ‘smb_krb5_locator_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:214:23: warning[-Wanalyzer-malloc-leak]: leak of ‘kdc_name’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:316:24: enter_function: entry to ‘smb_krb5_locator_lookup’
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:342:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:351:14: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:363:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:367:23: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:368:20: branch_false: following ‘false’ branch (when ‘env’ is non-NULL)...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:377:17: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:379:28: acquire_memory: allocated here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:380:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:403:1: branch_false: ...to here
samba-4.23.4/nsswitch/krb5_plugin/winbind_krb5_locator.c:393:15: call_function: calling ‘smb_krb5_locator_call_cbfunc’ from ‘smb_krb5_locator_lookup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:365:23: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:352:27: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:353:12: branch_false: following ‘false’ branch (when ‘sidlist’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:353:12: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:359:19: branch_true: following ‘true’ branch (when ‘i < num_sids’)...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:363:38: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:365:23: throw: if ‘wbcSidToStringBuf’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:365:23: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:374:10: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:352:27: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:353:12: branch_false: following ‘false’ branch (when ‘sidlist’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:353:12: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:359:19: branch_false: following ‘false’ branch (when ‘i >= num_sids’)...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:374:10: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:376:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:374:10: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:516:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:479:15: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:480:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:480:12: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:486:19: branch_false: following ‘false’ branch (when ‘i >= num_ids’)...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:512:54: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:516:22: throw: if ‘wbcRequestResponse’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_idmap.c:516:22: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1431:18: warning[-Wanalyzer-malloc-leak]: leak of ‘request.extra_data.data’
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1344:12: branch_false: following ‘false’ branch (when ‘params’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1345:17: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1344:13: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1346:17: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1344:13: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1344:13: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1351:19: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1362:32: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1362:20: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1363:28: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1363:28: branch_false: following ‘false’ branch (when ‘initial_blob’ is NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1362:20: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1380:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1392:17: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1407:12: branch_false: following ‘false’ branch (when ‘challenge_blob’ is NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1413:13: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1413:12: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1414:51: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1414:51: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1415:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1420:12: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1424:12: branch_false: following ‘false’ branch (when ‘challenge_blob’ is NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1431:18: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1431:18: throw: if ‘wbcRequestResponse’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_pam.c:1431:18: danger: ‘request.extra_data.data’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:580:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ridlist’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:528:8: enter_function: entry to ‘wbcCtxLookupRids’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:552:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:557:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:557:9: call_function: calling ‘wbcSidToStringBuf’ from ‘wbcCtxLookupRids’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:557:9: return_function: returning to ‘wbcCtxLookupRids’ from ‘wbcSidToStringBuf’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:566:27: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:567:9: branch_false: following ‘false’ branch (when ‘ridlist’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:567:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:570:19: branch_false: following ‘false’ branch (when ‘i >= num_rids’)...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:574:16: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:580:22: throw: if ‘wbcRequestResponse’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:580:22: danger: ‘ridlist’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: COMPILER_WARNING (CWE-704): [#def532]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c: scope_hint: In function ‘wbcCtxLookupUserSids’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:720:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def533]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:720:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:834:22: warning[-Wanalyzer-malloc-leak]: leak of ‘extra_data’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:766:8: enter_function: entry to ‘wbcCtxGetSidAliases’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:789:12: branch_false: following ‘false’ branch (when ‘dom_sid’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:794:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:794:9: call_function: calling ‘wbcSidToStringBuf’ from ‘wbcCtxGetSidAliases’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:794:9: return_function: returning to ‘wbcCtxGetSidAliases’ from ‘wbcSidToStringBuf’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:799:30: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:800:12: branch_false: following ‘false’ branch (when ‘extra_data’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:800:12: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:806:19: branch_false: following ‘false’ branch (when ‘i >= num_sids’)...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:829:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:834:22: throw: if ‘wbcRequestResponse’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:834:22: danger: ‘extra_data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: COMPILER_WARNING (CWE-704): [#def535]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c: scope_hint: In function ‘wbcCtxGetSidAliases’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:851:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def536]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:851:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def537]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c: scope_hint: In function ‘wbcCtxListUsers’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:933:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def538]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:933:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def539]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c: scope_hint: In function ‘wbcCtxListGroups’
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:1017:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def540]
samba-4.23.4/nsswitch/libwbclient/wbc_sid.c:1017:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:456:22: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:558:8: enter_function: entry to ‘wbcCtxListTrusts’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:578:9: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:582:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:584:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:595:9: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:597:36: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:597:22: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:598:9: branch_false: following ‘false’ branch (when ‘extra_data’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:598:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:604:19: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:607:20: branch_true: following ‘true’ branch (when ‘next’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:608:25: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:612:30: call_function: calling ‘process_domain_info_string’ from ‘wbcCtxListTrusts’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:624:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:558:8: enter_function: entry to ‘wbcCtxListTrusts’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:578:9: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:582:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:584:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:595:9: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:597:36: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:597:22: acquire_memory: allocated here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:598:9: branch_false: following ‘false’ branch (when ‘extra_data’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:598:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:604:19: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:607:20: branch_true: following ‘true’ branch (when ‘next’ is non-NULL)...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:608:25: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:612:30: call_function: calling ‘process_domain_info_string’ from ‘wbcCtxListTrusts’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:612:30: return_function: returning to ‘wbcCtxListTrusts’ from ‘process_domain_info_string’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:613:17: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:613:17: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:623:9: call_function: inlined call to ‘winbindd_free_response’ from ‘wbcCtxListTrusts’
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:624:9: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:624:9: throw: if ‘wbcFreeMemory’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbc_util.c:624:9: danger: ‘p’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
samba-4.23.4/nsswitch/libwbclient/wbclient.c:244:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:312:20: enter_function: entry to ‘wbcCtxCreate’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:317:36: call_function: calling ‘wbcAllocateMemory’ from ‘wbcCtxCreate’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:317:36: return_function: returning to ‘wbcCtxCreate’ from ‘wbcAllocateMemory’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:320:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbclient.c:324:17: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbclient.c:326:12: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/libwbclient/wbclient.c:327:17: branch_true: ...to here
samba-4.23.4/nsswitch/libwbclient/wbclient.c:327:17: call_function: calling ‘wbcFreeMemory’ from ‘wbcCtxCreate’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
samba-4.23.4/nsswitch/libwbclient/wbclient.c:324:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:312:20: enter_function: entry to ‘wbcCtxCreate’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:317:36: call_function: calling ‘wbcAllocateMemory’ from ‘wbcCtxCreate’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:317:36: return_function: returning to ‘wbcCtxCreate’ from ‘wbcAllocateMemory’
samba-4.23.4/nsswitch/libwbclient/wbclient.c:320:12: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/libwbclient/wbclient.c:324:17: branch_false: ...to here
samba-4.23.4/nsswitch/libwbclient/wbclient.c:324:17: throw: if ‘winbindd_ctx_create’ throws an exception...
samba-4.23.4/nsswitch/libwbclient/wbclient.c:324:17: danger: ‘<unknown>’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
samba-4.23.4/nsswitch/pam_winbind.c:189:9: warning[-Wanalyzer-malloc-leak]: leak of ‘current_name’
samba-4.23.4/nsswitch/pam_winbind.c:1171:13: enter_function: entry to ‘winbind_name_list_to_sid_string_list’
samba-4.23.4/nsswitch/pam_winbind.c:1188:16: branch_true: following ‘true’ branch (when ‘comma’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:1190:40: branch_true: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:1189:32: acquire_memory: allocated here
samba-4.23.4/nsswitch/pam_winbind.c:1191:20: branch_false: following ‘false’ branch (when ‘current_name’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:1195:22: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:1195:22: call_function: calling ‘winbind_name_to_sid_string’ from ‘winbind_name_list_to_sid_string_list’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def546]
samba-4.23.4/nsswitch/pam_winbind.c:189:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/nsswitch/pam_winbind.c:2168:12: enter_function: entry to ‘_winbind_read_password’
samba-4.23.4/nsswitch/pam_winbind.c:2180:9: call_function: calling ‘_pam_log’ from ‘_winbind_read_password’
Error: COMPILER_WARNING (CWE-477): [#def547]
samba-4.23.4/nsswitch/pam_winbind.c: scope_hint: In function ‘_make_remark’
samba-4.23.4/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.h:104: included_from: Included from here.
samba-4.23.4/nsswitch/pam_winbind.c:13: included_from: Included from here.
samba-4.23.4/nsswitch/pam_winbind.c:735:17: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def548]
samba-4.23.4/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def549]
samba-4.23.4/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:735:17: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def550]
samba-4.23.4/nsswitch/pam_winbind.c:735:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def551]
samba-4.23.4/nsswitch/pam_winbind.c: scope_hint: In function ‘_pam_winbind_change_pwd’
samba-4.23.4/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:906:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def552]
samba-4.23.4/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def553]
samba-4.23.4/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:906:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def554]
samba-4.23.4/nsswitch/pam_winbind.c:906:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
samba-4.23.4/nsswitch/pam_winbind.c:1139:30: warning[-Wanalyzer-malloc-leak]: leak of ‘current_name’
samba-4.23.4/nsswitch/pam_winbind.c:1171:13: enter_function: entry to ‘winbind_name_list_to_sid_string_list’
samba-4.23.4/nsswitch/pam_winbind.c:1188:16: branch_true: following ‘true’ branch (when ‘comma’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:1190:40: branch_true: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:1189:32: acquire_memory: allocated here
samba-4.23.4/nsswitch/pam_winbind.c:1191:20: branch_false: following ‘false’ branch (when ‘current_name’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:1195:22: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:1195:22: call_function: calling ‘winbind_name_to_sid_string’ from ‘winbind_name_list_to_sid_string_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
samba-4.23.4/nsswitch/pam_winbind.c:1150:17: warning[-Wanalyzer-malloc-leak]: leak of ‘current_name’
samba-4.23.4/nsswitch/pam_winbind.c:1171:13: enter_function: entry to ‘winbind_name_list_to_sid_string_list’
samba-4.23.4/nsswitch/pam_winbind.c:1188:16: branch_true: following ‘true’ branch (when ‘comma’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:1190:40: branch_true: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:1189:32: acquire_memory: allocated here
samba-4.23.4/nsswitch/pam_winbind.c:1191:20: branch_false: following ‘false’ branch (when ‘current_name’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:1195:22: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:1195:22: call_function: calling ‘winbind_name_to_sid_string’ from ‘winbind_name_list_to_sid_string_list’
Error: COMPILER_WARNING (CWE-477): [#def557]
samba-4.23.4/nsswitch/pam_winbind.c: scope_hint: In function ‘_pam_delete’
samba-4.23.4/nsswitch/pam_winbind.c:2159:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:2159:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def558]
samba-4.23.4/nsswitch/pam_winbind.c:2159:9: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def559]
samba-4.23.4/nsswitch/pam_winbind.c: scope_hint: In function ‘_winbind_read_password’
samba-4.23.4/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:2269:25: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def560]
samba-4.23.4/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def561]
samba-4.23.4/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:2269:25: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def562]
samba-4.23.4/nsswitch/pam_winbind.c:2269:25: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def563]
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def564]
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘reply_i’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def565]
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def566]
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: warning[-Wdeprecated-declarations]: ‘xx_’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
samba-4.23.4/nsswitch/pam_winbind.c:2312:18: warning[-Wanalyzer-malloc-leak]: leak of ‘token’
samba-4.23.4/nsswitch/pam_winbind.c:2168:12: enter_function: entry to ‘_winbind_read_password’
samba-4.23.4/nsswitch/pam_winbind.c:2261:26: call_function: calling ‘converse’ from ‘_winbind_read_password’
samba-4.23.4/nsswitch/pam_winbind.c:2261:26: return_function: returning to ‘_winbind_read_password’ from ‘converse’
samba-4.23.4/nsswitch/pam_winbind.c:2262:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/pam_winbind.c:2268:20: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:2268:20: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/pam_winbind.c:2275:25: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:2275:25: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/pam_winbind.c:2275:25: branch_true: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:2275:25: acquire_memory: allocated here
samba-4.23.4/nsswitch/pam_winbind.c:2276:20: branch_false: following ‘false’ branch (when ‘token’ is non-NULL)...
samba-4.23.4/nsswitch/pam_winbind.c:2284:20: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: branch_true: following ‘true’ branch...
samba-4.23.4/nsswitch/pam_winbind.c:2299:17: branch_false: following ‘false’ branch...
samba-4.23.4/nsswitch/pam_winbind.c:2303:12: branch_false: following ‘false’ branch (when ‘retval == 0’)...
samba-4.23.4/nsswitch/pam_winbind.c:2312:18: branch_false: ...to here
samba-4.23.4/nsswitch/pam_winbind.c:2312:18: throw: if ‘pam_set_item’ throws an exception...
samba-4.23.4/nsswitch/pam_winbind.c:2312:18: danger: ‘token’ leaks here; was allocated at [(13)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/12)
Error: COMPILER_WARNING (CWE-704): [#def568]
samba-4.23.4/nsswitch/pam_winbind.c: scope_hint: In function ‘get_conf_item_string’
samba-4.23.4/nsswitch/pam_winbind.c:2345:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def569]
samba-4.23.4/nsswitch/pam_winbind.c:2345:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def570]
samba-4.23.4/nsswitch/pam_winbind.c: scope_hint: In function ‘get_config_item_int’
samba-4.23.4/nsswitch/pam_winbind.c:2391:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def571]
samba-4.23.4/nsswitch/pam_winbind.c:2391:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def572]
samba-4.23.4/nsswitch/wb_common.c:340:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/nsswitch/wb_common.c:745:12: enter_function: entry to ‘winbind_read_sock’
samba-4.23.4/nsswitch/wb_common.c:752:14: call_function: calling ‘winbind_open_pipe_sock’ from ‘winbind_read_sock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def573]
samba-4.23.4/nsswitch/wb_common.c:395:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/nsswitch/wb_common.c:814:12: enter_function: entry to ‘winbindd_read_reply’
samba-4.23.4/nsswitch/wb_common.c:819:12: branch_false: following ‘false’ branch (when ‘response’ is non-NULL)...
samba-4.23.4/nsswitch/wb_common.c:825:19: branch_false: ...to here
samba-4.23.4/nsswitch/wb_common.c:825:19: call_function: calling ‘winbind_read_sock’ from ‘winbindd_read_reply’
Error: COMPILER_WARNING (CWE-704): [#def574]
samba-4.23.4/nsswitch/wbinfo.c: scope_hint: In function ‘parse_wbinfo_domain_user’
samba-4.23.4/nsswitch/wbinfo.c:119:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def575]
samba-4.23.4/nsswitch/wbinfo.c:119:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def576]
samba-4.23.4/nsswitch/wbinfo.c:123:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def577]
samba-4.23.4/nsswitch/wbinfo.c:123:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
samba-4.23.4/source3/auth/pampass.c:448:13: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv, user, password, 0)’
samba-4.23.4/source3/auth/pampass.c:822:10: enter_function: entry to ‘smb_pam_passcheck’
samba-4.23.4/source3/auth/pampass.c:835:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_passcheck’
samba-4.23.4/source3/auth/pampass.c:835:22: return_function: returning to ‘smb_pam_passcheck’ from ‘smb_setup_pam_conv’
samba-4.23.4/source3/auth/pampass.c:835:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/pampass.c:838:14: branch_false: ...to here
samba-4.23.4/source3/auth/pampass.c:838:14: call_function: calling ‘smb_pam_start’ from ‘smb_pam_passcheck’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
samba-4.23.4/source3/auth/pampass.c:448:13: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_conv, user, 0, 0)’
samba-4.23.4/source3/auth/pampass.c:794:10: enter_function: entry to ‘smb_pam_accountcheck’
samba-4.23.4/source3/auth/pampass.c:802:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/auth/pampass.c:805:22: branch_true: ...to here
samba-4.23.4/source3/auth/pampass.c:805:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_accountcheck’
samba-4.23.4/source3/auth/pampass.c:805:22: return_function: returning to ‘smb_pam_accountcheck’ from ‘smb_setup_pam_conv’
samba-4.23.4/source3/auth/pampass.c:805:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/pampass.c:808:14: branch_false: ...to here
samba-4.23.4/source3/auth/pampass.c:808:14: call_function: calling ‘smb_pam_start’ from ‘smb_pam_accountcheck’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
samba-4.23.4/source3/auth/pampass.c:448:13: warning[-Wanalyzer-malloc-leak]: leak of ‘smb_setup_pam_conv(&smb_pam_passchange_conv, user, oldpassword, newpassword)’
samba-4.23.4/source3/auth/pampass.c:867:6: enter_function: entry to ‘smb_pam_passchange’
samba-4.23.4/source3/auth/pampass.c:874:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_passchange’
samba-4.23.4/source3/auth/pampass.c:874:22: return_function: returning to ‘smb_pam_passchange’ from ‘smb_setup_pam_conv’
samba-4.23.4/source3/auth/pampass.c:874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/pampass.c:877:13: branch_false: ...to here
samba-4.23.4/source3/auth/pampass.c:877:13: call_function: calling ‘smb_pam_start’ from ‘smb_pam_passchange’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
samba-4.23.4/source3/auth/pampass.c:498:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/auth/pampass.c:867:6: enter_function: entry to ‘smb_pam_passchange’
samba-4.23.4/source3/auth/pampass.c:874:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_passchange’
samba-4.23.4/source3/auth/pampass.c:874:22: return_function: returning to ‘smb_pam_passchange’ from ‘smb_setup_pam_conv’
samba-4.23.4/source3/auth/pampass.c:874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/pampass.c:877:13: branch_false: ...to here
samba-4.23.4/source3/auth/pampass.c:877:13: call_function: calling ‘smb_pam_start’ from ‘smb_pam_passchange’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
samba-4.23.4/source3/auth/pampass.c:500:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/auth/pampass.c:867:6: enter_function: entry to ‘smb_pam_passchange’
samba-4.23.4/source3/auth/pampass.c:874:22: call_function: calling ‘smb_setup_pam_conv’ from ‘smb_pam_passchange’
samba-4.23.4/source3/auth/pampass.c:874:22: return_function: returning to ‘smb_pam_passchange’ from ‘smb_setup_pam_conv’
samba-4.23.4/source3/auth/pampass.c:874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/pampass.c:877:13: branch_false: ...to here
samba-4.23.4/source3/auth/pampass.c:877:13: call_function: calling ‘smb_pam_start’ from ‘smb_pam_passchange’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def583]
samba-4.23.4/source3/auth/user_util.c:369:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(lp_username_map(_talloc_tos("../../source3/auth/user_util.c:278"), loadparm_s3_global_substitution()), "r")’
samba-4.23.4/source3/auth/user_util.c:273:6: enter_function: entry to ‘map_username’
samba-4.23.4/source3/auth/user_util.c:286:12: branch_false: following ‘false’ branch (when ‘user_in’ is non-NULL)...
samba-4.23.4/source3/auth/user_util.c:290:23: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:291:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:295:13: call_function: inlined call to ‘get_last_to’ from ‘map_username’
samba-4.23.4/source3/auth/user_util.c:295:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:298:13: call_function: inlined call to ‘get_last_from’ from ‘map_username’
samba-4.23.4/source3/auth/user_util.c:298:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:305:13: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:305:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:311:14: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:311:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:360:14: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:360:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:363:13: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:363:13: acquire_resource: opened here
samba-4.23.4/source3/auth/user_util.c:364:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:369:9: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:369:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/auth/user_util.c:369:9: branch_true: ...to here
samba-4.23.4/source3/auth/user_util.c:369:9: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/auth/user_util.c:369:9: danger: ‘fopen(lp_username_map(_talloc_tos("../../source3/auth/user_util.c:278"), loadparm_s3_global_substitution()), "r")’ leaks here; was opened at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
samba-4.23.4/source3/auth/user_util.c:369:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(lp_username_map(_talloc_tos("../../source3/auth/user_util.c:278"), loadparm_s3_global_substitution()), "r")’
samba-4.23.4/source3/auth/user_util.c:273:6: enter_function: entry to ‘map_username’
samba-4.23.4/source3/auth/user_util.c:286:12: branch_false: following ‘false’ branch (when ‘user_in’ is non-NULL)...
samba-4.23.4/source3/auth/user_util.c:290:23: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:291:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:295:13: call_function: inlined call to ‘get_last_to’ from ‘map_username’
samba-4.23.4/source3/auth/user_util.c:295:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:298:13: call_function: inlined call to ‘get_last_from’ from ‘map_username’
samba-4.23.4/source3/auth/user_util.c:298:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:305:13: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:305:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:311:14: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:311:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:360:14: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:360:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:363:13: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:363:13: acquire_memory: allocated here
samba-4.23.4/source3/auth/user_util.c:364:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/auth/user_util.c:369:9: branch_false: ...to here
samba-4.23.4/source3/auth/user_util.c:369:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/auth/user_util.c:369:9: branch_true: ...to here
samba-4.23.4/source3/auth/user_util.c:369:9: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/auth/user_util.c:369:9: danger: ‘fopen(lp_username_map(_talloc_tos("../../source3/auth/user_util.c:278"), loadparm_s3_global_substitution()), "r")’ leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
samba-4.23.4/source3/client/client.c:349:17: warning[-Wanalyzer-malloc-leak]: leak of ‘info.dirmask’
samba-4.23.4/source3/client/client.c:5917:15: enter_function: entry to ‘remote_completion’
samba-4.23.4/source3/client/client.c:5935:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5945:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5957:12: branch_false: following ‘false’ branch (when ‘i <= 0’)...
samba-4.23.4/source3/client/client.c:5970:32: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5970:32: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:5971:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5974:27: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5978:12: branch_false: following ‘false’ branch (when ‘dirmask’ is non-NULL)...
samba-4.23.4/source3/client/client.c:5981:19: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5981:19: call_function: calling ‘client_clean_name’ from ‘remote_completion’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
samba-4.23.4/source3/client/client.c:366:19: warning[-Wanalyzer-malloc-leak]: leak of ‘info.dirmask’
samba-4.23.4/source3/client/client.c:5917:15: enter_function: entry to ‘remote_completion’
samba-4.23.4/source3/client/client.c:5935:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5945:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5957:12: branch_false: following ‘false’ branch (when ‘i <= 0’)...
samba-4.23.4/source3/client/client.c:5970:32: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5970:32: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:5971:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5974:27: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5978:12: branch_false: following ‘false’ branch (when ‘dirmask’ is non-NULL)...
samba-4.23.4/source3/client/client.c:5981:19: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5981:19: call_function: calling ‘client_clean_name’ from ‘remote_completion’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def587]
samba-4.23.4/source3/client/client.c:1912:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(lname, "r")’
samba-4.23.4/source3/client/client.c:1874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1879:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1884:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1896:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1896:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1907:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1907:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/client/client.c:1911:21: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1911:21: acquire_resource: opened here
samba-4.23.4/source3/client/client.c:1912:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/client.c:1913:29: branch_true: ...to here
samba-4.23.4/source3/client/client.c:1913:29: throw: if ‘fseek’ throws an exception...
samba-4.23.4/source3/client/client.c:1912:21: danger: ‘fopen(lname, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
samba-4.23.4/source3/client/client.c:1912:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(lname, "r")’
samba-4.23.4/source3/client/client.c:1874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1879:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1884:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1896:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1896:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1907:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1907:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/client/client.c:1911:21: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1911:21: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:1912:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/client.c:1913:29: branch_true: ...to here
samba-4.23.4/source3/client/client.c:1913:29: throw: if ‘fseek’ throws an exception...
samba-4.23.4/source3/client/client.c:1912:21: danger: ‘fopen(lname, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def589]
samba-4.23.4/source3/client/client.c:1926:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source3/client/client.c:1874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1879:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1896:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1907:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1907:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/client/client.c:1911:21: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1911:21: acquire_resource: opened here
samba-4.23.4/source3/client/client.c:1921:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source3/client/client.c:1926:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1926:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/client/client.c:1926:9: danger: ‘f’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
samba-4.23.4/source3/client/client.c:1926:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source3/client/client.c:1874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1879:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1896:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1907:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1907:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/client/client.c:1911:21: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1911:21: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:1921:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source3/client/client.c:1926:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1926:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/client/client.c:1926:9: danger: ‘f’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def591]
samba-4.23.4/source3/client/client.c:1934:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source3/client/client.c:1874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1879:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1896:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1907:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1907:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/client/client.c:1911:21: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1911:21: acquire_resource: opened here
samba-4.23.4/source3/client/client.c:1921:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source3/client/client.c:1926:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1934:18: throw: if ‘cli_push’ throws an exception...
samba-4.23.4/source3/client/client.c:1934:18: danger: ‘f’ leaks here; was opened at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
samba-4.23.4/source3/client/client.c:1934:18: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source3/client/client.c:1874:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1879:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1896:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:1907:14: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1907:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/client/client.c:1911:21: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1911:21: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:1921:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source3/client/client.c:1926:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:1934:18: throw: if ‘cli_push’ throws an exception...
samba-4.23.4/source3/client/client.c:1934:18: danger: ‘f’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
samba-4.23.4/source3/client/client.c:2110:25: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(directory)’
samba-4.23.4/source3/client/client.c:2106:15: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:2107:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:2107:12: branch_false: ...to here
samba-4.23.4/source3/client/client.c:2110:25: throw: if ‘readdirname’ throws an exception...
samba-4.23.4/source3/client/client.c:2110:25: danger: ‘opendir(directory)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
samba-4.23.4/source3/client/client.c:5872:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.23.4/source3/client/client.c:5861:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5864:42: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5864:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5867:13: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5871:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/client.c:5872:46: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:5872:17: danger: ‘strdup(*f.name)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
samba-4.23.4/source3/client/client.c:5974:27: warning[-Wanalyzer-malloc-leak]: leak of ‘info.dirmask’
samba-4.23.4/source3/client/client.c:5935:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5945:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5957:12: branch_false: following ‘false’ branch (when ‘i <= 0’)...
samba-4.23.4/source3/client/client.c:5970:32: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5970:32: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:5971:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5974:27: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5974:27: throw: if ‘talloc_asprintf’ throws an exception...
samba-4.23.4/source3/client/client.c:5974:27: danger: ‘info.dirmask’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
samba-4.23.4/source3/client/client.c:6025:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(info.matches[1], (long unsigned int)info.samelen)’
samba-4.23.4/source3/client/client.c:5917:15: enter_function: entry to ‘remote_completion’
samba-4.23.4/source3/client/client.c:5935:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5945:9: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5957:12: branch_true: following ‘true’ branch (when ‘i > 0’)...
samba-4.23.4/source3/client/client.c:5958:32: branch_true: ...to here
samba-4.23.4/source3/client/client.c:5959:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5962:17: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5978:12: branch_false: following ‘false’ branch (when ‘dirmask’ is non-NULL)...
samba-4.23.4/source3/client/client.c:5981:19: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5981:19: call_function: calling ‘client_clean_name’ from ‘remote_completion’
samba-4.23.4/source3/client/client.c:5981:19: return_function: returning to ‘remote_completion’ from ‘client_clean_name’
samba-4.23.4/source3/client/client.c:5982:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5986:18: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5989:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5992:18: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5994:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:5998:13: branch_false: ...to here
samba-4.23.4/source3/client/client.c:5998:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:6008:12: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6008:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:6025:27: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6025:27: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:6025:9: danger: ‘strndup(info.matches[1], (long unsigned int)info.samelen)’ leaks here; was allocated at [(28)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/27)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
samba-4.23.4/source3/client/client.c:6111:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/client/client.c:6044:12: branch_false: following ‘false’ branch (when ‘start == 0’)...
samba-4.23.4/source3/client/client.c:6082:27: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6083:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:6086:17: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6089:26: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/client.c:6092:36: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:6094:36: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6094:36: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.23.4/source3/client/client.c:6095:51: branch_true: ...to here
samba-4.23.4/source3/client/client.c:6089:26: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/client.c:6091:50: acquire_memory: allocated here
samba-4.23.4/source3/client/client.c:6092:36: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/client.c:6094:36: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6094:36: branch_false: following ‘false’ branch (when ‘count != 1’)...
samba-4.23.4/source3/client/client.c:6094:36: branch_false: ...to here
samba-4.23.4/source3/client/client.c:6111:25: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def598]
samba-4.23.4/source3/client/smbspool.c:241:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(print_file, "rb")’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_resource: opened here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:21: danger: ‘fopen(print_file, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
samba-4.23.4/source3/client/smbspool.c:241:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(print_file, "rb")’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_memory: allocated here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:21: danger: ‘fopen(print_file, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def600]
samba-4.23.4/source3/client/smbspool.c:290:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_resource: opened here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:455:1: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:269:12: branch_false: following ‘false’ branch (when ‘cmp == 0’)...
samba-4.23.4/source3/client/smbspool.c:274:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:281:30: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:290:20: throw: if ‘strrchr_m’ throws an exception...
samba-4.23.4/source3/client/smbspool.c:290:20: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
samba-4.23.4/source3/client/smbspool.c:290:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_memory: allocated here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:455:1: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:269:12: branch_false: following ‘false’ branch (when ‘cmp == 0’)...
samba-4.23.4/source3/client/smbspool.c:274:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:281:30: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:290:20: throw: if ‘strrchr_m’ throws an exception...
samba-4.23.4/source3/client/smbspool.c:290:20: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def602]
samba-4.23.4/source3/client/smbspool.c:302:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_resource: opened here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:455:1: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:269:12: branch_false: following ‘false’ branch (when ‘cmp == 0’)...
samba-4.23.4/source3/client/smbspool.c:274:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:281:30: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:290:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/smbspool.c:292:18: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:302:29: throw: if ‘strchr_m’ throws an exception...
samba-4.23.4/source3/client/smbspool.c:302:29: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
samba-4.23.4/source3/client/smbspool.c:302:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_memory: allocated here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:455:1: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:269:12: branch_false: following ‘false’ branch (when ‘cmp == 0’)...
samba-4.23.4/source3/client/smbspool.c:274:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:281:30: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:290:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/smbspool.c:292:18: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:302:29: throw: if ‘strchr_m’ throws an exception...
samba-4.23.4/source3/client/smbspool.c:302:29: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def604]
samba-4.23.4/source3/client/smbspool.c:893:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/client/smbspool.c:90:1: enter_function: entry to ‘main’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_resource: opened here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:455:1: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:269:12: branch_false: following ‘false’ branch (when ‘cmp == 0’)...
samba-4.23.4/source3/client/smbspool.c:274:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:281:30: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:290:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/smbspool.c:292:18: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:302:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/smbspool.c:303:26: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:304:36: call_function: calling ‘uri_unescape_alloc’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
samba-4.23.4/source3/client/smbspool.c:893:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/client/smbspool.c:90:1: enter_function: entry to ‘main’
samba-4.23.4/source3/client/smbspool.c:121:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
samba-4.23.4/source3/client/smbspool.c:140:13: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:140:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:157:12: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:229:12: branch_true: following ‘true’ branch (when ‘print_file’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:232:22: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:232:22: acquire_memory: allocated here
samba-4.23.4/source3/client/smbspool.c:233:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:240:26: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:241:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:455:1: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:269:12: branch_false: following ‘false’ branch (when ‘cmp == 0’)...
samba-4.23.4/source3/client/smbspool.c:274:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/client/smbspool.c:281:30: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:290:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/smbspool.c:292:18: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:302:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/client/smbspool.c:303:26: branch_true: ...to here
samba-4.23.4/source3/client/smbspool.c:304:36: call_function: calling ‘uri_unescape_alloc’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
samba-4.23.4/source3/client/smbspool.c:893:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
samba-4.23.4/source3/client/smbspool.c:888:15: acquire_memory: allocated here
samba-4.23.4/source3/client/smbspool.c:889:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
samba-4.23.4/source3/client/smbspool.c:893:15: branch_false: ...to here
samba-4.23.4/source3/client/smbspool.c:893:15: throw: if ‘rfc1738_unescape’ throws an exception...
samba-4.23.4/source3/client/smbspool.c:893:15: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def607]
samba-4.23.4/source3/lib/addrchange.c:55:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
samba-4.23.4/source3/lib/addrchange.c:45:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/addrchange.c:49:16: branch_false: ...to here
samba-4.23.4/source3/lib/addrchange.c:49:16: acquire_resource: socket created here
samba-4.23.4/source3/lib/addrchange.c:50:12: branch_false: following ‘false’ branch (when ‘sock != -1’)...
samba-4.23.4/source3/lib/addrchange.c:55:14: branch_false: ...to here
samba-4.23.4/source3/lib/addrchange.c:55:14: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source3/lib/addrchange.c:55:14: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def608]
samba-4.23.4/source3/lib/adouble.c:2145:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.23.4/source3/lib/adouble.c:2668:17: enter_function: entry to ‘ad_fget’
samba-4.23.4/source3/lib/adouble.c:2671:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def609]
samba-4.23.4/source3/lib/adouble.c:2327:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.23.4/source3/lib/adouble.c:2668:17: enter_function: entry to ‘ad_fget’
samba-4.23.4/source3/lib/adouble.c:2671:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def610]
samba-4.23.4/source3/lib/adouble.c:2630:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname’
samba-4.23.4/source3/lib/adouble.c:2668:17: enter_function: entry to ‘ad_fget’
samba-4.23.4/source3/lib/adouble.c:2671:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def611]
samba-4.23.4/source3/lib/adouble.c:2770:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘smb_fname_in’
samba-4.23.4/source3/lib/adouble.c:2668:17: enter_function: entry to ‘ad_fget’
samba-4.23.4/source3/lib/adouble.c:2671:16: call_function: calling ‘ad_get_internal’ from ‘ad_fget’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
samba-4.23.4/source3/lib/adt_tree.c:177:17: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/adt_tree.c:214:6: enter_function: entry to ‘pathtree_add’
samba-4.23.4/source3/lib/adt_tree.c:222:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/adt_tree.c:228:12: branch_false: following ‘false’ branch (when ‘tree’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:235:9: branch_false: ...to here
samba-4.23.4/source3/lib/adt_tree.c:236:17: acquire_memory: allocated here
samba-4.23.4/source3/lib/adt_tree.c:237:12: branch_false: following ‘false’ branch (when ‘path2’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:251:9: branch_false: ...to here
samba-4.23.4/source3/lib/adt_tree.c:257:20: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:258:25: branch_true: ...to here
samba-4.23.4/source3/lib/adt_tree.c:262:24: call_function: calling ‘pathtree_find_child’ from ‘pathtree_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
samba-4.23.4/source3/lib/adt_tree.c:188:17: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/adt_tree.c:214:6: enter_function: entry to ‘pathtree_add’
samba-4.23.4/source3/lib/adt_tree.c:222:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/adt_tree.c:228:12: branch_false: following ‘false’ branch (when ‘tree’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:235:9: branch_false: ...to here
samba-4.23.4/source3/lib/adt_tree.c:236:17: acquire_memory: allocated here
samba-4.23.4/source3/lib/adt_tree.c:237:12: branch_false: following ‘false’ branch (when ‘path2’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:251:9: branch_false: ...to here
samba-4.23.4/source3/lib/adt_tree.c:257:20: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:258:25: branch_true: ...to here
samba-4.23.4/source3/lib/adt_tree.c:262:24: call_function: calling ‘pathtree_find_child’ from ‘pathtree_add’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def614]
samba-4.23.4/source3/lib/adt_tree.c:191:26: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/adt_tree.c:214:6: enter_function: entry to ‘pathtree_add’
samba-4.23.4/source3/lib/adt_tree.c:222:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/adt_tree.c:228:12: branch_false: following ‘false’ branch (when ‘tree’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:235:9: branch_false: ...to here
samba-4.23.4/source3/lib/adt_tree.c:236:17: acquire_memory: allocated here
samba-4.23.4/source3/lib/adt_tree.c:237:12: branch_false: following ‘false’ branch (when ‘path2’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:251:9: branch_false: ...to here
samba-4.23.4/source3/lib/adt_tree.c:257:20: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/adt_tree.c:258:25: branch_true: ...to here
samba-4.23.4/source3/lib/adt_tree.c:262:24: call_function: calling ‘pathtree_find_child’ from ‘pathtree_add’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def615]
samba-4.23.4/source3/lib/background.c:165:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:164:27: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:165:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:165:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def616]
samba-4.23.4/source3/lib/background.c:165:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:164:27: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:165:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:165:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def617]
samba-4.23.4/source3/lib/background.c:166:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:164:27: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:166:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:166:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def618]
samba-4.23.4/source3/lib/background.c:177:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:177:17: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:177:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:177:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def619]
samba-4.23.4/source3/lib/background.c:177:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:177:17: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:177:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:177:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def620]
samba-4.23.4/source3/lib/background.c:179:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:177:17: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:179:26: throw: if ‘reinit_after_fork’ throws an exception...
samba-4.23.4/source3/lib/background.c:179:26: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def621]
samba-4.23.4/source3/lib/background.c:181:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:177:17: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:180:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:181:31: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:181:31: throw: if the called function throws an exception...
samba-4.23.4/source3/lib/background.c:181:31: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def622]
samba-4.23.4/source3/lib/background.c:185:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:177:17: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:185:27: throw: if ‘write’ throws an exception...
samba-4.23.4/source3/lib/background.c:185:27: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def623]
samba-4.23.4/source3/lib/background.c:206:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:206:9: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:206:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:206:9: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def624]
samba-4.23.4/source3/lib/background.c:206:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/lib/background.c:151:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/background.c:156:15: branch_true: ...to here
samba-4.23.4/source3/lib/background.c:157:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:162:15: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:163:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:171:12: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:171:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/background.c:206:9: branch_false: ...to here
samba-4.23.4/source3/lib/background.c:206:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/background.c:206:9: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
samba-4.23.4/source3/lib/charcnv.c:64:22: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpbuf’
samba-4.23.4/source3/lib/charcnv.c:55:12: branch_false: following ‘false’ branch (when ‘dest_len != 18446744073709551615’)...
samba-4.23.4/source3/lib/charcnv.c:59:13: branch_false: ...to here
samba-4.23.4/source3/lib/charcnv.c:59:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/charcnv.c:60:26: branch_true: ...to here
samba-4.23.4/source3/lib/charcnv.c:60:26: acquire_memory: allocated here
samba-4.23.4/source3/lib/charcnv.c:61:20: branch_false: following ‘false’ branch (when ‘tmpbuf’ is non-NULL)...
samba-4.23.4/source3/lib/charcnv.c:64:22: branch_false: ...to here
samba-4.23.4/source3/lib/charcnv.c:64:22: throw: if ‘strupper_m’ throws an exception...
samba-4.23.4/source3/lib/charcnv.c:64:22: danger: ‘tmpbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def626]
samba-4.23.4/source3/lib/ctdbd_conn.c:398:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/source3/lib/ctdbd_conn.c:387:14: acquire_resource: stream socket created here
samba-4.23.4/source3/lib/ctdbd_conn.c:388:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:394:19: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:397:12: branch_true: following ‘true’ branch (when ‘namelen > 107’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:398:17: branch_true: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:398:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/ctdbd_conn.c:398:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def627]
samba-4.23.4/source3/lib/ctdbd_conn.c:400:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/source3/lib/ctdbd_conn.c:387:14: acquire_resource: stream socket created here
samba-4.23.4/source3/lib/ctdbd_conn.c:388:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:394:19: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:397:12: branch_true: following ‘true’ branch (when ‘namelen > 107’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:398:17: branch_true: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:400:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/ctdbd_conn.c:400:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def628]
samba-4.23.4/source3/lib/ctdbd_conn.c:404:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/source3/lib/ctdbd_conn.c:387:14: acquire_resource: stream socket created here
samba-4.23.4/source3/lib/ctdbd_conn.c:388:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:394:19: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:397:12: branch_false: following ‘false’ branch (when ‘namelen <= 107’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:404:15: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:404:15: throw: if ‘connect’ throws an exception...
samba-4.23.4/source3/lib/ctdbd_conn.c:404:15: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def629]
samba-4.23.4/source3/lib/ctdbd_conn.c:2107:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘state’
samba-4.23.4/source3/lib/ctdbd_conn.c:2080:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/ctdbd_conn.c:2081:9: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:2085:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/ctdbd_conn.c:2089:9: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:2093:19: branch_false: following ‘false’ branch (when ‘i >= num_pending’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:2101:12: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:2101:12: branch_false: following ‘false’ branch (when ‘i != num_pending’)...
samba-4.23.4/source3/lib/ctdbd_conn.c:2107:24: branch_false: ...to here
samba-4.23.4/source3/lib/ctdbd_conn.c:2107:9: danger: dereference of NULL ‘state’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def630]
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:334:17: warning[-Wanalyzer-null-argument]: use of NULL ‘value.dptr’ where non-null expected
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:319:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:320:41: branch_false: ...to here
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:325:17: release_memory: ‘value.dptr’ is NULL
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:329:12: branch_true: following ‘true’ branch (when ‘copy_size != 0’)...
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:334:41: branch_true: ...to here
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:334:41: release_memory: ‘value.dptr’ is NULL
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:334:17: danger: argument 2 (‘value.dptr’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-457): [#def631]
samba-4.23.4/source3/lib/dbwrap/dbwrap_watch.c:564: error[uninitvar]: Uninitialized variable: instance_buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
samba-4.23.4/source3/lib/interface.c:475:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr_cpy’
samba-4.23.4/source3/lib/interface.c:665:6: enter_function: entry to ‘load_interfaces’
samba-4.23.4/source3/lib/interface.c:684:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/interface.c:688:12: branch_false: ...to here
samba-4.23.4/source3/lib/interface.c:688:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/interface.c:703:24: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/interface.c:704:41: branch_true: ...to here
samba-4.23.4/source3/lib/interface.c:704:41: acquire_memory: allocated here
samba-4.23.4/source3/lib/interface.c:705:28: branch_true: following ‘true’ branch (when ‘ptr_cpy’ is non-NULL)...
samba-4.23.4/source3/lib/interface.c:706:33: branch_true: ...to here
samba-4.23.4/source3/lib/interface.c:706:33: call_function: calling ‘interpret_interface’ from ‘load_interfaces’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
samba-4.23.4/source3/lib/interface.c:495:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr_cpy’
samba-4.23.4/source3/lib/interface.c:665:6: enter_function: entry to ‘load_interfaces’
samba-4.23.4/source3/lib/interface.c:688:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/interface.c:703:24: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/interface.c:704:41: branch_true: ...to here
samba-4.23.4/source3/lib/interface.c:704:41: acquire_memory: allocated here
samba-4.23.4/source3/lib/interface.c:705:28: branch_true: following ‘true’ branch (when ‘ptr_cpy’ is non-NULL)...
samba-4.23.4/source3/lib/interface.c:706:33: branch_true: ...to here
samba-4.23.4/source3/lib/interface.c:706:33: call_function: calling ‘interpret_interface’ from ‘load_interfaces’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
samba-4.23.4/source3/lib/ldap_escape.c:135:26: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/source3/lib/ldap_escape.c:100:26: acquire_memory: allocated here
samba-4.23.4/source3/lib/ldap_escape.c:102:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
samba-4.23.4/source3/lib/ldap_escape.c:102:12: branch_false: ...to here
samba-4.23.4/source3/lib/ldap_escape.c:108:16: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/ldap_escape.c:132:9: branch_false: ...to here
samba-4.23.4/source3/lib/ldap_escape.c:135:26: throw: if ‘Realloc’ throws an exception...
samba-4.23.4/source3/lib/ldap_escape.c:135:26: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def635]
samba-4.23.4/source3/lib/messages.c:1396: warning[uninitvar]: Uninitialized variable: fds
Error: GCC_ANALYZER_WARNING (CWE-476): [#def636]
samba-4.23.4/source3/lib/ms_fnmatch.c:67:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘max_n’
samba-4.23.4/source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.23.4/source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:207:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.23.4/source3/lib/ms_fnmatch.c:226:44: branch_false: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def637]
samba-4.23.4/source3/lib/ms_fnmatch.c:82:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘max_n’
samba-4.23.4/source3/lib/ms_fnmatch.c:148:5: enter_function: entry to ‘ms_fnmatch’
samba-4.23.4/source3/lib/ms_fnmatch.c:164:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/ms_fnmatch.c:174:14: branch_false: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:174:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/ms_fnmatch.c:178:14: branch_true: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:178:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/ms_fnmatch.c:183:12: branch_true: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:207:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.23.4/source3/lib/ms_fnmatch.c:226:44: branch_false: ...to here
samba-4.23.4/source3/lib/ms_fnmatch.c:226:15: call_function: calling ‘ms_fnmatch_core’ from ‘ms_fnmatch’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def638]
samba-4.23.4/source3/lib/netapi/group.c:101:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info0’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:101:25: danger: dereference of NULL ‘info0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def639]
samba-4.23.4/source3/lib/netapi/group.c:104:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info1’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:104:25: danger: dereference of NULL ‘info1’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def640]
samba-4.23.4/source3/lib/netapi/group.c:107:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info2’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:107:25: danger: dereference of NULL ‘info2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def641]
samba-4.23.4/source3/lib/netapi/group.c:110:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:110:25: danger: dereference of NULL ‘info3’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def642]
samba-4.23.4/source3/lib/netapi/group.c:130:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info1’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:128:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:130:29: danger: dereference of NULL ‘info1’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def643]
samba-4.23.4/source3/lib/netapi/group.c:142:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info2’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:128:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:142:29: danger: dereference of NULL ‘info2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def644]
samba-4.23.4/source3/lib/netapi/group.c:169:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.23.4/source3/lib/netapi/group.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:60:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:81:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:85:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:95:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:99:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:128:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:169:29: danger: dereference of NULL ‘info3’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def645]
samba-4.23.4/source3/lib/netapi/group.c:1717:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.23.4/source3/lib/netapi/group.c:1620:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1624:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1624:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1632:16: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1635:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:1639:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1648:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:1652:9: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1661:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1665:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1665:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1669:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1669:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1680:40: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1688:18: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1693:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1698:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1708:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1708:12: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1713:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1715:25: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1717:33: danger: dereference of NULL ‘i0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def646]
samba-4.23.4/source3/lib/netapi/group.c:1721:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i1’
samba-4.23.4/source3/lib/netapi/group.c:1620:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1624:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1624:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1632:16: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1635:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:1639:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1648:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/group.c:1652:9: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1661:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1665:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1665:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1669:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1669:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1680:40: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1688:18: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1693:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1698:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1708:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1708:12: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1713:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/group.c:1715:25: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/group.c:1721:33: danger: dereference of NULL ‘i1’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def647]
samba-4.23.4/source3/lib/netapi/localgroup.c:1117:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info3’
samba-4.23.4/source3/lib/netapi/localgroup.c:1377:8: enter_function: entry to ‘NetLocalGroupSetMembers_r’
samba-4.23.4/source3/lib/netapi/localgroup.c:1380:16: call_function: calling ‘NetLocalGroupModifyMembers_r’ from ‘NetLocalGroupSetMembers_r’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def648]
samba-4.23.4/source3/lib/netapi/netapi.c:469:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/netapi/netapi.c:466:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/netapi.c:468:9: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/netapi.c:468:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/netapi/netapi.c:469:29: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/lib/netapi/netapi.c:469:29: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def649]
samba-4.23.4/source3/lib/netapi/user.c:3209:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i0’
samba-4.23.4/source3/lib/netapi/user.c:3125:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3129:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3129:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3137:16: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3140:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/user.c:3144:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3153:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/user.c:3157:9: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3166:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3170:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3170:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3174:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3174:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3182:39: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3185:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3190:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3200:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3200:12: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3205:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3207:25: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3209:33: danger: dereference of NULL ‘i0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def650]
samba-4.23.4/source3/lib/netapi/user.c:3213:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘i1’
samba-4.23.4/source3/lib/netapi/user.c:3125:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3129:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3129:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3137:16: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3140:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/user.c:3144:21: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3153:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/lib/netapi/user.c:3157:9: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3166:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3170:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3170:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3174:13: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3174:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3182:39: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3185:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3190:17: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3200:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3200:12: branch_false: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3205:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/netapi/user.c:3207:25: branch_true: ...to here
samba-4.23.4/source3/lib/netapi/user.c:3213:33: danger: dereference of NULL ‘i1’
Error: CPPCHECK_WARNING (CWE-476): [#def651]
samba-4.23.4/source3/lib/smbldap.c:363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mods
Error: CPPCHECK_WARNING (CWE-476): [#def652]
samba-4.23.4/source3/lib/smbldap.c:366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mods
Error: GCC_ANALYZER_WARNING (CWE-401): [#def653]
samba-4.23.4/source3/lib/smbldap.c:372:24: warning[-Wanalyzer-malloc-leak]: leak of ‘mods’
samba-4.23.4/source3/lib/smbldap.c:347:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbldap.c:357:12: branch_true: following ‘true’ branch (when ‘mods’ is NULL)...
samba-4.23.4/source3/lib/smbldap.c:358:24: branch_true: ...to here
samba-4.23.4/source3/lib/smbldap.c:358:24: acquire_memory: allocated here
samba-4.23.4/source3/lib/smbldap.c:359:20: branch_false: following ‘false’ branch (when ‘mods’ is non-NULL)...
samba-4.23.4/source3/lib/smbldap.c:363:17: branch_false: ...to here
samba-4.23.4/source3/lib/smbldap.c:366:21: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbldap.c:371:13: branch_false: ...to here
samba-4.23.4/source3/lib/smbldap.c:371:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/smbldap.c:372:24: branch_true: ...to here
samba-4.23.4/source3/lib/smbldap.c:372:24: throw: if ‘realloc_array’ throws an exception...
samba-4.23.4/source3/lib/smbldap.c:372:24: danger: ‘mods’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def654]
samba-4.23.4/source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.23.4/source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:253:24: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def655]
samba-4.23.4/source3/lib/smbrun.c:253:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.23.4/source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:253:24: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def656]
samba-4.23.4/source3/lib/smbrun.c:264:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:264:25: throw: if ‘CatchChildLeaveStatus’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:264:25: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def657]
samba-4.23.4/source3/lib/smbrun.c:264:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:264:25: throw: if ‘CatchChildLeaveStatus’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:264:25: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def658]
samba-4.23.4/source3/lib/smbrun.c:267:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.23.4/source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:267:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:267:17: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def659]
samba-4.23.4/source3/lib/smbrun.c:267:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.23.4/source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:267:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:267:17: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def660]
samba-4.23.4/source3/lib/smbrun.c:268:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.23.4/source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:268:23: throw: if ‘CatchSignal’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:268:23: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def661]
samba-4.23.4/source3/lib/smbrun.c:268:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_true: following ‘true’ branch (when ‘pid < 0’)...
samba-4.23.4/source3/lib/smbrun.c:267:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:268:23: throw: if ‘CatchSignal’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:268:23: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def662]
samba-4.23.4/source3/lib/smbrun.c:281:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/lib/smbrun.c:276:21: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:281:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:281:17: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def663]
samba-4.23.4/source3/lib/smbrun.c:281:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[status]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/lib/smbrun.c:276:21: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:281:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:281:17: danger: ‘ifd[status]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def664]
samba-4.23.4/source3/lib/smbrun.c:284:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/lib/smbrun.c:276:21: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:284:25: throw: if ‘write’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:284:25: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def665]
samba-4.23.4/source3/lib/smbrun.c:286:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/lib/smbrun.c:276:21: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:285:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/smbrun.c:286:21: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:286:21: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:286:21: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def666]
samba-4.23.4/source3/lib/smbrun.c:288:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/lib/smbrun.c:276:21: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:288:17: throw: if ‘fsync’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:288:17: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def667]
samba-4.23.4/source3/lib/smbrun.c:316:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:316:15: throw: if ‘CatchChild’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:316:15: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def668]
samba-4.23.4/source3/lib/smbrun.c:316:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:316:15: throw: if ‘CatchChild’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:316:15: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def669]
samba-4.23.4/source3/lib/smbrun.c:322:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:322:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:322:9: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def670]
samba-4.23.4/source3/lib/smbrun.c:322:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[1]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:322:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:322:9: danger: ‘ifd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def671]
samba-4.23.4/source3/lib/smbrun.c:323:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:323:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:323:9: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING: [#def672]
samba-4.23.4/source3/lib/smbrun.c:324:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:323:9: release_resource: closed here
samba-4.23.4/source3/lib/smbrun.c:324:13: danger: ‘0’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def673]
samba-4.23.4/source3/lib/smbrun.c:325:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:324:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/smbrun.c:325:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:325:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:325:17: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def674]
samba-4.23.4/source3/lib/smbrun.c:326:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:324:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/smbrun.c:325:17: branch_true: ...to here
samba-4.23.4/source3/lib/smbrun.c:325:17: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:326:17: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:326:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:326:17: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def675]
samba-4.23.4/source3/lib/smbrun.c:333:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:324:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:333:9: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:333:9: throw: if ‘become_user_permanently’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:333:9: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def676]
samba-4.23.4/source3/lib/smbrun.c:335:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ifd[0]’
samba-4.23.4/source3/lib/smbrun.c:252:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:264:25: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:266:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:272:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/lib/smbrun.c:316:15: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:324:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/smbrun.c:333:9: branch_false: ...to here
samba-4.23.4/source3/lib/smbrun.c:335:14: throw: if ‘non_root_mode’ throws an exception...
samba-4.23.4/source3/lib/smbrun.c:335:14: danger: ‘ifd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
samba-4.23.4/source3/lib/sysacls.c:187:38: warning[-Wanalyzer-malloc-leak]: leak of ‘text’
samba-4.23.4/source3/lib/sysacls.c:159:29: acquire_memory: allocated here
samba-4.23.4/source3/lib/sysacls.c:159:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
samba-4.23.4/source3/lib/sysacls.c:159:12: branch_false: ...to here
samba-4.23.4/source3/lib/sysacls.c:164:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:165:45: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:187:38: throw: if ‘uidtoname’ throws an exception...
samba-4.23.4/source3/lib/sysacls.c:187:38: danger: ‘text’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
samba-4.23.4/source3/lib/sysacls.c:195:43: warning[-Wanalyzer-malloc-leak]: leak of ‘text’
samba-4.23.4/source3/lib/sysacls.c:159:29: acquire_memory: allocated here
samba-4.23.4/source3/lib/sysacls.c:159:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
samba-4.23.4/source3/lib/sysacls.c:159:12: branch_false: ...to here
samba-4.23.4/source3/lib/sysacls.c:164:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:165:45: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:195:43: throw: if ‘getgrgid’ throws an exception...
samba-4.23.4/source3/lib/sysacls.c:195:43: danger: ‘text’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def679]
samba-4.23.4/source3/lib/sysacls.c:234:45: warning[-Wanalyzer-malloc-leak]: leak of ‘text’
samba-4.23.4/source3/lib/sysacls.c:159:29: acquire_memory: allocated here
samba-4.23.4/source3/lib/sysacls.c:159:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
samba-4.23.4/source3/lib/sysacls.c:159:12: branch_false: ...to here
samba-4.23.4/source3/lib/sysacls.c:164:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:165:45: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:218:17: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:218:17: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:219:17: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:219:17: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:220:17: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:220:17: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:232:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/sysacls.c:233:50: branch_true: ...to here
samba-4.23.4/source3/lib/sysacls.c:234:45: throw: if ‘Realloc’ throws an exception...
samba-4.23.4/source3/lib/sysacls.c:234:45: danger: ‘text’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def680]
samba-4.23.4/source3/lib/tldap.c:162:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/tldap.c:2530:20: enter_function: entry to ‘tldap_delete_send’
samba-4.23.4/source3/lib/tldap.c:2542:15: call_function: calling ‘tldap_req_create’ from ‘tldap_delete_send’
samba-4.23.4/source3/lib/tldap.c:2542:15: return_function: returning to ‘tldap_delete_send’ from ‘tldap_req_create’
samba-4.23.4/source3/lib/tldap.c:2543:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/tldap.c:2547:33: branch_false: ...to here
samba-4.23.4/source3/lib/tldap.c:2547:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/tldap.c:2548:41: branch_true: ...to here
samba-4.23.4/source3/lib/tldap.c:2548:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/tldap.c:2549:14: branch_true: ...to here
samba-4.23.4/source3/lib/tldap.c:2549:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/tldap.c:2551:18: branch_true: ...to here
samba-4.23.4/source3/lib/tldap.c:2551:18: call_function: calling ‘tldap_msg_send’ from ‘tldap_delete_send’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def681]
samba-4.23.4/source3/lib/tldap_util.c:325:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/tldap_util.c:324:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/tldap_util.c:325:18: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/lib/tldap_util.c:325:18: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def682]
samba-4.23.4/source3/lib/tldap_util.c:363:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/tldap_util.c:382:9: enter_function: entry to ‘tldap_search_fmt’
samba-4.23.4/source3/lib/tldap_util.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/tldap_util.c:391:14: call_function: calling ‘tldap_search_va’ from ‘tldap_search_fmt’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def683]
samba-4.23.4/source3/lib/tldap_util.c:367:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/tldap_util.c:382:9: enter_function: entry to ‘tldap_search_fmt’
samba-4.23.4/source3/lib/tldap_util.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/tldap_util.c:391:14: call_function: calling ‘tldap_search_va’ from ‘tldap_search_fmt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
samba-4.23.4/source3/lib/util_sd.c:181:29: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def685]
samba-4.23.4/source3/lib/util_sd.c:185:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
samba-4.23.4/source3/lib/util_sd.c:186:17: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
samba-4.23.4/source3/lib/util_sd.c:189:18: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
samba-4.23.4/source3/lib/util_sd.c:194:18: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def689]
samba-4.23.4/source3/lib/util_sd.c:200:18: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
samba-4.23.4/source3/lib/util_sd.c:230:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:387:6: enter_function: entry to ‘parse_ace’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:409:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sd.c:415:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:418:14: call_function: calling ‘StringToSid’ from ‘parse_ace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
samba-4.23.4/source3/lib/util_sd.c:400:29: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:400:29: throw: if ‘_talloc_stackframe’ throws an exception...
samba-4.23.4/source3/lib/util_sd.c:400:29: danger: ‘str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
samba-4.23.4/source3/lib/util_sd.c:407:9: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_true: following ‘true’ branch (when ‘ace’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_true: ...to here
samba-4.23.4/source3/lib/util_sd.c:407:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/lib/util_sd.c:407:9: danger: ‘str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
samba-4.23.4/source3/lib/util_sd.c:408:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/lib/util_sd.c:399:21: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_sd.c:402:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/lib/util_sd.c:407:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sd.c:408:13: throw: if ‘strchr_m’ throws an exception...
samba-4.23.4/source3/lib/util_sd.c:408:13: danger: ‘str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def694]
samba-4.23.4/source3/lib/util_sock.c:433:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor
samba-4.23.4/source3/lib/util_sock.c:419:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sock.c:422:14: branch_false: ...to here
samba-4.23.4/source3/lib/util_sock.c:431:21: acquire_resource: stream socket created here
samba-4.23.4/source3/lib/util_sock.c:432:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/util_sock.c:433:49: branch_true: ...to here
samba-4.23.4/source3/lib/util_sock.c:433:26: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def695]
samba-4.23.4/source3/lib/util_sock.c:883:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
samba-4.23.4/source3/lib/util_sock.c:860:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/util_sock.c:865:16: branch_true: ...to here
samba-4.23.4/source3/lib/util_sock.c:865:16: acquire_resource: stream socket created here
samba-4.23.4/source3/lib/util_sock.c:867:12: branch_false: following ‘false’ branch (when ‘sock != -1’)...
samba-4.23.4/source3/lib/util_sock.c:873:13: branch_false: ...to here
samba-4.23.4/source3/lib/util_sock.c:873:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sock.c:877:9: branch_false: ...to here
samba-4.23.4/source3/lib/util_sock.c:882:12: branch_true: following ‘true’ branch (when ‘path_len > 108’)...
samba-4.23.4/source3/lib/util_sock.c:883:17: branch_true: ...to here
samba-4.23.4/source3/lib/util_sock.c:883:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/util_sock.c:883:17: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def696]
samba-4.23.4/source3/lib/util_sock.c:906:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
samba-4.23.4/source3/lib/util_sock.c:860:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/util_sock.c:865:16: branch_true: ...to here
samba-4.23.4/source3/lib/util_sock.c:865:16: acquire_resource: stream socket created here
samba-4.23.4/source3/lib/util_sock.c:867:12: branch_false: following ‘false’ branch (when ‘sock != -1’)...
samba-4.23.4/source3/lib/util_sock.c:873:13: branch_false: ...to here
samba-4.23.4/source3/lib/util_sock.c:904:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_sock.c:905:12: branch_false: ...to here
samba-4.23.4/source3/lib/util_sock.c:905:12: branch_true: following ‘true’ branch (when ‘sock != -1’)...
samba-4.23.4/source3/lib/util_sock.c:906:17: branch_true: ...to here
samba-4.23.4/source3/lib/util_sock.c:906:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/lib/util_sock.c:906:17: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def697]
samba-4.23.4/source3/lib/util_str.c:467:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/util_str.c:466:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/util_str.c:467:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/lib/util_str.c:467:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def698]
samba-4.23.4/source3/lib/util_str.c:486:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/util_str.c:485:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/util_str.c:486:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/lib/util_str.c:486:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def699]
samba-4.23.4/source3/lib/util_tdb.c:81:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/util_tdb.c:121:8: enter_function: entry to ‘tdb_pack’
samba-4.23.4/source3/lib/util_tdb.c:126:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/util_tdb.c:127:18: call_function: calling ‘tdb_pack_va’ from ‘tdb_pack’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def700]
samba-4.23.4/source3/lib/util_tdb.c:100:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/util_tdb.c:121:8: enter_function: entry to ‘tdb_pack’
samba-4.23.4/source3/lib/util_tdb.c:126:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/util_tdb.c:127:18: call_function: calling ‘tdb_pack_va’ from ‘tdb_pack’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
samba-4.23.4/source3/lib/util_tdb.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/lib/util_tdb.c:154:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/util_tdb.c:155:29: branch_true: ...to here
samba-4.23.4/source3/lib/util_tdb.c:193:28: branch_false: following ‘false’ branch (when ‘bufsize >= len’)...
samba-4.23.4/source3/lib/util_tdb.c:195:28: branch_false: ...to here
samba-4.23.4/source3/lib/util_tdb.c:195:28: branch_true: following ‘true’ branch (when ‘ps’ is non-NULL)...
samba-4.23.4/source3/lib/util_tdb.c:196:39: branch_true: ...to here
samba-4.23.4/source3/lib/util_tdb.c:196:39: acquire_memory: allocated here
samba-4.23.4/source3/lib/util_tdb.c:197:36: branch_false: following ‘false’ branch...
samba-4.23.4/source3/lib/util_tdb.c:243:17: branch_false: ...to here
samba-4.23.4/source3/lib/util_tdb.c:154:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/util_tdb.c:155:29: branch_true: ...to here
samba-4.23.4/source3/lib/util_tdb.c:191:25: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def702]
samba-4.23.4/source3/lib/util_tdb.c:236:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/lib/util_tdb.c:152:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/lib/util_tdb.c:154:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/util_tdb.c:155:29: branch_true: ...to here
samba-4.23.4/source3/lib/util_tdb.c:236:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/util_tdb.c:236:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
samba-4.23.4/source3/lib/wins_srv.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of ‘src_ip_addr’
samba-4.23.4/source3/lib/wins_srv.c:77:23: acquire_memory: allocated here
samba-4.23.4/source3/lib/wins_srv.c:79:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/wins_srv.c:80:17: branch_true: ...to here
samba-4.23.4/source3/lib/wins_srv.c:80:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/wins_srv.c:80:17: danger: ‘src_ip_addr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
samba-4.23.4/source3/lib/wins_srv.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wins_ip_addr’
samba-4.23.4/source3/lib/wins_srv.c:76:24: acquire_memory: allocated here
samba-4.23.4/source3/lib/wins_srv.c:79:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/lib/wins_srv.c:80:17: branch_true: ...to here
samba-4.23.4/source3/lib/wins_srv.c:80:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/lib/wins_srv.c:80:17: danger: ‘wins_ip_addr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def705]
samba-4.23.4/source3/lib/wins_srv.c: scope_hint: In function ‘parse_ip’
samba-4.23.4/source3/lib/wins_srv.c:185:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def706]
samba-4.23.4/source3/lib/wins_srv.c:185:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
samba-4.23.4/source3/libads/ads_struct.c:95:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dn’
samba-4.23.4/source3/libads/ads_struct.c:102:12: enter_function: entry to ‘ads_build_dn’
samba-4.23.4/source3/libads/ads_struct.c:107:18: call_function: calling ‘ads_build_path’ from ‘ads_build_dn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
samba-4.23.4/source3/libads/ads_struct.c:136:14: warning[-Wanalyzer-malloc-leak]: leak of ‘dnsdomain’
samba-4.23.4/source3/libads/ads_struct.c:131:27: acquire_memory: allocated here
samba-4.23.4/source3/libads/ads_struct.c:131:12: branch_false: following ‘false’ branch (when ‘dnsdomain’ is non-NULL)...
samba-4.23.4/source3/libads/ads_struct.c:136:14: branch_false: ...to here
samba-4.23.4/source3/libads/ads_struct.c:136:14: throw: if ‘strlower_m’ throws an exception...
samba-4.23.4/source3/libads/ads_struct.c:136:14: danger: ‘dnsdomain’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def709]
samba-4.23.4/source3/libads/krb5_setpw.c:257:15: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
samba-4.23.4/source3/libads/krb5_setpw.c:183:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:189:20: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:189:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:195:15: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:196:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:203:9: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:234:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:240:60: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:245:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:255:9: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:256:20: acquire_memory: allocated here
samba-4.23.4/source3/libads/krb5_setpw.c:257:15: throw: if ‘krb5_get_init_creds_password’ throws an exception...
samba-4.23.4/source3/libads/krb5_setpw.c:257:15: danger: ‘password’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
samba-4.23.4/source3/libads/krb5_setpw.c:260:9: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
samba-4.23.4/source3/libads/krb5_setpw.c:183:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:189:20: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:189:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:195:15: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:196:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:203:9: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:234:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:240:60: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:245:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:255:9: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:256:20: acquire_memory: allocated here
samba-4.23.4/source3/libads/krb5_setpw.c:260:9: throw: if ‘krb5_get_init_creds_opt_free’ throws an exception...
samba-4.23.4/source3/libads/krb5_setpw.c:260:9: danger: ‘password’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
samba-4.23.4/source3/libads/krb5_setpw.c:261:9: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
samba-4.23.4/source3/libads/krb5_setpw.c:183:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:189:20: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:189:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:195:15: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:196:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:203:9: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:234:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:240:60: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:245:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libads/krb5_setpw.c:255:9: branch_false: ...to here
samba-4.23.4/source3/libads/krb5_setpw.c:256:20: acquire_memory: allocated here
samba-4.23.4/source3/libads/krb5_setpw.c:261:9: throw: if ‘smb_krb5_free_addresses’ throws an exception...
samba-4.23.4/source3/libads/krb5_setpw.c:261:9: danger: ‘password’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-704): [#def712]
samba-4.23.4/source3/libads/ldap.c: scope_hint: In function ‘ads_parent_dn’
samba-4.23.4/source3/libads/ldap.c:1855:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def713]
samba-4.23.4/source3/libads/ldap.c:1855:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
samba-4.23.4/source3/libads/ldap.c:4294:14: warning[-Wanalyzer-malloc-leak]: leak of ‘host’
samba-4.23.4/source3/libads/ldap.c:4293:16: acquire_memory: allocated here
samba-4.23.4/source3/libads/ldap.c:4294:14: throw: if ‘strlower_m’ throws an exception...
samba-4.23.4/source3/libads/ldap.c:4294:14: danger: ‘host’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
samba-4.23.4/source3/libads/ldap_utils.c:87:26: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
samba-4.23.4/source3/libads/ldap_utils.c:89:26: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
samba-4.23.4/source3/libads/ldap_utils.c:92:16: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
samba-4.23.4/source3/libads/ldap_utils.c:103:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
samba-4.23.4/source3/libads/ldap_utils.c:104:52: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
samba-4.23.4/source3/libads/ldap_utils.c:105:21: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
samba-4.23.4/source3/libads/ldap_utils.c:107:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
samba-4.23.4/source3/libads/ldap_utils.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
samba-4.23.4/source3/libads/ldap_utils.c:116:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
samba-4.23.4/source3/libads/ldap_utils.c:119:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
samba-4.23.4/source3/libads/ldap_utils.c:125:28: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
samba-4.23.4/source3/libads/ldap_utils.c:129:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
samba-4.23.4/source3/libads/ldap_utils.c:131:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
samba-4.23.4/source3/libads/ldap_utils.c:137:29: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
samba-4.23.4/source3/libads/ldap_utils.c:138:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
samba-4.23.4/source3/libads/ldap_utils.c:142:26: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
samba-4.23.4/source3/libads/ldap_utils.c:144:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
samba-4.23.4/source3/libads/ldap_utils.c:153:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
samba-4.23.4/source3/libads/ldap_utils.c:166:34: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def734]
samba-4.23.4/source3/libads/ldap_utils.c:168:34: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
samba-4.23.4/source3/libads/ldap_utils.c:172:25: warning[-Wanalyzer-malloc-leak]: leak of ‘bp’
samba-4.23.4/source3/libads/ldap_utils.c:218:13: enter_function: entry to ‘ads_search_retry_dn_sd_flags’
samba-4.23.4/source3/libads/ldap_utils.c:229:16: call_function: inlined call to ‘ads_do_search_retry_args’ from ‘ads_search_retry_dn_sd_flags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def736]
samba-4.23.4/source3/libnet/libnet_dssync.c:555:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.23.4/source3/libnet/libnet_dssync.c:462:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:470:18: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:472:12: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:479:39: branch_false: following ‘false’ branch (when ‘last_query == 0’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:485:20: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:485:20: branch_true: following ‘true’ branch (when ‘level == 8’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:486:25: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:486:25: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:502:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:509:22: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:509:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:517:21: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:517:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:541:25: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:548:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:552:37: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:552:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:553:38: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:552:37: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:555:41: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:555:41: danger: dereference of NULL ‘new_utdv’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def737]
samba-4.23.4/source3/libnet/libnet_dssync.c:580:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_utdv’
samba-4.23.4/source3/libnet/libnet_dssync.c:462:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:470:18: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:472:12: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:479:39: branch_false: following ‘false’ branch (when ‘last_query == 0’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:485:20: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:485:20: branch_true: following ‘true’ branch (when ‘level == 8’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:486:25: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:486:25: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:502:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:509:22: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:509:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:517:21: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:517:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:541:25: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:541:25: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:548:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:549:33: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:593:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:594:34: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:597:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:605:20: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:605:20: branch_true: following ‘true’ branch (when ‘linked_attributes_count == 0’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:605:20: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:479:39: branch_false: following ‘false’ branch (when ‘last_query == 0’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:485:20: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:485:20: branch_true: following ‘true’ branch (when ‘level == 8’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:486:25: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:502:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:509:22: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:509:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:517:21: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:517:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:520:27: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:523:27: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:562:27: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:562:27: branch_true: following ‘true’ branch (when ‘out_level == 6’)...
samba-4.23.4/source3/libnet/libnet_dssync.c:563:25: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:573:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:577:37: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:577:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:578:38: branch_true: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:577:37: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_dssync.c:580:41: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_dssync.c:580:41: danger: dereference of NULL ‘new_utdv’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def738]
samba-4.23.4/source3/libnet/libnet_join.c:101:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libnet/libnet_join.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_join.c:100:9: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_join.c:100:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libnet/libnet_join.c:101:31: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/libnet/libnet_join.c:101:31: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def739]
samba-4.23.4/source3/libnet/libnet_join.c:124:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libnet/libnet_join.c:119:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libnet/libnet_join.c:123:9: branch_false: ...to here
samba-4.23.4/source3/libnet/libnet_join.c:123:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libnet/libnet_join.c:124:31: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/libnet/libnet_join.c:124:31: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def740]
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:700:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:674:20: enter_function: entry to ‘cli_smb2_set_info_fnum_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:686:26: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:691:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:695:18: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:695:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_set_info_fnum_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:695:18: return_function: returning to ‘cli_smb2_set_info_fnum_send’ from ‘map_fnum_to_smb2_handle’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:696:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:712:19: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:712:19: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:700:18: danger: dereference of NULL ‘ph’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def741]
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1911:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1883:20: enter_function: entry to ‘cli_smb2_query_info_fnum_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1897:26: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1902:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1906:18: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1906:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_query_info_fnum_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1906:18: return_function: returning to ‘cli_smb2_query_info_fnum_send’ from ‘map_fnum_to_smb2_handle’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1907:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1925:19: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1925:19: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:1911:18: danger: dereference of NULL ‘ph’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def742]
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4787:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4762:20: enter_function: entry to ‘cli_smb2_notify_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4773:26: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4778:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4782:18: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4782:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_notify_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4782:18: return_function: returning to ‘cli_smb2_notify_send’ from ‘map_fnum_to_smb2_handle’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4783:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4796:19: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4796:19: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4787:25: danger: dereference of NULL ‘ph’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def743]
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4982:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ph’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4958:20: enter_function: entry to ‘cli_smb2_fsctl_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4969:26: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4973:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4977:18: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4977:18: call_function: calling ‘map_fnum_to_smb2_handle’ from ‘cli_smb2_fsctl_send’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4977:18: return_function: returning to ‘cli_smb2_fsctl_send’ from ‘map_fnum_to_smb2_handle’
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4978:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4990:19: branch_false: ...to here
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4990:19: release_memory: ‘ph’ is NULL
samba-4.23.4/source3/libsmb/cli_smb2_fnum.c:4982:18: danger: dereference of NULL ‘ph’
Error: COMPILER_WARNING (CWE-704): [#def744]
samba-4.23.4/source3/libsmb/cliconnect.c: scope_hint: In function ‘cli_connect_nb_send’
samba-4.23.4/source3/libsmb/cliconnect.c:2536:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def745]
samba-4.23.4/source3/libsmb/cliconnect.c:2536:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def746]
samba-4.23.4/source3/libsmb/clilist.c:860:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘finfo’
samba-4.23.4/source3/libsmb/clilist.c:759:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clilist.c:767:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/clilist.c:780:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clilist.c:783:9: branch_false: ...to here
samba-4.23.4/source3/libsmb/clilist.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clilist.c:849:9: branch_false: ...to here
samba-4.23.4/source3/libsmb/clilist.c:853:12: branch_false: following ‘false’ branch (when ‘ff_eos == 0’)...
samba-4.23.4/source3/libsmb/clilist.c:859:9: branch_false: ...to here
samba-4.23.4/source3/libsmb/clilist.c:859:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clilist.c:860:44: branch_false: ...to here
samba-4.23.4/source3/libsmb/clilist.c:860:44: danger: dereference of NULL ‘finfo’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def747]
samba-4.23.4/source3/libsmb/cliprint.c:74:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
Error: GCC_ANALYZER_WARNING (CWE-121): [#def748]
samba-4.23.4/source3/libsmb/cliprint.c:170:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
Error: GCC_ANALYZER_WARNING (CWE-121): [#def749]
samba-4.23.4/source3/libsmb/clirap.c:63:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
Error: CPPCHECK_WARNING (CWE-457): [#def750]
samba-4.23.4/source3/libsmb/clirap.c:64: error[uninitvar]: Uninitialized variable: param
Error: GCC_ANALYZER_WARNING (CWE-121): [#def751]
samba-4.23.4/source3/libsmb/clirap.c:215:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.23.4/source3/libsmb/clirap.c:214:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.23.4/source3/libsmb/clirap.c:217:25: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:238:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:242:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:244:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.23.4/source3/libsmb/clirap.c:271:36: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:286:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:292:29: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:296:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/clirap.c:299:39: branch_true: ...to here
samba-4.23.4/source3/libsmb/clirap.c:309:28: branch_true: following ‘true’ branch (when ‘total_cnt == 0’)...
samba-4.23.4/source3/libsmb/clirap.c:310:45: branch_true: ...to here
samba-4.23.4/source3/libsmb/clirap.c:329:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:336:25: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:336:37: branch_true: following ‘true’ branch (when ‘i < count’)...
samba-4.23.4/source3/libsmb/clirap.c:341:53: branch_true: ...to here
samba-4.23.4/source3/libsmb/clirap.c:344:36: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:350:51: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:336:37: branch_false: following ‘false’ branch (when ‘i >= count’)...
samba-4.23.4/source3/libsmb/clirap.c:385:28: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:385:28: branch_false: following ‘false’ branch (when ‘last_entry’ is NULL)...
samba-4.23.4/source3/libsmb/clirap.c:390:28: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:390:28: branch_true: following ‘true’ branch (when ‘sname’ is non-NULL)...
samba-4.23.4/source3/libsmb/clirap.c:391:46: branch_true: ...to here
samba-4.23.4/source3/libsmb/clirap.c:395:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:401:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:401:17: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:402:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:402:17: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:403:18: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:403:18: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/clirap.c:403:18: branch_true: ...to here
samba-4.23.4/source3/libsmb/clirap.c:214:20: branch_true: following ‘true’ branch (when ‘func == 215’)...
samba-4.23.4/source3/libsmb/clirap.c:215:25: branch_true: ...to here
samba-4.23.4/source3/libsmb/clirap.c:215:25: danger: out-of-bounds write from byte 1024 till byte 1025 but ‘param’ ends at byte 1024
Error: GCC_ANALYZER_WARNING (CWE-121): [#def752]
samba-4.23.4/source3/libsmb/clirap.c:217:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.23.4/source3/libsmb/clirap.c:214:20: branch_false: following ‘false’ branch (when ‘func != 215’)...
samba-4.23.4/source3/libsmb/clirap.c:217:25: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:217:25: danger: out-of-bounds write from byte 1024 till byte 1025 but ‘param’ ends at byte 1024
Error: CPPCHECK_WARNING (CWE-457): [#def753]
samba-4.23.4/source3/libsmb/clirap.c:220: error[uninitvar]: Uninitialized variable: param
Error: GCC_ANALYZER_WARNING (CWE-121): [#def754]
samba-4.23.4/source3/libsmb/clirap.c:447:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
samba-4.23.4/source3/libsmb/clirap.c:440:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/clirap.c:445:9: branch_false: ...to here
samba-4.23.4/source3/libsmb/clirap.c:447:9: danger: out-of-bounds write from byte 1024 till byte 1025 but ‘param’ ends at byte 1024
Error: CPPCHECK_WARNING (CWE-457): [#def755]
samba-4.23.4/source3/libsmb/clirap.c:448: error[uninitvar]: Uninitialized variable: param
Error: GCC_ANALYZER_WARNING (CWE-404): [#def756]
samba-4.23.4/source3/libsmb/libsmb_context.c:394:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:393:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:394:17: throw: if ‘smbc_setOptionDebugToStderr’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:394:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def757]
samba-4.23.4/source3/libsmb/libsmb_context.c:398:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:397:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:398:17: throw: if ‘smbc_setOptionFullTimeNames’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:398:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def758]
samba-4.23.4/source3/libsmb/libsmb_context.c:402:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:401:34: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:402:17: throw: if ‘smbc_setOptionOpenShareMode’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:402:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def759]
samba-4.23.4/source3/libsmb/libsmb_context.c:407:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:406:25: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:407:17: throw: if ‘smbc_setFunctionAuthDataWithContext’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:407:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def760]
samba-4.23.4/source3/libsmb/libsmb_context.c:411:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:410:34: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:411:17: throw: if ‘smbc_setOptionUserData’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:411:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def761]
samba-4.23.4/source3/libsmb/libsmb_context.c:416:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:414:34: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:415:20: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:416:25: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:416:25: throw: if ‘smbc_setOptionSmbEncryptionLevel’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:416:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def762]
samba-4.23.4/source3/libsmb/libsmb_context.c:419:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:414:34: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:415:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:418:28: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:418:27: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:419:25: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:419:25: throw: if ‘smbc_setOptionSmbEncryptionLevel’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:419:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def763]
samba-4.23.4/source3/libsmb/libsmb_context.c:422:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:414:34: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:415:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:418:28: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:418:27: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:421:28: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:421:27: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:422:25: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:422:25: throw: if ‘smbc_setOptionSmbEncryptionLevel’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:422:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def764]
samba-4.23.4/source3/libsmb/libsmb_context.c:428:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:427:34: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:428:17: throw: if ‘smbc_setOptionBrowseMaxLmbCount’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:428:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def765]
samba-4.23.4/source3/libsmb/libsmb_context.c:432:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:430:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:430:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:431:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:432:17: throw: if ‘smbc_setOptionUrlEncodeReaddirEntries’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:432:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def766]
samba-4.23.4/source3/libsmb/libsmb_context.c:436:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:430:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:430:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:434:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:434:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:435:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:436:17: throw: if ‘smbc_setOptionOneSharePerServer’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:436:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def767]
samba-4.23.4/source3/libsmb/libsmb_context.c:440:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:430:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:430:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:434:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:434:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:438:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:438:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:439:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:440:17: throw: if ‘smbc_setOptionUseKerberos’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:440:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def768]
samba-4.23.4/source3/libsmb/libsmb_context.c:444:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:430:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:430:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:434:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:434:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:438:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:438:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:442:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:442:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:443:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:444:17: throw: if ‘smbc_setOptionFallbackAfterKerberos’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:444:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def769]
samba-4.23.4/source3/libsmb/libsmb_context.c:448:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:430:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:430:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:434:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:434:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:438:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:438:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:442:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:442:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:446:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:446:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:447:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:448:17: throw: if ‘smbc_setOptionUseCCache’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:448:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def770]
samba-4.23.4/source3/libsmb/libsmb_context.c:452:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/libsmb_context.c:390:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/libsmb_context.c:392:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:396:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:396:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:400:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:400:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:404:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:404:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:409:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:409:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:413:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:413:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:426:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:426:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:430:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:430:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:434:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:434:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:438:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:438:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:442:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:442:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:446:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:446:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:450:20: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:450:19: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source3/libsmb/libsmb_context.c:451:41: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:452:17: throw: if ‘smbc_setOptionNoAutoAnonymousLogin’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:452:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
samba-4.23.4/source3/libsmb/libsmb_context.c:632:17: warning[-Wanalyzer-malloc-leak]: leak of ‘user’
samba-4.23.4/source3/libsmb/libsmb_context.c:591:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:597:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:597:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:601:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:603:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:606:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:603:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:614:14: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:614:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:618:30: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:620:20: branch_true: following ‘true’ branch (when ‘user’ is NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:621:32: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:621:32: acquire_memory: allocated here
samba-4.23.4/source3/libsmb/libsmb_context.c:626:20: branch_false: following ‘false’ branch (when ‘user’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:632:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:632:17: throw: if ‘smbc_setUser’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:632:17: danger: ‘user’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
samba-4.23.4/source3/libsmb/libsmb_context.c:663:25: warning[-Wanalyzer-malloc-leak]: leak of ‘netbios_name’
samba-4.23.4/source3/libsmb/libsmb_context.c:591:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:597:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:597:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:601:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:603:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:606:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:603:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:614:14: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:642:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:649:21: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:649:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:656:31: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:657:48: acquire_memory: allocated here
samba-4.23.4/source3/libsmb/libsmb_context.c:658:28: branch_false: following ‘false’ branch (when ‘netbios_name’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:663:25: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:663:25: throw: if ‘smbc_getUser’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:663:25: danger: ‘netbios_name’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
samba-4.23.4/source3/libsmb/libsmb_context.c:673:17: warning[-Wanalyzer-malloc-leak]: leak of ‘netbios_name’
samba-4.23.4/source3/libsmb/libsmb_context.c:591:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:597:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:597:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:601:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:603:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:606:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:603:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:614:14: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:642:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:649:21: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:649:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/libsmb_context.c:650:40: branch_true: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:650:40: acquire_memory: allocated here
samba-4.23.4/source3/libsmb/libsmb_context.c:667:20: branch_false: following ‘false’ branch (when ‘netbios_name’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_context.c:673:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_context.c:673:17: throw: if ‘smbc_setNetbiosName’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_context.c:673:17: danger: ‘netbios_name’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
samba-4.23.4/source3/libsmb/libsmb_dir.c:111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dirent’
samba-4.23.4/source3/libsmb/libsmb_dir.c:92:13: branch_false: following ‘false’ branch (when ‘name’ is NULL)...
samba-4.23.4/source3/libsmb/libsmb_dir.c:93:13: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_dir.c:93:13: branch_false: following ‘false’ branch (when ‘comment’ is NULL)...
samba-4.23.4/source3/libsmb/libsmb_dir.c:100:16: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_dir.c:102:40: acquire_memory: allocated here
samba-4.23.4/source3/libsmb/libsmb_dir.c:104:12: branch_false: following ‘false’ branch (when ‘dirent’ is non-NULL)...
samba-4.23.4/source3/libsmb/libsmb_dir.c:111:9: branch_false: ...to here
samba-4.23.4/source3/libsmb/libsmb_dir.c:111:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/libsmb/libsmb_dir.c:111:9: danger: ‘dirent’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-768): [#def775]
samba-4.23.4/source3/libsmb/libsmb_dir.c:2137: 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
Error: COMPILER_WARNING (CWE-704): [#def776]
samba-4.23.4/source3/libsmb/libsmb_path.c: scope_hint: In function ‘SMBC_parse_path’
samba-4.23.4/source3/libsmb/libsmb_path.c:270:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def777]
samba-4.23.4/source3/libsmb/libsmb_path.c:270:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def778]
samba-4.23.4/source3/libsmb/libsmb_xattr.c:1850: 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
Error: CPPCHECK_WARNING (CWE-768): [#def779]
samba-4.23.4/source3/libsmb/libsmb_xattr.c:1852: 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
Error: CPPCHECK_WARNING (CWE-768): [#def780]
samba-4.23.4/source3/libsmb/libsmb_xattr.c:1854: 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
Error: CPPCHECK_WARNING (CWE-768): [#def781]
samba-4.23.4/source3/libsmb/libsmb_xattr.c:2012: 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
Error: CPPCHECK_WARNING (CWE-768): [#def782]
samba-4.23.4/source3/libsmb/libsmb_xattr.c:2014: 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
Error: CPPCHECK_WARNING (CWE-768): [#def783]
samba-4.23.4/source3/libsmb/libsmb_xattr.c:2016: 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
Error: GCC_ANALYZER_WARNING (CWE-404): [#def784]
samba-4.23.4/source3/libsmb/pylibsmb.c:109:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/libsmb/pylibsmb.c:108:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/libsmb/pylibsmb.c:109:15: throw: if ‘PyArg_VaParseTupleAndKeywords’ throws an exception...
samba-4.23.4/source3/libsmb/pylibsmb.c:109:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def785]
samba-4.23.4/source3/libsmb/pylibsmb.c:674:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘share’
samba-4.23.4/source3/libsmb/pylibsmb.c:548:12: enter_function: entry to ‘py_cli_state_init’
samba-4.23.4/source3/libsmb/pylibsmb.c:582:45: call_function: calling ‘get_pytype’ from ‘py_cli_state_init’
samba-4.23.4/source3/libsmb/pylibsmb.c:582:45: return_function: returning to ‘py_cli_state_init’ from ‘get_pytype’
samba-4.23.4/source3/libsmb/pylibsmb.c:584:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:589:15: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:599:9: call_function: inlined call to ‘Py_DECREF’ from ‘py_cli_state_init’
samba-4.23.4/source3/libsmb/pylibsmb.c:601:12: branch_true: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:601:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:606:26: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:629:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:638:12: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:638:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:652:23: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:652:23: call_function: calling ‘py_cli_state_setup_ev’ from ‘py_cli_state_init’
samba-4.23.4/source3/libsmb/pylibsmb.c:652:23: return_function: returning to ‘py_cli_state_init’ from ‘py_cli_state_setup_ev’
samba-4.23.4/source3/libsmb/pylibsmb.c:653:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:659:13: branch_true: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:659:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:660:29: branch_true: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:666:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:672:35: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:674:15: danger: use of uninitialized value ‘share’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def786]
samba-4.23.4/source3/libsmb/pylibsmb.c:1785:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
samba-4.23.4/source3/libsmb/pylibsmb.c:1778:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:1785:15: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:1785:15: danger: use of uninitialized value ‘buflen’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def787]
samba-4.23.4/source3/libsmb/pylibsmb.c:1954:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
samba-4.23.4/source3/libsmb/pylibsmb.c:1947:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:1954:18: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:1954:18: danger: use of uninitialized value ‘size’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def788]
samba-4.23.4/source3/libsmb/pylibsmb.c:2016:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
samba-4.23.4/source3/libsmb/pylibsmb.c:2010:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:2016:15: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:2016:15: danger: use of uninitialized value ‘size’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def789]
samba-4.23.4/source3/libsmb/pylibsmb.c:2052:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag’
samba-4.23.4/source3/libsmb/pylibsmb.c:2046:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:2052:15: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:2052:15: danger: use of uninitialized value ‘flag’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def790]
samba-4.23.4/source3/libsmb/pylibsmb.c:3210:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buflen’
samba-4.23.4/source3/libsmb/pylibsmb.c:3205:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:3210:36: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:3210:9: danger: use of uninitialized value ‘buflen’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def791]
samba-4.23.4/source3/libsmb/pylibsmb.c:3281:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dst_offset’
samba-4.23.4/source3/libsmb/pylibsmb.c:3261:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:3267:14: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:3277:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/pylibsmb.c:3281:15: branch_false: ...to here
samba-4.23.4/source3/libsmb/pylibsmb.c:3281:15: danger: use of uninitialized value ‘dst_offset’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def792]
samba-4.23.4/source3/libsmb/smbsock_connect.c:1125:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
samba-4.23.4/source3/libsmb/smbsock_connect.c:1111:18: acquire_resource: datagram socket created here
samba-4.23.4/source3/libsmb/smbsock_connect.c:1112:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
samba-4.23.4/source3/libsmb/smbsock_connect.c:1116:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/smbsock_connect.c:1125:9: throw: if ‘set_sockaddr_port’ throws an exception...
samba-4.23.4/source3/libsmb/smbsock_connect.c:1125:9: danger: ‘sockfd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def793]
samba-4.23.4/source3/libsmb/smbsock_connect.c:1127:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
samba-4.23.4/source3/libsmb/smbsock_connect.c:1111:18: acquire_resource: datagram socket created here
samba-4.23.4/source3/libsmb/smbsock_connect.c:1112:12: branch_false: following ‘false’ branch (when ‘sockfd != -1’)...
samba-4.23.4/source3/libsmb/smbsock_connect.c:1116:17: branch_false: ...to here
samba-4.23.4/source3/libsmb/smbsock_connect.c:1127:15: throw: if ‘connect’ throws an exception...
samba-4.23.4/source3/libsmb/smbsock_connect.c:1127:15: danger: ‘sockfd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def794]
samba-4.23.4/source3/libsmb/unexpected.c:93:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘create_pipe_sock(nmbd_socket_dir, "unexpected", 493)’
samba-4.23.4/source3/libsmb/unexpected.c:80:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/unexpected.c:84:9: branch_false: ...to here
samba-4.23.4/source3/libsmb/unexpected.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/libsmb/unexpected.c:93:14: branch_false: ...to here
samba-4.23.4/source3/libsmb/unexpected.c:93:14: danger: ‘create_pipe_sock(nmbd_socket_dir, "unexpected", 493)’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def795]
samba-4.23.4/source3/modules/vfs_crossrename.c:165:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘openat(fsp_get_pathref_fd(srcfsp), *source.base_name, 0, 0)’
samba-4.23.4/source3/modules/vfs_crossrename.c:64:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:68:14: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:68:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:73:13: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:84:15: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:97:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:103:22: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:111:39: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:112:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:117:49: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:144:15: release_resource: first ‘close’ here
samba-4.23.4/source3/modules/vfs_crossrename.c:145:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:146:49: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:164:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:165:23: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:165:23: danger: second ‘close’ here; first ‘close’ was at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def796]
samba-4.23.4/source3/modules/vfs_crossrename.c:174:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘ofd’
samba-4.23.4/source3/modules/vfs_crossrename.c:64:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:68:14: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:68:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:73:13: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:84:15: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:97:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:103:22: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:106:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:111:39: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:112:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:117:49: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:145:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:151:15: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:151:15: release_resource: first ‘close’ here
samba-4.23.4/source3/modules/vfs_crossrename.c:152:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_crossrename.c:153:49: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:173:12: branch_true: following ‘true’ branch (when ‘ofd != -1’)...
samba-4.23.4/source3/modules/vfs_crossrename.c:174:23: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_crossrename.c:174:23: danger: second ‘close’ here; first ‘close’ was at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def797]
samba-4.23.4/source3/modules/vfs_default.c:3159:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_default.c:3137:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_default.c:3159:26: throw: if ‘fsp_get_io_fd’ throws an exception...
samba-4.23.4/source3/modules/vfs_default.c:3159:26: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def798]
samba-4.23.4/source3/modules/vfs_default.c:3163:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_default.c:3137:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_default.c:3163:26: throw: if ‘fsp_get_io_fd’ throws an exception...
samba-4.23.4/source3/modules/vfs_default.c:3163:26: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def799]
samba-4.23.4/source3/modules/vfs_dirsort.c:123:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘handle’
samba-4.23.4/source3/modules/vfs_dirsort.c:135:13: enter_function: entry to ‘dirsort_fdopendir’
samba-4.23.4/source3/modules/vfs_dirsort.c:143:12: branch_false: following ‘false’ branch (when ‘handle’ is NULL)...
samba-4.23.4/source3/modules/vfs_dirsort.c:150:16: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_dirsort.c:151:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_dirsort.c:155:9: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_dirsort.c:161:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_dirsort.c:166:14: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_dirsort.c:166:14: call_function: calling ‘open_and_sort_dir’ from ‘dirsort_fdopendir’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def800]
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(mapfile, "r")’
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:54:13: acquire_resource: opened here
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: danger: ‘fopen(mapfile, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(mapfile, "r")’
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:54:13: acquire_memory: allocated here
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:56:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/modules/vfs_expand_msdfs.c:62:9: danger: ‘fopen(mapfile, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def802]
samba-4.23.4/source3/modules/vfs_fruit.c:863: error[uninitvar]: Uninitialized variable: p
Error: COMPILER_WARNING (CWE-704): [#def803]
samba-4.23.4/source3/modules/vfs_fruit.c: scope_hint: In function ‘fruit_tmsize_do_dirent’
samba-4.23.4/source3/modules/vfs_fruit.c:5338:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def804]
samba-4.23.4/source3/modules/vfs_fruit.c:5338:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def805]
samba-4.23.4/source3/modules/vfs_full_audit.c:615:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_full_audit.c:2268:27: enter_function: entry to ‘smb_full_audit_offload_write_send’
samba-4.23.4/source3/modules/vfs_full_audit.c:2284:9: call_function: calling ‘do_log’ from ‘smb_full_audit_offload_write_send’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def806]
samba-4.23.4/source3/modules/vfs_full_audit.c:615:35: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_full_audit.c:2268:27: enter_function: entry to ‘smb_full_audit_offload_write_send’
samba-4.23.4/source3/modules/vfs_full_audit.c:2284:9: call_function: calling ‘do_log’ from ‘smb_full_audit_offload_write_send’
Error: COMPILER_WARNING: [#def807]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_set_quota’
samba-4.23.4/source3/modules/vfs_full_audit.c:834:61: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def808]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_shadow_copy_data’
samba-4.23.4/source3/modules/vfs_full_audit.c:848:72: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def809]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_statvfs’
samba-4.23.4/source3/modules/vfs_full_audit.c:861:59: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def810]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fs_capabilities’
samba-4.23.4/source3/modules/vfs_full_audit.c:872:58: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def811]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_get_dfs_referrals’
samba-4.23.4/source3/modules/vfs_full_audit.c:886:24: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def812]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_check_path’
samba-4.23.4/source3/modules/vfs_full_audit.c:967:24: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def813]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_create’
samba-4.23.4/source3/modules/vfs_full_audit.c:984:73: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def814]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_snap_delete’
samba-4.23.4/source3/modules/vfs_full_audit.c:998:73: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def815]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_readdir’
samba-4.23.4/source3/modules/vfs_full_audit.c:1027:50: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def816]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_rewinddir’
samba-4.23.4/source3/modules/vfs_full_audit.c:1037:52: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def817]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_closedir’
samba-4.23.4/source3/modules/vfs_full_audit.c:1079:60: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: GCC_ANALYZER_WARNING (CWE-404): [#def818]
samba-4.23.4/source3/modules/vfs_full_audit.c:1808:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_full_audit.c:1806:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_full_audit.c:1808:18: throw: if ‘smb_vfs_call_fcntl’ throws an exception...
samba-4.23.4/source3/modules/vfs_full_audit.c:1808:18: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def819]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_translate_name’
samba-4.23.4/source3/modules/vfs_full_audit.c:2174:76: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def820]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_fsctl’
samba-4.23.4/source3/modules/vfs_full_audit.c:2225:67: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def821]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_read_send’
samba-4.23.4/source3/modules/vfs_full_audit.c:2245:59: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def822]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_read_recv’
samba-4.23.4/source3/modules/vfs_full_audit.c:2263:79: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def823]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_write_send’
samba-4.23.4/source3/modules/vfs_full_audit.c:2284:60: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def824]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_offload_write_recv’
samba-4.23.4/source3/modules/vfs_full_audit.c:2297:80: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def825]
samba-4.23.4/source3/modules/vfs_full_audit.c: scope_hint: In function ‘smb_full_audit_durable_reconnect’
samba-4.23.4/source3/modules/vfs_full_audit.c:2904:25: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
samba-4.23.4/source3/modules/vfs_gpfs.c:1117:17: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
samba-4.23.4/source3/modules/vfs_gpfs.c:1100:37: acquire_memory: allocated here
samba-4.23.4/source3/modules/vfs_gpfs.c:1101:12: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
samba-4.23.4/source3/modules/vfs_gpfs.c:1106:9: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_gpfs.c:1113:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_gpfs.c:1114:52: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_gpfs.c:1117:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/modules/vfs_gpfs.c:1117:17: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def827]
samba-4.23.4/source3/modules/vfs_gpfs.c:1150:25: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
samba-4.23.4/source3/modules/vfs_gpfs.c:1100:37: acquire_memory: allocated here
samba-4.23.4/source3/modules/vfs_gpfs.c:1101:12: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
samba-4.23.4/source3/modules/vfs_gpfs.c:1106:9: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_gpfs.c:1113:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_gpfs.c:1114:52: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_gpfs.c:1150:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/modules/vfs_gpfs.c:1150:25: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
samba-4.23.4/source3/modules/vfs_gpfs.c:1163:17: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
samba-4.23.4/source3/modules/vfs_gpfs.c:1100:37: acquire_memory: allocated here
samba-4.23.4/source3/modules/vfs_gpfs.c:1101:12: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
samba-4.23.4/source3/modules/vfs_gpfs.c:1106:9: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_gpfs.c:1113:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_gpfs.c:1114:52: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_gpfs.c:1163:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/modules/vfs_gpfs.c:1163:17: danger: ‘result’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def829]
samba-4.23.4/source3/modules/vfs_media_harmony.c: scope_hint: In function ‘alloc_get_client_path’
samba-4.23.4/source3/modules/vfs_media_harmony.c:410:26: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def830]
samba-4.23.4/source3/modules/vfs_media_harmony.c:410:26: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
samba-4.23.4/source3/modules/vfs_recycle.c:291:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_str’
samba-4.23.4/source3/modules/vfs_recycle.c:285:19: acquire_memory: allocated here
samba-4.23.4/source3/modules/vfs_recycle.c:286:9: branch_false: following ‘false’ branch (when ‘tmp_str’ is non-NULL)...
samba-4.23.4/source3/modules/vfs_recycle.c:289:15: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_recycle.c:291:9: branch_true: following ‘true’ branch (when ‘new_dir’ is NULL)...
samba-4.23.4/source3/modules/vfs_recycle.c:291:9: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_recycle.c:291:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/modules/vfs_recycle.c:291:9: danger: ‘tmp_str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def832]
samba-4.23.4/source3/modules/vfs_shadow_copy2.c: scope_hint: In function ‘shadow_copy2_connect’
samba-4.23.4/source3/modules/vfs_shadow_copy2.c:3131:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def833]
samba-4.23.4/source3/modules/vfs_shadow_copy2.c:3131:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def834]
samba-4.23.4/source3/modules/vfs_streams_depot.c:384:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stream_dir_parent_fname’
samba-4.23.4/source3/modules/vfs_streams_depot.c:313:12: enter_function: entry to ‘stream_dir_remove_invalid’
samba-4.23.4/source3/modules/vfs_streams_depot.c:323:30: release_memory: ‘stream_dir_parent_fname’ is NULL
samba-4.23.4/source3/modules/vfs_streams_depot.c:329:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:341:15: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:341:15: call_function: calling ‘stream_dir_parent_pathref’ from ‘stream_dir_remove_invalid’
samba-4.23.4/source3/modules/vfs_streams_depot.c:341:15: return_function: returning to ‘stream_dir_remove_invalid’ from ‘stream_dir_parent_pathref’
samba-4.23.4/source3/modules/vfs_streams_depot.c:347:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:351:26: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:351:26: release_memory: ‘stream_dir_parent_fname’ is NULL
samba-4.23.4/source3/modules/vfs_streams_depot.c:358:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:358:12: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:379:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:384:23: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:384:23: danger: dereference of NULL ‘stream_dir_parent_fname’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def835]
samba-4.23.4/source3/modules/vfs_streams_depot.c:447:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rootdir_pathref’
samba-4.23.4/source3/modules/vfs_streams_depot.c:550:17: enter_function: entry to ‘walk_streams’
samba-4.23.4/source3/modules/vfs_streams_depot.c:557:30: release_memory: ‘stream_dir’ is NULL
samba-4.23.4/source3/modules/vfs_streams_depot.c:564:15: call_function: calling ‘stream_dir_pathref’ from ‘walk_streams’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def836]
samba-4.23.4/source3/modules/vfs_streams_depot.c:903:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rootdir_pathref’
samba-4.23.4/source3/modules/vfs_streams_depot.c:871:12: enter_function: entry to ‘streams_depot_unlinkat’
samba-4.23.4/source3/modules/vfs_streams_depot.c:878:30: release_memory: ‘rootdir_pathref’ is NULL
samba-4.23.4/source3/modules/vfs_streams_depot.c:879:30: release_memory: ‘rootdir_pathref’ is NULL
samba-4.23.4/source3/modules/vfs_streams_depot.c:884:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:889:15: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:891:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:894:42: branch_false: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:896:15: call_function: calling ‘streams_depot_rootdir_pathref’ from ‘streams_depot_unlinkat’
samba-4.23.4/source3/modules/vfs_streams_depot.c:896:15: return_function: returning to ‘streams_depot_unlinkat’ from ‘streams_depot_rootdir_pathref’
samba-4.23.4/source3/modules/vfs_streams_depot.c:902:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/modules/vfs_streams_depot.c:906:64: branch_true: ...to here
samba-4.23.4/source3/modules/vfs_streams_depot.c:906:64: release_memory: ‘rootdir_pathref’ is NULL
samba-4.23.4/source3/modules/vfs_streams_depot.c:903:23: danger: dereference of NULL ‘rootdir_pathref’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def837]
samba-4.23.4/source3/modules/vfs_streams_xattr.c:1655:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_streams_xattr.c:1652:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_streams_xattr.c:1655:15: throw: if ‘smb_vfs_call_fcntl’ throws an exception...
samba-4.23.4/source3/modules/vfs_streams_xattr.c:1655:15: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def838]
samba-4.23.4/source3/modules/vfs_time_audit.c:1376:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_time_audit.c:1374:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_time_audit.c:1376:9: throw: if ‘clock_gettime_mono’ throws an exception...
samba-4.23.4/source3/modules/vfs_time_audit.c:1376:9: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def839]
samba-4.23.4/source3/modules/vfs_time_audit.c:1377:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_time_audit.c:1374:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_time_audit.c:1377:18: throw: if ‘smb_vfs_call_fcntl’ throws an exception...
samba-4.23.4/source3/modules/vfs_time_audit.c:1377:18: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def840]
samba-4.23.4/source3/modules/vfs_time_audit.c:1378:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/modules/vfs_time_audit.c:1374:9: acquire_resource: ‘va_copy’ called here
samba-4.23.4/source3/modules/vfs_time_audit.c:1378:9: throw: if ‘clock_gettime_mono’ throws an exception...
samba-4.23.4/source3/modules/vfs_time_audit.c:1378:9: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def841]
samba-4.23.4/source3/modules/vfs_virusfilter.c: scope_hint: In function ‘virusfilter_vfs_connect’
samba-4.23.4/source3/modules/vfs_virusfilter.c:375:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def842]
samba-4.23.4/source3/modules/vfs_virusfilter.c:375:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def843]
samba-4.23.4/source3/modules/vfs_virusfilter.c:386:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def844]
samba-4.23.4/source3/modules/vfs_virusfilter.c:386:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def845]
samba-4.23.4/source3/modules/vfs_virusfilter.c:430:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def846]
samba-4.23.4/source3/modules/vfs_virusfilter.c:430:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def847]
samba-4.23.4/source3/modules/vfs_virusfilter.c:441:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def848]
samba-4.23.4/source3/modules/vfs_virusfilter.c:441:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:215:17: warning[-Wanalyzer-malloc-leak]: leak of ‘userdata’
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:201:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:205:58: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:205:58: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:205:19: branch_false: following ‘false’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:210:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:215:17: throw: if ‘release_name’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:215:17: danger: ‘userdata’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def850]
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c: scope_hint: In function ‘become_local_master_browser’
samba-4.23.4/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.23.4/source3/nmbd/nmbd_become_lmb.c:24: included_from: Included from here.
samba-4.23.4/source3/nmbd/nmbd.h:212:14: note: destination object ‘data’ of size 16
/usr/include/features.h:540: 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.23.4/lib/replace/replace.h:48: included_from: Included from here.
samba-4.23.4/source3/include/includes.h:23: included_from: Included from here.
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:23: included_from: Included from here.
/usr/include/bits/string_fortified.h:173:1: note: in a call to function ‘strlcpy’ declared with attribute ‘access (write_only, 1, 3)’
Error: COMPILER_WARNING: [#def851]
samba-4.23.4/source3/nmbd/nmbd_become_lmb.c:549:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
Error: COMPILER_WARNING: [#def852]
samba-4.23.4/source3/nmbd/nmbd_browsesync.c: scope_hint: In function ‘find_domain_master_name_query_success’
samba-4.23.4/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.23.4/source3/nmbd/nmbd_browsesync.c:24: included_from: Included from here.
samba-4.23.4/source3/nmbd/nmbd.h:212:14: note: destination object ‘data’ of size 16
/usr/include/features.h:540: 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.23.4/lib/replace/replace.h:48: included_from: Included from here.
samba-4.23.4/source3/include/includes.h:23: included_from: Included from here.
samba-4.23.4/source3/nmbd/nmbd_browsesync.c:23: included_from: Included from here.
/usr/include/bits/string_fortified.h:173:1: note: in a call to function ‘strlcpy’ declared with attribute ‘access (write_only, 1, 3)’
Error: COMPILER_WARNING: [#def853]
samba-4.23.4/source3/nmbd/nmbd_browsesync.c:337:9: warning[-Wstringop-overflow=]: ‘strlcpy’ writing 257 bytes into a region of size 16 overflows the destination
Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:529:33: warning[-Wanalyzer-malloc-leak]: leak of ‘prdata’
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:469:12: branch_true: following ‘true’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:470:15: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:519:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:522:55: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:522:55: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:522:36: branch_false: following ‘false’ branch (when ‘prdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:528:25: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:528:37: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:529:33: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:529:33: throw: if ‘set_nb_flags’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:529:33: danger: ‘prdata’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:533:25: warning[-Wanalyzer-malloc-leak]: leak of ‘prdata’
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:469:12: branch_true: following ‘true’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:470:15: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:519:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:522:55: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:522:55: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:522:36: branch_false: following ‘false’ branch (when ‘prdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:528:25: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:528:37: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:533:25: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:533:25: throw: if ‘sort_query_replies’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_incomingrequests.c:533:25: danger: ‘prdata’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:215:28: warning[-Wanalyzer-malloc-leak]: leak of ‘namerec’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:204:12: branch_false: following ‘false’ branch (when ‘num_ips != 0’)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:209:11: branch_false: following ‘false’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:214:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:215:28: throw: if ‘malloc_array’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:215:28: danger: ‘namerec’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:217:17: warning[-Wanalyzer-malloc-leak]: leak of ‘namerec’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:204:12: branch_false: following ‘false’ branch (when ‘num_ips != 0’)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:209:11: branch_false: following ‘false’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:214:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:216:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:217:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:217:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:217:17: danger: ‘namerec’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:218:17: warning[-Wanalyzer-malloc-leak]: leak of ‘namerec’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:204:12: branch_false: following ‘false’ branch (when ‘num_ips != 0’)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:209:11: branch_false: following ‘false’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:214:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:216:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:217:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:218:17: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:218:17: danger: ‘namerec’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:225:9: warning[-Wanalyzer-malloc-leak]: leak of ‘namerec’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:204:12: branch_false: following ‘false’ branch (when ‘num_ips != 0’)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:208:19: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:209:11: branch_false: following ‘false’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:214:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:216:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:223:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:225:9: throw: if ‘make_nmb_name’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:225:9: danger: ‘namerec’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-590): [#def860]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:541: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (.) results in undefined behaviour.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def861]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:555:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:643:6: enter_function: entry to ‘dump_all_namelists’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:651:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:656:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:657:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:662:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:664:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:665:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:673:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:673:17: call_function: calling ‘dump_subnet_namelist’ from ‘dump_all_namelists’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def862]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:54: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:651:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:656:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:657:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:662:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:664:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:665:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:673:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:54: throw: if ‘get_next_subnet_maybe_unicast’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:54: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:676:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:651:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:656:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:657:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:662:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:664:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:665:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:676:14: throw: if ‘we_are_a_wins_client’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:676:14: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def864]
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:685:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:651:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:656:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:657:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:662:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:664:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:665:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:672:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:684:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:685:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:685:17: throw: if ‘dump_wins_subnet_namelist’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_namelistdb.c:685:17: danger: ‘fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def865]
samba-4.23.4/source3/nmbd/nmbd_nameregister.c:325:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userdata’
samba-4.23.4/source3/nmbd/nmbd_nameregister.c:320:46: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_nameregister.c:321:12: branch_false: following ‘false’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_nameregister.c:325:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_nameregister.c:325:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_nameregister.c:325:9: danger: ‘userdata’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def866]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:46:35: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:78:6: enter_function: entry to ‘process_logon_packet’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:272:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:22: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:284:29: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:285:21: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:285:21: call_function: calling ‘delay_logon’ from ‘process_logon_packet’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def867]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:56:16: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:78:6: enter_function: entry to ‘process_logon_packet’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:272:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:22: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:284:29: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:285:21: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:285:21: call_function: calling ‘delay_logon’ from ‘process_logon_packet’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def868]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:256:43: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:256:43: throw: if ‘lp_workgroup’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:256:43: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def870]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:264:21: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:264:21: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:264:21: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:265:25: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:264:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:265:25: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:265:25: throw: if ‘ndr_print_debug’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:265:25: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:271:26: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:271:26: throw: if ‘_talloc_tos’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:271:26: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:273:25: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:272:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:273:25: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:273:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:273:25: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:304:25: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:272:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:22: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:304:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:304:25: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:310:25: warning[-Wanalyzer-malloc-leak]: leak of ‘source_addr’
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:102:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:117:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:123:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:128:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:232:31: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:233:20: branch_false: following ‘false’ branch (when ‘source_addr’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:239:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:272:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:283:22: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:310:25: throw: if ‘lp_netbios_name’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_processlogon.c:310:25: danger: ‘source_addr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:37:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rrec’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:93:25: enter_function: entry to ‘make_response_record’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:22: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:12: branch_false: following ‘false’ branch (when ‘rrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:109:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:120:11: branch_false: following ‘false’ branch (when ‘userdata’ is NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:147:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:162:9: call_function: calling ‘add_response_record’ from ‘make_response_record’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:46: warning[-Wanalyzer-malloc-leak]: leak of ‘rrec’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:22: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:12: branch_false: following ‘false’ branch (when ‘rrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:109:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:120:11: branch_true: following ‘true’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:20: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:46: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:46: throw: if the called function throws an exception...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:46: danger: ‘rrec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:124:33: warning[-Wanalyzer-malloc-leak]: leak of ‘rrec’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:22: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:12: branch_false: following ‘false’ branch (when ‘rrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:109:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:120:11: branch_true: following ‘true’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:20: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:46: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:27: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:124:33: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:124:33: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:124:33: danger: ‘rrec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:125:33: warning[-Wanalyzer-malloc-leak]: leak of ‘rrec’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:22: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:12: branch_false: following ‘false’ branch (when ‘rrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:109:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:120:11: branch_true: following ‘true’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:20: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:46: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:123:27: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:124:33: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:125:33: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:125:33: danger: ‘rrec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:133:33: warning[-Wanalyzer-malloc-leak]: leak of ‘rrec’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:22: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:12: branch_false: following ‘false’ branch (when ‘rrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:109:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:120:11: branch_true: following ‘true’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:20: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:132:41: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:131:27: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:133:33: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:133:33: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:133:33: danger: ‘rrec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:134:33: warning[-Wanalyzer-malloc-leak]: leak of ‘rrec’
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:22: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:104:12: branch_false: following ‘false’ branch (when ‘rrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:109:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:120:11: branch_true: following ‘true’ branch (when ‘userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:20: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:122:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:132:41: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:131:27: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:133:33: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:134:33: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_responserecordsdb.c:134:33: danger: ‘rrec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:71:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:265:6: enter_function: entry to ‘write_browse_list’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:367:39: call_function: calling ‘find_server_in_workgroup’ from ‘write_browse_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:190:68: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:265:6: enter_function: entry to ‘write_browse_list’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:379:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:400:45: call_function: calling ‘write_this_server_name’ from ‘write_browse_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:225:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:265:6: enter_function: entry to ‘write_browse_list’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:379:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:383:44: call_function: calling ‘write_this_workgroup_name’ from ‘write_browse_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:238:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:265:6: enter_function: entry to ‘write_browse_list’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:379:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:383:44: call_function: calling ‘write_this_workgroup_name’ from ‘write_browse_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: throw: if ‘lp_workgroup’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:342:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:342:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:342:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:342:17: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: throw: if ‘my_netbios_names’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def889]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:63: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:63: throw: if ‘get_next_subnet_maybe_unicast’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:63: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:365:36: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:365:36: throw: if ‘lp_workgroup’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:365:36: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:367:39: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:367:39: throw: if ‘my_netbios_names’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:367:39: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:374:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:45: branch_false: following ‘false’ branch (when ‘subrec’ is NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:374:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:374:17: throw: if ‘lp_workgroup’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:374:17: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def893]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:375:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:362:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:364:45: branch_false: following ‘false’ branch (when ‘subrec’ is NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:374:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:375:25: throw: if ‘_talloc_tos’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:375:25: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:379:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:381:52: branch_false: following ‘false’ branch (when ‘work’ is NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:55: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:55: throw: if ‘get_next_subnet_maybe_unicast’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:55: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def895]
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:397:36: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:301:11: branch_true: following ‘true’ branch (when ‘list_changed != 0’)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:304:9: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:307:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:310:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:317:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:326:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:327:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:341:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:352:50: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:378:37: branch_true: following ‘true’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:379:17: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:397:36: throw: if ‘is_myname’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_serverlistdb.c:397:36: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
samba-4.23.4/source3/nmbd/nmbd_subnetdb.c:172:9: warning[-Wanalyzer-malloc-leak]: leak of ‘subrec’
samba-4.23.4/source3/nmbd/nmbd_subnetdb.c:166:18: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_subnetdb.c:167:12: branch_false: following ‘false’ branch (when ‘subrec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_subnetdb.c:172:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_subnetdb.c:172:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_subnetdb.c:172:9: danger: ‘subrec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def897]
samba-4.23.4/source3/nmbd/nmbd_synclists.c:169:9: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/nmbd/nmbd_synclists.c:161:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:166:13: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:166:13: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:167:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:169:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:169:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:169:9: danger: ‘s’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def898]
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*s.fname, "r")’
samba-4.23.4/source3/nmbd/nmbd_synclists.c:281:13: acquire_resource: opened here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:283:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:283:12: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:286:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: throw: if ‘fgets_slash’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: danger: ‘fopen(*s.fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def899]
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*s.fname, "r")’
samba-4.23.4/source3/nmbd/nmbd_synclists.c:281:13: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:283:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:283:12: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:286:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: throw: if ‘fgets_slash’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_synclists.c:289:22: danger: ‘fopen(*s.fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-590): [#def900]
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:89: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (ip) results in undefined behaviour.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:167:25: warning[-Wanalyzer-malloc-leak]: leak of ‘new_userdata’
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:151:74: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:153:11: branch_false: following ‘false’ branch (when ‘new_userdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:156:33: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:167:25: throw: if ‘copy_packet’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsproxy.c:167:25: danger: ‘new_userdata’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def902]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘namerec’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2440:12: enter_function: entry to ‘wins_writedb_traverse_fn’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2445:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2449:19: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2449:19: call_function: calling ‘wins_record_to_name_record’ from ‘wins_writedb_traverse_fn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def903]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:185:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data.dptr’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:283:13: enter_function: entry to ‘store_or_replace_wins_namerec’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:293:16: call_function: calling ‘name_record_to_wins_record’ from ‘store_or_replace_wins_namerec’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def904]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:661:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(state_path(_talloc_tos("../../source3/nmbd/nmbd_winsserver.c:626"), "wins.dat"), "r")’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:603:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:607:19: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:608:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:613:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:616:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:622:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:627:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:632:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:632:14: acquire_resource: opened here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:634:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:634:12: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:640:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:641:23: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:661:22: throw: if ‘fgets_slash’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:661:22: danger: ‘fopen(state_path(_talloc_tos("../../source3/nmbd/nmbd_winsserver.c:626"), "wins.dat"), "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def905]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:661:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(state_path(_talloc_tos("../../source3/nmbd/nmbd_winsserver.c:626"), "wins.dat"), "r")’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:603:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:607:19: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:608:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:613:20: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:616:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:622:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:627:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:632:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:632:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:634:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:634:12: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:640:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:641:23: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:661:22: throw: if ‘fgets_slash’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:661:22: danger: ‘fopen(state_path(_talloc_tos("../../source3/nmbd/nmbd_winsserver.c:626"), "wins.dat"), "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1946:33: warning[-Wanalyzer-malloc-leak]: leak of ‘prdata’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1922:11: branch_false: following ‘false’ branch (when ‘num_ips != 0’)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1930:30: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1930:30: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1930:11: branch_false: following ‘false’ branch (when ‘prdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1930:11: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1942:42: branch_true: following ‘true’ branch (when ‘namerec’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1943:21: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1946:33: throw: if ‘set_nb_flags’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1946:33: danger: ‘prdata’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2012:25: warning[-Wanalyzer-malloc-leak]: leak of ‘prdata’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1983:11: branch_true: following ‘true’ branch (when ‘rcode == 0’)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1987:24: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1987:17: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1987:112: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2005:46: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2005:27: branch_false: following ‘false’ branch (when ‘prdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2011:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2011:28: branch_true: following ‘true’ branch (when ‘i < ip_count’)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2012:25: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2012:25: throw: if ‘set_nb_flags’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2012:25: danger: ‘prdata’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2016:17: warning[-Wanalyzer-malloc-leak]: leak of ‘prdata’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1983:11: branch_true: following ‘true’ branch (when ‘rcode == 0’)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1987:24: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1987:17: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:1987:112: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2002:19: branch_false: following ‘false’ branch (when ‘ip_count != 1’)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2005:46: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2005:46: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2005:27: branch_false: following ‘false’ branch (when ‘prdata’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2011:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2011:28: branch_false: following ‘false’ branch (when ‘i >= ip_count’)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2016:17: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2016:17: throw: if ‘sort_query_replies’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2016:17: danger: ‘prdata’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2523:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2481:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2486:12: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2503:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2505:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2509:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2510:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2515:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2515:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2516:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2523:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2523:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2523:9: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2527:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2481:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2486:12: branch_true: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2503:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2505:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2509:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2510:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2515:14: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2515:14: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2516:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2523:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2527:9: throw: if ‘tdb_traverse’ throws an exception...
samba-4.23.4/source3/nmbd/nmbd_winsserver.c:2527:9: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def911]
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:52:9: warning[-Wanalyzer-malloc-leak]: leak of ‘work’
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:68:28: enter_function: entry to ‘create_workgroup’
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:74:20: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:74:11: branch_false: following ‘false’ branch (when ‘work’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:78:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:80:9: call_function: calling ‘name_to_unstring’ from ‘create_workgroup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:55:17: warning[-Wanalyzer-malloc-leak]: leak of ‘work’
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:68:28: enter_function: entry to ‘create_workgroup’
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:74:20: acquire_memory: allocated here
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:74:11: branch_false: following ‘false’ branch (when ‘work’ is non-NULL)...
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:78:9: branch_false: ...to here
samba-4.23.4/source3/nmbd/nmbd_workgroupdb.c:80:9: call_function: calling ‘name_to_unstring’ from ‘create_workgroup’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def913]
samba-4.23.4/source3/param/loadparm.c:352:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parm_ptr’
samba-4.23.4/source3/param/loadparm.c:391:13: enter_function: entry to ‘free_one_parameter_by_snum’
samba-4.23.4/source3/param/loadparm.c:395:12: branch_true: following ‘true’ branch (when ‘snum < 0’)...
samba-4.23.4/source3/param/loadparm.c:396:28: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:396:28: call_function: calling ‘lp_parm_ptr’ from ‘free_one_parameter_by_snum’
samba-4.23.4/source3/param/loadparm.c:396:28: return_function: returning to ‘free_one_parameter_by_snum’ from ‘lp_parm_ptr’
samba-4.23.4/source3/param/loadparm.c:403:9: call_function: calling ‘free_one_parameter_common’ from ‘free_one_parameter_by_snum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def914]
samba-4.23.4/source3/param/loadparm.c:3153:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/param/loadparm.c:3138:13: enter_function: entry to ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3142:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3143:33: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3147:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
samba-4.23.4/source3/param/loadparm.c:3150:25: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3154:64: call_function: calling ‘lp_parm_ptr’ from ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3154:64: return_function: returning to ‘lp_save_defaults’ from ‘lp_parm_ptr’
samba-4.23.4/source3/param/loadparm.c:3153:60: danger: dereference of NULL ‘lp_parm_ptr(0, &parm_table[i])’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def915]
samba-4.23.4/source3/param/loadparm.c:3158:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/param/loadparm.c:3138:13: enter_function: entry to ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3142:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3143:33: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3147:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
samba-4.23.4/source3/param/loadparm.c:3150:25: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3161:51: call_function: calling ‘lp_parm_ptr’ from ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3161:51: return_function: returning to ‘lp_save_defaults’ from ‘lp_parm_ptr’
samba-4.23.4/source3/param/loadparm.c:3158:33: danger: dereference of NULL ‘lp_parm_ptr(0, &parm_table[i])’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def916]
samba-4.23.4/source3/param/loadparm.c:3170:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/param/loadparm.c:3138:13: enter_function: entry to ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3142:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3143:33: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3147:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
samba-4.23.4/source3/param/loadparm.c:3150:25: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3170:50: call_function: calling ‘lp_parm_ptr’ from ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3170:50: return_function: returning to ‘lp_save_defaults’ from ‘lp_parm_ptr’
samba-4.23.4/source3/param/loadparm.c:3170:41: danger: dereference of NULL ‘lp_parm_ptr(0, &parm_table[i])’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def917]
samba-4.23.4/source3/param/loadparm.c:3174:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/param/loadparm.c:3138:13: enter_function: entry to ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3142:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3143:33: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3147:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
samba-4.23.4/source3/param/loadparm.c:3150:25: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3174:50: call_function: calling ‘lp_parm_ptr’ from ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3174:50: return_function: returning to ‘lp_save_defaults’ from ‘lp_parm_ptr’
samba-4.23.4/source3/param/loadparm.c:3174:41: danger: dereference of NULL ‘lp_parm_ptr(0, &parm_table[i])’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def918]
samba-4.23.4/source3/param/loadparm.c:3181:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/param/loadparm.c:3138:13: enter_function: entry to ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3142:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3143:33: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3147:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
samba-4.23.4/source3/param/loadparm.c:3150:25: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3181:49: call_function: calling ‘lp_parm_ptr’ from ‘lp_save_defaults’
samba-4.23.4/source3/param/loadparm.c:3181:49: return_function: returning to ‘lp_save_defaults’ from ‘lp_parm_ptr’
samba-4.23.4/source3/param/loadparm.c:3181:41: danger: dereference of NULL ‘lp_parm_ptr(0, &parm_table[i])’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def919]
samba-4.23.4/source3/param/loadparm.c:3429:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(talloc_strdup(ctx, lines[1] + 5))’
samba-4.23.4/source3/param/loadparm.c:3293:12: branch_false: following ‘false’ branch (when ‘numlines > 3’)...
samba-4.23.4/source3/param/loadparm.c:3297:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3308:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3312:40: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3313:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3316:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3322:38: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3323:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3326:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3329:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3333:39: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3333:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3337:12: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3375:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3383:12: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3418:14: acquire_memory: allocated here
samba-4.23.4/source3/param/loadparm.c:3420:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3429:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3429:13: throw: if ‘sys_stat’ throws an exception...
samba-4.23.4/source3/param/loadparm.c:3429:13: danger: ‘opendir(talloc_strdup(ctx, lines[1] + 5))’ leaks here; was allocated at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
samba-4.23.4/source3/param/loadparm.c:3430:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(talloc_strdup(ctx, lines[1] + 5))’
samba-4.23.4/source3/param/loadparm.c:3293:12: branch_false: following ‘false’ branch (when ‘numlines > 3’)...
samba-4.23.4/source3/param/loadparm.c:3297:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3308:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3312:40: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3313:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3316:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3322:38: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3323:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3326:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3329:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3333:39: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3333:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3337:12: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3375:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3383:12: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3418:14: acquire_memory: allocated here
samba-4.23.4/source3/param/loadparm.c:3420:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3429:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3429:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3430:17: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3430:17: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3430:17: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3430:17: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/param/loadparm.c:3430:17: danger: ‘opendir(talloc_strdup(ctx, lines[1] + 5))’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def921]
samba-4.23.4/source3/param/loadparm.c:3436:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(talloc_strdup(ctx, lines[1] + 5))’
samba-4.23.4/source3/param/loadparm.c:3293:12: branch_false: following ‘false’ branch (when ‘numlines > 3’)...
samba-4.23.4/source3/param/loadparm.c:3297:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3308:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3312:40: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3313:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3316:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3318:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3322:38: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3323:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3326:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3329:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3333:39: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3333:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/param/loadparm.c:3337:12: branch_true: ...to here
samba-4.23.4/source3/param/loadparm.c:3375:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3383:12: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3418:14: acquire_memory: allocated here
samba-4.23.4/source3/param/loadparm.c:3420:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3429:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3429:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3436:9: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3436:9: danger: ‘opendir(talloc_strdup(ctx, lines[1] + 5))’ leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def922]
samba-4.23.4/source3/param/loadparm.c:3868:31: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(usersharepath)’
samba-4.23.4/source3/param/loadparm.c:3807:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3811:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3823:13: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3823:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3860:14: acquire_memory: allocated here
samba-4.23.4/source3/param/loadparm.c:3861:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/param/loadparm.c:3861:12: branch_false: ...to here
samba-4.23.4/source3/param/loadparm.c:3868:31: throw: if ‘readdir’ throws an exception...
samba-4.23.4/source3/param/loadparm.c:3868:31: danger: ‘opendir(usersharepath)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-704): [#def923]
samba-4.23.4/source3/param/util.c: scope_hint: In function ‘get_int_param’
samba-4.23.4/source3/param/util.c:30:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def924]
samba-4.23.4/source3/param/util.c:30:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def925]
samba-4.23.4/source3/param/util.c: scope_hint: In function ‘get_string_param’
samba-4.23.4/source3/param/util.c:45:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def926]
samba-4.23.4/source3/param/util.c:45:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def927]
samba-4.23.4/source3/passdb/machine_sid.c:98:14: warning[-Wanalyzer-malloc-leak]: leak of ‘sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:191:17: enter_function: entry to ‘get_global_sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:208:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:212:13: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:212:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:216:32: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:216:32: call_function: calling ‘pdb_generate_sam_sid’ from ‘get_global_sam_sid’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def928]
samba-4.23.4/source3/passdb/machine_sid.c:99:21: warning[-Wanalyzer-malloc-leak]: leak of ‘sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:191:17: enter_function: entry to ‘get_global_sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:208:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:212:13: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:212:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:216:32: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:216:32: call_function: calling ‘pdb_generate_sam_sid’ from ‘get_global_sam_sid’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def929]
samba-4.23.4/source3/passdb/machine_sid.c:100:25: warning[-Wanalyzer-malloc-leak]: leak of ‘sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:191:17: enter_function: entry to ‘get_global_sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:208:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:212:13: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:212:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:216:32: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:216:32: call_function: calling ‘pdb_generate_sam_sid’ from ‘get_global_sam_sid’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def930]
samba-4.23.4/source3/passdb/machine_sid.c:105:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:191:17: enter_function: entry to ‘get_global_sam_sid’
samba-4.23.4/source3/passdb/machine_sid.c:208:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:212:13: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:212:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/machine_sid.c:216:32: branch_false: ...to here
samba-4.23.4/source3/passdb/machine_sid.c:216:32: call_function: calling ‘pdb_generate_sam_sid’ from ‘get_global_sam_sid’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def931]
samba-4.23.4/source3/passdb/passdb.c:1744:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pw_hist’
samba-4.23.4/source3/passdb/passdb.c:1605:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/passdb.c:1613:15: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1649:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/passdb.c:1654:9: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1735:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/passdb.c:1736:47: branch_true: ...to here
samba-4.23.4/source3/passdb/passdb.c:1736:47: acquire_memory: allocated here
samba-4.23.4/source3/passdb/passdb.c:1737:20: branch_false: following ‘false’ branch (when ‘pw_hist’ is non-NULL)...
samba-4.23.4/source3/passdb/passdb.c:1741:17: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1742:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/passdb.c:1744:25: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/passdb.c:1744:25: branch_true: ...to here
samba-4.23.4/source3/passdb/passdb.c:1744:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/passdb/passdb.c:1744:25: danger: ‘pw_hist’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
samba-4.23.4/source3/passdb/passdb.c:1752:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pw_hist’
samba-4.23.4/source3/passdb/passdb.c:1605:11: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/passdb.c:1613:15: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1649:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/passdb.c:1654:9: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1735:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/passdb.c:1736:47: branch_true: ...to here
samba-4.23.4/source3/passdb/passdb.c:1736:47: acquire_memory: allocated here
samba-4.23.4/source3/passdb/passdb.c:1737:20: branch_false: following ‘false’ branch (when ‘pw_hist’ is non-NULL)...
samba-4.23.4/source3/passdb/passdb.c:1741:17: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1742:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/passdb.c:1744:25: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/passdb.c:1745:40: branch_false: ...to here
samba-4.23.4/source3/passdb/passdb.c:1746:37: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/passdb.c:1752:22: throw: if ‘pdb_set_pw_history’ throws an exception...
samba-4.23.4/source3/passdb/passdb.c:1752:22: danger: ‘pw_hist’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def933]
samba-4.23.4/source3/passdb/pdb_ldap.c:1515:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attr_list’
samba-4.23.4/source3/passdb/pdb_ldap.c:1540:17: enter_function: entry to ‘ldapsam_getsampwnam’
samba-4.23.4/source3/passdb/pdb_ldap.c:1550:21: call_function: calling ‘get_userattr_list’ from ‘ldapsam_getsampwnam’
samba-4.23.4/source3/passdb/pdb_ldap.c:1550:21: return_function: returning to ‘ldapsam_getsampwnam’ from ‘get_userattr_list’
samba-4.23.4/source3/passdb/pdb_ldap.c:1551:9: call_function: calling ‘get_userattr_key2string’ from ‘ldapsam_getsampwnam’
samba-4.23.4/source3/passdb/pdb_ldap.c:1551:9: return_function: returning to ‘ldapsam_getsampwnam’ from ‘get_userattr_key2string’
samba-4.23.4/source3/passdb/pdb_ldap.c:1551:9: call_function: inlined call to ‘append_attr’ from ‘ldapsam_getsampwnam’
samba-4.23.4/source3/passdb/pdb_ldap.c:1554:9: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_ldap.c:1554:9: call_function: calling ‘ldapsam_add_unix_attributes’ from ‘ldapsam_getsampwnam’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def934]
samba-4.23.4/source3/passdb/pdb_ldap.c:4398:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/passdb/pdb_ldap.c:4392:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_ldap.c:4396:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_ldap.c:4396:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/passdb/pdb_ldap.c:4397:19: branch_true: following ‘true’ branch (when ‘i < num’)...
samba-4.23.4/source3/passdb/pdb_ldap.c:4398:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_ldap.c:4398:29: throw: if ‘talloc_strdup’ throws an exception...
samba-4.23.4/source3/passdb/pdb_ldap.c:4398:29: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def935]
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:709:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:706:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:708:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:708:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:709:22: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:709:22: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def936]
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:949:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:946:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:948:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:948:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:949:22: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:949:22: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def937]
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1086: error[uninitvar]: Uninitialized variable: id_map.sid
Error: GCC_ANALYZER_WARNING (CWE-404): [#def938]
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1932:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1927:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1931:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1931:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1932:22: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source3/passdb/pdb_samba_dsdb.c:1932:22: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def939]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:96:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def940]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:96:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def941]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:106:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def942]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:106:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def943]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:108:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def944]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:108:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def945]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:111:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def946]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:111:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def947]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:131:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def948]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:131:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:189:14: enter_function: entry to ‘startsmbfilepwent’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:265:22: call_function: calling ‘pw_file_lock’ from ‘startsmbfilepwent’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def949]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pfile, "a+")’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: danger: ‘fopen(pfile, "a+")’ leaks here; was opened at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def950]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pfile, "a+")’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:197:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:202:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:239:28: branch_true: following ‘true’ branch (when ‘race_loop != 5’)...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:240:17: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:242:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:29: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:248:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:43: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:249:36: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: following ‘true’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: branch_true: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: throw: if ‘dbghdrclass’ throws an exception...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:250:41: danger: ‘fopen(pfile, "a+")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def951]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:796:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pfile, "r+")’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:754:13: enter_function: entry to ‘mod_smbfilepwd_entry’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:779:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:783:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:785:14: acquire_resource: opened here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:787:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:792:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:796:14: call_function: calling ‘pw_file_lock’ from ‘mod_smbfilepwd_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def952]
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:796:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pfile, "r+")’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:754:13: enter_function: entry to ‘mod_smbfilepwd_entry’
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:779:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:783:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:785:14: acquire_memory: allocated here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:787:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:792:9: branch_false: ...to here
samba-4.23.4/source3/passdb/pdb_smbpasswd.c:796:14: call_function: calling ‘pw_file_lock’ from ‘mod_smbfilepwd_entry’
Error: CPPCHECK_WARNING (CWE-457): [#def953]
samba-4.23.4/source3/passdb/pdb_tdb.c:802: error[uninitvar]: Uninitialized variable: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
samba-4.23.4/source3/printing/nt_printing.c:323:31: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source3/printing/nt_printing.c:700:12: enter_function: entry to ‘get_file_version’
samba-4.23.4/source3/printing/nt_printing.c:709:21: acquire_memory: allocated here
samba-4.23.4/source3/printing/nt_printing.c:710:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source3/printing/nt_printing.c:717:22: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:717:22: call_function: calling ‘printing_pread_data’ from ‘get_file_version’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
samba-4.23.4/source3/printing/nt_printing.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source3/printing/nt_printing.c:802:12: enter_function: entry to ‘file_version_is_newer’
samba-4.23.4/source3/printing/nt_printing.c:827:18: call_function: calling ‘driver_unix_convert’ from ‘file_version_is_newer’
samba-4.23.4/source3/printing/nt_printing.c:827:18: return_function: returning to ‘file_version_is_newer’ from ‘driver_unix_convert’
samba-4.23.4/source3/printing/nt_printing.c:828:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/nt_printing.c:832:18: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:852:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/nt_printing.c:862:15: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:862:15: call_function: calling ‘get_file_version’ from ‘file_version_is_newer’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def956]
samba-4.23.4/source3/printing/nt_printing.c:423:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
samba-4.23.4/source3/printing/nt_printing.c:802:12: enter_function: entry to ‘file_version_is_newer’
samba-4.23.4/source3/printing/nt_printing.c:827:18: call_function: calling ‘driver_unix_convert’ from ‘file_version_is_newer’
samba-4.23.4/source3/printing/nt_printing.c:827:18: return_function: returning to ‘file_version_is_newer’ from ‘driver_unix_convert’
samba-4.23.4/source3/printing/nt_printing.c:828:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/nt_printing.c:832:18: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:852:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/nt_printing.c:862:15: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:862:15: call_function: calling ‘get_file_version’ from ‘file_version_is_newer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
samba-4.23.4/source3/printing/nt_printing.c:683:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source3/printing/nt_printing.c:802:12: enter_function: entry to ‘file_version_is_newer’
samba-4.23.4/source3/printing/nt_printing.c:827:18: call_function: calling ‘driver_unix_convert’ from ‘file_version_is_newer’
samba-4.23.4/source3/printing/nt_printing.c:827:18: return_function: returning to ‘file_version_is_newer’ from ‘driver_unix_convert’
samba-4.23.4/source3/printing/nt_printing.c:828:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/nt_printing.c:832:18: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:852:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/nt_printing.c:862:15: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:862:15: call_function: calling ‘get_file_version’ from ‘file_version_is_newer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def958]
samba-4.23.4/source3/printing/nt_printing.c:719:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source3/printing/nt_printing.c:700:12: enter_function: entry to ‘get_file_version’
samba-4.23.4/source3/printing/nt_printing.c:709:21: acquire_memory: allocated here
samba-4.23.4/source3/printing/nt_printing.c:710:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source3/printing/nt_printing.c:717:22: branch_false: ...to here
samba-4.23.4/source3/printing/nt_printing.c:717:22: call_function: calling ‘printing_pread_data’ from ‘get_file_version’
samba-4.23.4/source3/printing/nt_printing.c:717:22: return_function: returning to ‘get_file_version’ from ‘printing_pread_data’
samba-4.23.4/source3/printing/nt_printing.c:718:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/printing/nt_printing.c:719:17: branch_true: ...to here
samba-4.23.4/source3/printing/nt_printing.c:719:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/nt_printing.c:719:17: danger: ‘buf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/1)
Error: COMPILER_WARNING (CWE-704): [#def959]
samba-4.23.4/source3/printing/nt_printing.c: scope_hint: In function ‘clean_up_driver_struct_level’
samba-4.23.4/source3/printing/nt_printing.c:1179:30: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
samba-4.23.4/source3/printing/nt_printing.c:1253:9: note: in expansion of macro ‘strip_driver_path’
Error: COMPILER_WARNING (CWE-704): [#def960]
samba-4.23.4/source3/printing/nt_printing.c:1253:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def961]
samba-4.23.4/source3/printing/nt_printing.c:1254:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def962]
samba-4.23.4/source3/printing/nt_printing.c:1256:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def963]
samba-4.23.4/source3/printing/nt_printing.c:1259:17: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def964]
samba-4.23.4/source3/printing/nt_printing.c:1264:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def965]
samba-4.23.4/source3/printing/nt_printing_migrate.c: scope_hint: In function ‘printing_tdb_migrate_printer’
samba-4.23.4/source3/printing/nt_printing_migrate.c:317:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def966]
samba-4.23.4/source3/printing/nt_printing_migrate.c:317:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def967]
samba-4.23.4/source3/printing/pcap.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/printing/pcap.c:54:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/pcap.c:57:19: acquire_memory: allocated here
samba-4.23.4/source3/printing/pcap.c:61:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/pcap.c:61:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
samba-4.23.4/source3/printing/pcap.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/source3/printing/pcap.c:54:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
samba-4.23.4/source3/printing/pcap.c:54:35: branch_false: ...to here
samba-4.23.4/source3/printing/pcap.c:54:35: acquire_memory: allocated here
samba-4.23.4/source3/printing/pcap.c:54:13: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
samba-4.23.4/source3/printing/pcap.c:57:19: branch_false: ...to here
samba-4.23.4/source3/printing/pcap.c:61:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/pcap.c:61:9: danger: ‘p’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def969]
samba-4.23.4/source3/printing/print_cups.c:113:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:454:13: enter_function: entry to ‘cups_pcap_load_async’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:505:9: call_function: calling ‘cups_cache_reload_async’ from ‘cups_pcap_load_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def970]
samba-4.23.4/source3/printing/print_cups.c:117:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:454:13: enter_function: entry to ‘cups_pcap_load_async’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:505:9: call_function: calling ‘cups_cache_reload_async’ from ‘cups_pcap_load_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def971]
samba-4.23.4/source3/printing/print_cups.c:320:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:454:13: enter_function: entry to ‘cups_pcap_load_async’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:505:9: call_function: calling ‘cups_cache_reload_async’ from ‘cups_pcap_load_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def972]
samba-4.23.4/source3/printing/print_cups.c:336:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:454:13: enter_function: entry to ‘cups_pcap_load_async’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:505:9: call_function: calling ‘cups_cache_reload_async’ from ‘cups_pcap_load_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def973]
samba-4.23.4/source3/printing/print_cups.c:339:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:454:13: enter_function: entry to ‘cups_pcap_load_async’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:505:9: call_function: calling ‘cups_cache_reload_async’ from ‘cups_pcap_load_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def974]
samba-4.23.4/source3/printing/print_cups.c:345:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:454:13: enter_function: entry to ‘cups_pcap_load_async’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:505:9: call_function: calling ‘cups_cache_reload_async’ from ‘cups_pcap_load_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def975]
samba-4.23.4/source3/printing/print_cups.c:478:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source3/printing/print_cups.c:478:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:478:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:478:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def976]
samba-4.23.4/source3/printing/print_cups.c:478:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source3/printing/print_cups.c:478:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:478:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:478:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def977]
samba-4.23.4/source3/printing/print_cups.c:480:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source3/printing/print_cups.c:478:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:480:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:480:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def978]
samba-4.23.4/source3/printing/print_cups.c:480:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source3/printing/print_cups.c:478:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:480:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:480:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def979]
samba-4.23.4/source3/printing/print_cups.c:481:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source3/printing/print_cups.c:478:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:481:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:481:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def980]
samba-4.23.4/source3/printing/print_cups.c:486:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/printing/print_cups.c:486:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:486:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:486:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def981]
samba-4.23.4/source3/printing/print_cups.c:486:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/printing/print_cups.c:486:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:486:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:486:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def982]
samba-4.23.4/source3/printing/print_cups.c:489:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/printing/print_cups.c:486:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:489:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:489:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def983]
samba-4.23.4/source3/printing/print_cups.c:489:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source3/printing/print_cups.c:486:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:489:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:489:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def984]
samba-4.23.4/source3/printing/print_cups.c:496:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:496:9: throw: if ‘close_all_print_db’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:496:9: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def985]
samba-4.23.4/source3/printing/print_cups.c:496:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:496:9: throw: if ‘close_all_print_db’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:496:9: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def986]
samba-4.23.4/source3/printing/print_cups.c:498:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:498:18: throw: if ‘reinit_after_fork’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:498:18: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def987]
samba-4.23.4/source3/printing/print_cups.c:498:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:498:18: throw: if ‘reinit_after_fork’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:498:18: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def988]
samba-4.23.4/source3/printing/print_cups.c:500:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/printing/print_cups.c:500:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:500:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:500:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def989]
samba-4.23.4/source3/printing/print_cups.c:500:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/printing/print_cups.c:500:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:500:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:500:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def990]
samba-4.23.4/source3/printing/print_cups.c:501:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/printing/print_cups.c:500:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:501:17: throw: if ‘smb_panic’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:501:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def991]
samba-4.23.4/source3/printing/print_cups.c:501:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/printing/print_cups.c:500:17: branch_true: ...to here
samba-4.23.4/source3/printing/print_cups.c:501:17: throw: if ‘smb_panic’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:501:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def992]
samba-4.23.4/source3/printing/print_cups.c:504:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:504:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:504:9: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def993]
samba-4.23.4/source3/printing/print_cups.c:504:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source3/printing/print_cups.c:464:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:470:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:472:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:476:15: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:477:12: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:485:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source3/printing/print_cups.c:496:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:499:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_cups.c:504:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_cups.c:504:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/print_cups.c:504:9: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def994]
samba-4.23.4/source3/printing/print_generic.c:57:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/printing/print_generic.c:43:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/printing/print_generic.c:47:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:52:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:57:18: throw: if ‘talloc_strdup’ throws an exception...
samba-4.23.4/source3/printing/print_generic.c:57:18: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def995]
samba-4.23.4/source3/printing/print_generic.c:63:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/printing/print_generic.c:43:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/printing/print_generic.c:47:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:52:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:58:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:63:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_generic.c:63:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/print_generic.c:63:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def996]
samba-4.23.4/source3/printing/print_generic.c:67:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/printing/print_generic.c:43:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/printing/print_generic.c:47:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:52:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:58:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_generic.c:63:9: branch_false: ...to here
samba-4.23.4/source3/printing/print_generic.c:65:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
samba-4.23.4/source3/printing/print_generic.c:66:23: branch_true: ...to here
samba-4.23.4/source3/printing/print_generic.c:67:26: throw: if ‘talloc_string_sub’ throws an exception...
samba-4.23.4/source3/printing/print_generic.c:67:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def997]
samba-4.23.4/source3/printing/print_iprint.c: scope_hint: In function ‘iprint_get_server_version’
samba-4.23.4/source3/printing/print_iprint.c:170:26: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def998]
samba-4.23.4/source3/printing/print_iprint.c:170:26: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def999]
samba-4.23.4/source3/printing/print_iprint.c:186:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1000]
samba-4.23.4/source3/printing/print_iprint.c:186:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1001]
samba-4.23.4/source3/printing/print_standard.c:77:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pcap_name, "r")’
samba-4.23.4/source3/printing/print_standard.c:71:26: acquire_resource: opened here
samba-4.23.4/source3/printing/print_standard.c:71:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_standard.c:71:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_standard.c:77:29: throw: if ‘fgets_slash’ throws an exception...
samba-4.23.4/source3/printing/print_standard.c:77:29: danger: ‘fopen(pcap_name, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
samba-4.23.4/source3/printing/print_standard.c:77:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pcap_name, "r")’
samba-4.23.4/source3/printing/print_standard.c:71:26: acquire_memory: allocated here
samba-4.23.4/source3/printing/print_standard.c:71:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/print_standard.c:71:12: branch_false: ...to here
samba-4.23.4/source3/printing/print_standard.c:77:29: throw: if ‘fgets_slash’ throws an exception...
samba-4.23.4/source3/printing/print_standard.c:77:29: danger: ‘fopen(pcap_name, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
samba-4.23.4/source3/printing/printing.c:1149:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(data.dsize)’
samba-4.23.4/source3/printing/printing.c:1145:37: acquire_memory: allocated here
samba-4.23.4/source3/printing/printing.c:1145:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/printing.c:1149:16: branch_false: ...to here
samba-4.23.4/source3/printing/printing.c:1149:16: throw: if ‘tdb_pack’ throws an exception...
samba-4.23.4/source3/printing/printing.c:1149:16: danger: ‘malloc(data.dsize)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1004]
samba-4.23.4/source3/printing/queue_process.c:371:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:371:24: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1005]
samba-4.23.4/source3/printing/queue_process.c:374:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:374:16: throw: if ‘_talloc_tos’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:374:16: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1006]
samba-4.23.4/source3/printing/queue_process.c:374:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:374:16: throw: if ‘_talloc_tos’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:374:16: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1007]
samba-4.23.4/source3/printing/queue_process.c:375:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:375:9: throw: if ‘get_dyn_SAMBA_LIBEXECDIR’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:375:9: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1008]
samba-4.23.4/source3/printing/queue_process.c:375:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:375:9: throw: if ‘get_dyn_SAMBA_LIBEXECDIR’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:375:9: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1009]
samba-4.23.4/source3/printing/queue_process.c:377:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:377:9: throw: if ‘str_list_add_printf’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:377:9: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1010]
samba-4.23.4/source3/printing/queue_process.c:377:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:377:9: throw: if ‘str_list_add_printf’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:377:9: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1011]
samba-4.23.4/source3/printing/queue_process.c:379:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:379:9: throw: if ‘str_list_add_printf’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:379:9: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1012]
samba-4.23.4/source3/printing/queue_process.c:381:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:381:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:381:9: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1013]
samba-4.23.4/source3/printing/queue_process.c:383:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:383:14: throw: if ‘is_default_dyn_CONFIGFILE’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:383:14: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1014]
samba-4.23.4/source3/printing/queue_process.c:384:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:383:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:384:17: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:384:17: throw: if ‘get_dyn_CONFIGFILE’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:384:17: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1015]
samba-4.23.4/source3/printing/queue_process.c:387:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:387:14: throw: if ‘is_default_dyn_LOGFILEBASE’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:387:14: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1016]
samba-4.23.4/source3/printing/queue_process.c:388:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:387:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:388:17: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:388:17: throw: if ‘get_dyn_LOGFILEBASE’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:388:17: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1017]
samba-4.23.4/source3/printing/queue_process.c:391:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:391:9: throw: if ‘str_list_add_printf’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:391:9: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1018]
samba-4.23.4/source3/printing/queue_process.c:396:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:392:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:396:15: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:396:15: throw: if ‘posix_spawn’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:396:15: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1019]
samba-4.23.4/source3/printing/queue_process.c:402:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:392:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:396:15: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:397:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:400:9: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:400:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:402:9: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:402:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:402:9: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1020]
samba-4.23.4/source3/printing/queue_process.c:404:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/printing/queue_process.c:370:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/printing/queue_process.c:374:16: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:392:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:396:15: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:397:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:400:9: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:400:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/printing/queue_process.c:402:9: branch_false: ...to here
samba-4.23.4/source3/printing/queue_process.c:404:17: throw: if ‘sys_read’ throws an exception...
samba-4.23.4/source3/printing/queue_process.c:404:17: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1021]
samba-4.23.4/source3/registry/reg_api_util.c:53:23: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
samba-4.23.4/source3/registry/reg_api_util.c:42:22: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_api_util.c:42:12: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
samba-4.23.4/source3/registry/reg_api_util.c:46:13: branch_false: ...to here
samba-4.23.4/source3/registry/reg_api_util.c:48:12: branch_true: following ‘true’ branch (when ‘p’ is NULL)...
samba-4.23.4/source3/registry/reg_api_util.c:53:23: branch_true: ...to here
samba-4.23.4/source3/registry/reg_api_util.c:53:23: throw: if ‘reg_openhive’ throws an exception...
samba-4.23.4/source3/registry/reg_api_util.c:53:23: danger: ‘path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1022]
samba-4.23.4/source3/registry/reg_api_util.c:66:15: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
samba-4.23.4/source3/registry/reg_api_util.c:42:22: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_api_util.c:42:12: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
samba-4.23.4/source3/registry/reg_api_util.c:46:13: branch_false: ...to here
samba-4.23.4/source3/registry/reg_api_util.c:48:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_api_util.c:66:15: throw: if ‘reg_openhive’ throws an exception...
samba-4.23.4/source3/registry/reg_api_util.c:66:15: danger: ‘path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1023]
samba-4.23.4/source3/registry/reg_api_util.c:73:15: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
samba-4.23.4/source3/registry/reg_api_util.c:42:22: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_api_util.c:42:12: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
samba-4.23.4/source3/registry/reg_api_util.c:46:13: branch_false: ...to here
samba-4.23.4/source3/registry/reg_api_util.c:48:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_api_util.c:68:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source3/registry/reg_api_util.c:73:42: branch_false: ...to here
samba-4.23.4/source3/registry/reg_api_util.c:73:15: throw: if ‘reg_openkey’ throws an exception...
samba-4.23.4/source3/registry/reg_api_util.c:73:15: danger: ‘path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1024]
samba-4.23.4/source3/registry/reg_backend_db.c:1084:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
samba-4.23.4/source3/registry/reg_backend_db.c:1055:12: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
samba-4.23.4/source3/registry/reg_backend_db.c:1060:19: branch_false: ...to here
samba-4.23.4/source3/registry/reg_backend_db.c:1061:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_backend_db.c:1066:19: branch_false: ...to here
samba-4.23.4/source3/registry/reg_backend_db.c:1067:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_backend_db.c:1074:29: branch_false: ...to here
samba-4.23.4/source3/registry/reg_backend_db.c:1074:29: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_backend_db.c:1075:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
samba-4.23.4/source3/registry/reg_backend_db.c:1084:16: branch_false: ...to here
samba-4.23.4/source3/registry/reg_backend_db.c:1084:16: throw: if ‘tdb_pack’ throws an exception...
samba-4.23.4/source3/registry/reg_backend_db.c:1084:16: danger: ‘buffer’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1025]
samba-4.23.4/source3/registry/reg_format.c:803:17: warning[-Wanalyzer-file-leak]: leak of FILE
samba-4.23.4/source3/registry/reg_format.c:750:20: enter_function: entry to ‘reg_format_file’
samba-4.23.4/source3/registry/reg_format.c:764:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_format.c:769:15: branch_false: ...to here
samba-4.23.4/source3/registry/reg_format.c:769:15: call_function: calling ‘reg_format_file_opt’ from ‘reg_format_file’
samba-4.23.4/source3/registry/reg_format.c:769:15: return_function: returning to ‘reg_format_file’ from ‘reg_format_file_opt’
samba-4.23.4/source3/registry/reg_format.c:773:15: call_function: calling ‘reg_format_new’ from ‘reg_format_file’
samba-4.23.4/source3/registry/reg_format.c:773:15: return_function: returning to ‘reg_format_file’ from ‘reg_format_new’
samba-4.23.4/source3/registry/reg_format.c:775:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_format.c:781:9: branch_false: ...to here
samba-4.23.4/source3/registry/reg_format.c:783:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_format.c:789:14: branch_true: ...to here
samba-4.23.4/source3/registry/reg_format.c:789:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_format.c:794:29: branch_true: ...to here
samba-4.23.4/source3/registry/reg_format.c:796:25: acquire_resource: opened here
samba-4.23.4/source3/registry/reg_format.c:797:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_format.c:802:13: branch_false: ...to here
samba-4.23.4/source3/registry/reg_format.c:802:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_format.c:803:17: branch_true: ...to here
samba-4.23.4/source3/registry/reg_format.c:803:17: danger: leaks here; was opened at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1026]
samba-4.23.4/source3/registry/reg_format.c:803:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/registry/reg_format.c:750:20: enter_function: entry to ‘reg_format_file’
samba-4.23.4/source3/registry/reg_format.c:764:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_format.c:769:15: branch_false: ...to here
samba-4.23.4/source3/registry/reg_format.c:769:15: call_function: calling ‘reg_format_file_opt’ from ‘reg_format_file’
samba-4.23.4/source3/registry/reg_format.c:769:15: return_function: returning to ‘reg_format_file’ from ‘reg_format_file_opt’
samba-4.23.4/source3/registry/reg_format.c:773:15: call_function: calling ‘reg_format_new’ from ‘reg_format_file’
samba-4.23.4/source3/registry/reg_format.c:773:15: return_function: returning to ‘reg_format_file’ from ‘reg_format_new’
samba-4.23.4/source3/registry/reg_format.c:775:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_format.c:781:9: branch_false: ...to here
samba-4.23.4/source3/registry/reg_format.c:783:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_format.c:789:14: branch_true: ...to here
samba-4.23.4/source3/registry/reg_format.c:789:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_format.c:794:29: branch_true: ...to here
samba-4.23.4/source3/registry/reg_format.c:796:25: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_format.c:797:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_format.c:802:13: branch_false: ...to here
samba-4.23.4/source3/registry/reg_format.c:802:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_format.c:803:17: branch_true: ...to here
samba-4.23.4/source3/registry/reg_format.c:803:17: danger: ‘<unknown>’ leaks here; was allocated at [(22)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1027]
samba-4.23.4/source3/registry/reg_parse.c:755:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
samba-4.23.4/source3/registry/reg_parse.c:1060:5: enter_function: entry to ‘reg_parse_file’
samba-4.23.4/source3/registry/reg_parse.c:1066:14: acquire_resource: opened here
samba-4.23.4/source3/registry/reg_parse.c:1067:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_parse.c:1073:15: branch_false: ...to here
samba-4.23.4/source3/registry/reg_parse.c:1073:15: call_function: calling ‘reg_parse_fd’ from ‘reg_parse_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1028]
samba-4.23.4/source3/registry/reg_parse.c:803:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
samba-4.23.4/source3/registry/reg_parse.c:1060:5: enter_function: entry to ‘reg_parse_file’
samba-4.23.4/source3/registry/reg_parse.c:1066:14: acquire_resource: opened here
samba-4.23.4/source3/registry/reg_parse.c:1067:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_parse.c:1073:15: branch_false: ...to here
samba-4.23.4/source3/registry/reg_parse.c:1073:15: call_function: calling ‘reg_parse_fd’ from ‘reg_parse_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1029]
samba-4.23.4/source3/registry/reg_parse.c:804:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 0)’
samba-4.23.4/source3/registry/reg_parse.c:1060:5: enter_function: entry to ‘reg_parse_file’
samba-4.23.4/source3/registry/reg_parse.c:1066:14: acquire_resource: opened here
samba-4.23.4/source3/registry/reg_parse.c:1067:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_parse.c:1073:15: branch_false: ...to here
samba-4.23.4/source3/registry/reg_parse.c:1073:15: call_function: calling ‘reg_parse_fd’ from ‘reg_parse_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1030]
samba-4.23.4/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.23.4/source3/registry/reg_parse_internal.c:233:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_parse_internal.c:234:24: branch_true: ...to here
samba-4.23.4/source3/registry/reg_parse_internal.c:236:24: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_parse_internal.c:237:20: danger: ‘iconv_open(smbreg_get_charset(to), smbreg_get_charset(from))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1031]
samba-4.23.4/source3/registry/reg_parse_internal.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cd’
samba-4.23.4/source3/registry/reg_parse_internal.c:233:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_parse_internal.c:234:24: branch_true: ...to here
samba-4.23.4/source3/registry/reg_parse_internal.c:236:24: acquire_memory: allocated here
samba-4.23.4/source3/registry/reg_parse_internal.c:237:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/registry/reg_parse_internal.c:241:14: branch_false: ...to here
samba-4.23.4/source3/registry/reg_parse_internal.c:241:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/registry/reg_parse_internal.c:242:17: branch_true: ...to here
samba-4.23.4/source3/registry/reg_parse_internal.c:242:17: throw: if ‘iconv_close’ throws an exception...
samba-4.23.4/source3/registry/reg_parse_internal.c:242:17: danger: ‘cd’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1032]
samba-4.23.4/source3/rpc_client/local_np.c:107:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
samba-4.23.4/source3/rpc_client/local_np.c:77:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:80:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:86:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:90:9: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:96:12: branch_false: following ‘false’ branch (when ‘len <= 107’)...
samba-4.23.4/source3/rpc_client/local_np.c:101:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:101:23: acquire_resource: stream socket created here
samba-4.23.4/source3/rpc_client/local_np.c:102:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:107:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:107:15: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1033]
samba-4.23.4/source3/rpc_client/local_np.c:354:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[0]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:354:14: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: danger: ‘ready_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1034]
samba-4.23.4/source3/rpc_client/local_np.c:354:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:354:14: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1035]
samba-4.23.4/source3/rpc_client/local_np.c:357:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:356:23: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:357:17: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:357:17: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1036]
samba-4.23.4/source3/rpc_client/local_np.c:362:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:362:16: throw: if ‘str_list_make_empty’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1037]
samba-4.23.4/source3/rpc_client/local_np.c:363:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:363:9: throw: if ‘get_dyn_SAMBA_LIBEXECDIR’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:363:9: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1038]
samba-4.23.4/source3/rpc_client/local_np.c:365:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:365:14: throw: if ‘is_default_dyn_CONFIGFILE’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:365:14: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1039]
samba-4.23.4/source3/rpc_client/local_np.c:366:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:365:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:366:17: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:366:17: throw: if ‘get_dyn_CONFIGFILE’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:366:17: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1040]
samba-4.23.4/source3/rpc_client/local_np.c:369:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:369:9: throw: if ‘str_list_add_printf’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:369:9: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1041]
samba-4.23.4/source3/rpc_client/local_np.c:370:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:362:16: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:370:9: throw: if ‘str_list_add_printf’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:370:9: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1042]
samba-4.23.4/source3/rpc_client/local_np.c:407:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:356:23: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:406:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:407:17: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:407:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:407:17: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1043]
samba-4.23.4/source3/rpc_client/local_np.c:411:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:356:23: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:410:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:411:17: branch_true: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:411:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:411:17: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1044]
samba-4.23.4/source3/rpc_client/local_np.c:415:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ready_fds[1]’
samba-4.23.4/source3/rpc_client/local_np.c:343:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:347:15: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:348:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source3/rpc_client/local_np.c:354:14: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:355:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:356:23: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:410:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_client/local_np.c:414:9: branch_false: ...to here
samba-4.23.4/source3/rpc_client/local_np.c:415:16: throw: if ‘tevent_req_post’ throws an exception...
samba-4.23.4/source3/rpc_client/local_np.c:415:16: danger: ‘ready_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1045]
samba-4.23.4/source3/rpc_client/wsp_cli.c:887:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vvalue.vt_bstr_v.vvector_data’
samba-4.23.4/source3/rpc_client/wsp_cli.c:818:12: branch_false: following ‘false’ branch (when ‘outval’ is non-NULL)...
samba-4.23.4/source3/rpc_client/wsp_cli.c:822:12: branch_false: ...to here
samba-4.23.4/source3/rpc_client/wsp_cli.c:822:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.23.4/source3/rpc_client/wsp_cli.c:859:9: branch_false: ...to here
samba-4.23.4/source3/rpc_client/wsp_cli.c:859:21: branch_false: following ‘false’ branch (when ‘i >= count’)...
samba-4.23.4/source3/rpc_client/wsp_cli.c:886:9: branch_false: ...to here
samba-4.23.4/source3/rpc_client/wsp_cli.c:887:9: danger: use of uninitialized value ‘vvalue.vt_bstr_v.vvector_data’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1046]
samba-4.23.4/source3/rpc_client/wsp_cli.c:1420:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestr’
samba-4.23.4/source3/rpc_client/wsp_cli.c:1460:13: enter_function: entry to ‘process_query_node’
samba-4.23.4/source3/rpc_client/wsp_cli.c:1464:34: release_memory: ‘left’ is NULL
samba-4.23.4/source3/rpc_client/wsp_cli.c:1464:48: release_memory: ‘left’ is NULL
samba-4.23.4/source3/rpc_client/wsp_cli.c:1465:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
samba-4.23.4/source3/rpc_client/wsp_cli.c:1468:17: branch_false: ...to here
samba-4.23.4/source3/rpc_client/wsp_cli.c:1483:14: release_memory: ‘left’ is NULL
samba-4.23.4/source3/rpc_client/wsp_cli.c:1483:14: call_function: calling ‘process_query_node’ from ‘process_query_node’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1047]
samba-4.23.4/source3/rpc_client/wsp_cli.c:1457:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘crestriction’
samba-4.23.4/source3/rpc_client/wsp_cli.c:1460:13: enter_function: entry to ‘process_query_node’
samba-4.23.4/source3/rpc_client/wsp_cli.c:1464:34: release_memory: ‘left’ is NULL
samba-4.23.4/source3/rpc_client/wsp_cli.c:1464:48: release_memory: ‘left’ is NULL
samba-4.23.4/source3/rpc_client/wsp_cli.c:1465:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
samba-4.23.4/source3/rpc_client/wsp_cli.c:1468:17: branch_false: ...to here
samba-4.23.4/source3/rpc_client/wsp_cli.c:1483:14: release_memory: ‘left’ is NULL
samba-4.23.4/source3/rpc_client/wsp_cli.c:1483:14: call_function: calling ‘process_query_node’ from ‘process_query_node’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1048]
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:241:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:321:8: enter_function: entry to ‘_dfs_Enum’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:378:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:379:25: branch_true: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:381:25: call_function: calling ‘init_reply_dfs_info_1’ from ‘_dfs_Enum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1049]
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:253:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:321:8: enter_function: entry to ‘_dfs_Enum’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:378:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:379:25: branch_true: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:384:25: call_function: calling ‘init_reply_dfs_info_2’ from ‘_dfs_Enum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1050]
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:266:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘j’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:321:8: enter_function: entry to ‘_dfs_Enum’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:378:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:379:25: branch_true: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:387:25: call_function: calling ‘init_reply_dfs_info_3’ from ‘_dfs_Enum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1051]
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:308:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stor’
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:273:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:276:25: branch_false: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:281:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:287:17: branch_false: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:287:17: release_memory: ‘*dfs3.stores’ is NULL
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:290:18: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:293:50: branch_true: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:293:50: release_memory: ‘*dfs3.stores’ is NULL
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:297:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:300:17: branch_false: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:302:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:306:17: branch_false: ...to here
samba-4.23.4/source3/rpc_server/dfs/srv_dfs_nt.c:308:17: danger: dereference of NULL ‘stor’
Error: COMPILER_WARNING (CWE-704): [#def1052]
samba-4.23.4/source3/rpc_server/rpc_host.c: scope_hint: In function ‘rpc_exe_parse_iface_line’
samba-4.23.4/source3/rpc_server/rpc_host.c:316:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1053]
samba-4.23.4/source3/rpc_server/rpc_host.c:316:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1054]
samba-4.23.4/source3/rpc_server/rpc_host.c:1549:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘map’
samba-4.23.4/source3/rpc_server/rpc_host.c:1496:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/rpc_host.c:1496:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/rpc_host.c:1500:19: branch_true: following ‘true’ branch (when ‘i < num_ifaces’)...
samba-4.23.4/source3/rpc_server/rpc_host.c:1501:54: branch_true: ...to here
samba-4.23.4/source3/rpc_server/rpc_host.c:1514:27: branch_false: following ‘false’ branch (when ‘j >= num_maps’)...
samba-4.23.4/source3/rpc_server/rpc_host.c:1521:20: branch_false: ...to here
samba-4.23.4/source3/rpc_server/rpc_host.c:1521:20: branch_false: following ‘false’ branch (when ‘j != num_maps’)...
samba-4.23.4/source3/rpc_server/rpc_host.c:1549:21: branch_false: ...to here
samba-4.23.4/source3/rpc_server/rpc_host.c:1549:21: danger: dereference of NULL ‘map’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1055]
samba-4.23.4/source3/rpc_server/rpc_host.c:2151:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/rpc_server/rpc_host.c:2128:13: enter_function: entry to ‘rpc_host_endpoint_accept_got_bind’
samba-4.23.4/source3/rpc_server/rpc_host.c:2137:33: release_memory: ‘client’ is NULL
samba-4.23.4/source3/rpc_server/rpc_host.c:2142:15: call_function: calling ‘rpc_host_bind_read_recv’ from ‘rpc_host_endpoint_accept_got_bind’
samba-4.23.4/source3/rpc_server/rpc_host.c:2142:15: return_function: returning to ‘rpc_host_endpoint_accept_got_bind’ from ‘rpc_host_bind_read_recv’
samba-4.23.4/source3/rpc_server/rpc_host.c:2145:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/rpc_host.c:2151:57: branch_false: ...to here
samba-4.23.4/source3/rpc_server/rpc_host.c:2151:27: release_memory: ‘client’ is NULL
samba-4.23.4/source3/rpc_server/rpc_host.c:2151:9: danger: dereference of NULL ‘client’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1056]
samba-4.23.4/source3/rpc_server/rpc_host.c:2538:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/rpc_server/rpc_host.c:2514:13: enter_function: entry to ‘rpc_host_server_setup_done’
samba-4.23.4/source3/rpc_server/rpc_host.c:2520:28: release_memory: ‘server’ is NULL
samba-4.23.4/source3/rpc_server/rpc_host.c:2525:18: call_function: calling ‘rpc_server_setup_recv’ from ‘rpc_host_server_setup_done’
samba-4.23.4/source3/rpc_server/rpc_host.c:2525:18: return_function: returning to ‘rpc_host_server_setup_done’ from ‘rpc_server_setup_recv’
samba-4.23.4/source3/rpc_server/rpc_host.c:2527:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/rpc_host.c:2538:32: branch_false: ...to here
samba-4.23.4/source3/rpc_server/rpc_host.c:2538:15: release_memory: ‘server’ is NULL
samba-4.23.4/source3/rpc_server/rpc_host.c:2538:9: danger: dereference of NULL ‘server’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1057]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: throw: if ‘opendir’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1058]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:26: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:26: throw: if ‘readdirname’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:26: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1059]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev")’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:26: throw: if ‘readdirname’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:26: danger: ‘opendir("/dev")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1060]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:125:25: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:124:21: branch_true: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:125:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:125:25: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1061]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:130:39: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:124:21: branch_true: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:130:39: throw: if ‘open’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:130:39: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1062]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:131:33: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:123:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:124:21: branch_true: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:131:33: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:131:33: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:139:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:90:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:112:16: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:113:12: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:118:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:139:9: throw: if ‘closedir’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:139:9: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1064]
samba-4.23.4/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.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:153:12: branch_false: following ‘false’ branch (when ‘pass’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:160:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:166:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:174:22: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:174:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:185:13: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:204:13: acquire_resource: opened here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:204:12: danger: ‘dup2(open(slavedev, 2, 0), 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1065]
samba-4.23.4/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.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:153:12: branch_false: following ‘false’ branch (when ‘pass’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:160:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:166:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:174:22: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:174:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:185:13: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:204:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:209:13: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:209:13: acquire_resource: opened here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:209:12: danger: ‘dup2(open(slavedev, 2, 0), 1)’ leaks here; was opened at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1066]
samba-4.23.4/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.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:153:12: branch_false: following ‘false’ branch (when ‘pass’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:160:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:166:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:174:22: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:174:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:185:13: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:204:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:209:13: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:209:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:214:13: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:214:13: acquire_resource: opened here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:214:12: danger: ‘dup2(open(slavedev, 2, 0), 2)’ leaks here; was opened at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1067]
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:310:33: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:281:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:285:27: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:295:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:300:31: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:305:45: acquire_memory: allocated here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:306:36: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:310:33: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:310:33: throw: if ‘trim_char’ throws an exception...
samba-4.23.4/source3/rpc_server/samr/srv_samr_chgpasswd.c:310:33: danger: ‘str’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1068]
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2186:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2199:10: enter_function: entry to ‘_samr_LookupRids’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2215:17: call_function: calling ‘samr_policy_handle_find’ from ‘_samr_LookupRids’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2215:17: return_function: returning to ‘_samr_LookupRids’ from ‘samr_policy_handle_find’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2221:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2225:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2225:12: branch_false: following ‘false’ branch (when ‘num_rids <= 1000’)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2231:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2231:12: branch_false: following ‘false’ branch (when ‘num_rids == 0’)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2244:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2249:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2253:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2253:14: call_function: calling ‘make_samr_lookup_rids’ from ‘_samr_LookupRids’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1069]
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2187:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘names’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2199:10: enter_function: entry to ‘_samr_LookupRids’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2215:17: call_function: calling ‘samr_policy_handle_find’ from ‘_samr_LookupRids’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2215:17: return_function: returning to ‘_samr_LookupRids’ from ‘samr_policy_handle_find’
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2221:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2225:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2225:12: branch_false: following ‘false’ branch (when ‘num_rids <= 1000’)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2231:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2231:12: branch_false: following ‘false’ branch (when ‘num_rids == 0’)...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2244:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2249:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2253:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/samr/srv_samr_nt.c:2253:14: call_function: calling ‘make_samr_lookup_rids’ from ‘_samr_LookupRids’
Error: COMPILER_WARNING (CWE-704): [#def1070]
samba-4.23.4/source3/rpc_server/spoolss/srv_spoolss_nt.c: scope_hint: In function ‘_spoolss_SetPrinterDataEx’
samba-4.23.4/source3/rpc_server/spoolss/srv_spoolss_nt.c:10167:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1071]
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:218:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(talloc_asprintf(mem_ctx, "%s/%s/%s", get_dyn_MODULESDIR(), "svcctl", servicename), "r")’
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:255:13: enter_function: entry to ‘svcctl_add_service’
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:279:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:283:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:297:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:302:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:302:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:310:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:316:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:321:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:321:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:327:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:338:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:338:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:344:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:350:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:355:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:355:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:361:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:367:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:372:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:372:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:372:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:396:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:397:49: branch_true: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:411:21: call_function: calling ‘read_init_file’ from ‘svcctl_add_service’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1072]
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:218:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(talloc_asprintf(mem_ctx, "%s/%s/%s", get_dyn_MODULESDIR(), "svcctl", servicename), "r")’
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:255:13: enter_function: entry to ‘svcctl_add_service’
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:279:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:283:9: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:297:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:302:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:302:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:310:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:316:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:321:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:321:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:327:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:338:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:338:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:344:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:350:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:355:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:355:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:361:18: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:367:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:372:14: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:372:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:372:12: branch_false: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:396:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:397:49: branch_true: ...to here
samba-4.23.4/source3/rpc_server/svcctl/srv_svcctl_reg.c:411:21: call_function: calling ‘read_init_file’ from ‘svcctl_add_service’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1073]
samba-4.23.4/source3/rpcclient/cmd_echo.c:83:18: warning[-Wanalyzer-malloc-leak]: leak of ‘in_data’
samba-4.23.4/source3/rpcclient/cmd_echo.c:60:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:65:16: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:66:35: acquire_memory: allocated here
samba-4.23.4/source3/rpcclient/cmd_echo.c:66:12: branch_false: following ‘false’ branch (when ‘in_data’ is non-NULL)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:36: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:12: branch_false: following ‘false’ branch (when ‘out_data’ is non-NULL)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:12: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:83:18: throw: if ‘dcerpc_echo_EchoData’ throws an exception...
samba-4.23.4/source3/rpcclient/cmd_echo.c:83:18: danger: ‘in_data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1074]
samba-4.23.4/source3/rpcclient/cmd_echo.c:83:18: warning[-Wanalyzer-malloc-leak]: leak of ‘out_data’
samba-4.23.4/source3/rpcclient/cmd_echo.c:60:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:65:16: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:66:12: branch_false: following ‘false’ branch (when ‘in_data’ is non-NULL)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:36: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:36: acquire_memory: allocated here
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:12: branch_false: following ‘false’ branch (when ‘out_data’ is non-NULL)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:72:12: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:83:18: throw: if ‘dcerpc_echo_EchoData’ throws an exception...
samba-4.23.4/source3/rpcclient/cmd_echo.c:83:18: danger: ‘out_data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1075]
samba-4.23.4/source3/rpcclient/cmd_echo.c:126:18: warning[-Wanalyzer-malloc-leak]: leak of ‘out_data’
samba-4.23.4/source3/rpcclient/cmd_echo.c:112:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:117:16: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:118:36: acquire_memory: allocated here
samba-4.23.4/source3/rpcclient/cmd_echo.c:118:12: branch_false: following ‘false’ branch (when ‘out_data’ is non-NULL)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:126:18: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:126:18: throw: if ‘dcerpc_echo_SourceData’ throws an exception...
samba-4.23.4/source3/rpcclient/cmd_echo.c:126:18: danger: ‘out_data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1076]
samba-4.23.4/source3/rpcclient/cmd_echo.c:170:18: warning[-Wanalyzer-malloc-leak]: leak of ‘in_data’
samba-4.23.4/source3/rpcclient/cmd_echo.c:153:12: branch_false: following ‘false’ branch (when ‘argc == 2’)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:158:16: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:159:35: acquire_memory: allocated here
samba-4.23.4/source3/rpcclient/cmd_echo.c:159:12: branch_false: following ‘false’ branch (when ‘in_data’ is non-NULL)...
samba-4.23.4/source3/rpcclient/cmd_echo.c:159:12: branch_false: ...to here
samba-4.23.4/source3/rpcclient/cmd_echo.c:170:18: throw: if ‘dcerpc_echo_SinkData’ throws an exception...
samba-4.23.4/source3/rpcclient/cmd_echo.c:170:18: danger: ‘in_data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def1077]
samba-4.23.4/source3/rpcclient/cmd_spotlight.c:224: error[uninitvar]: Uninitialized variable: share_path
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1078]
samba-4.23.4/source3/rpcclient/rpcclient.c:840:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
samba-4.23.4/source3/rpcclient/rpcclient.c:835:23: acquire_memory: allocated here
samba-4.23.4/source3/rpcclient/rpcclient.c:835:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
samba-4.23.4/source3/rpcclient/rpcclient.c:840:9: branch_false: ...to here
samba-4.23.4/source3/rpcclient/rpcclient.c:840:9: throw: if ‘rep_memset_s’ throws an exception...
samba-4.23.4/source3/rpcclient/rpcclient.c:840:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-768): [#def1079]
samba-4.23.4/source3/smbd/durable.c:537: error[unknownEvaluationOrder]: Expression '.pid={.pid=0,}' depends on order of evaluation of side effects
Error: COMPILER_WARNING (CWE-704): [#def1080]
samba-4.23.4/source3/smbd/filename.c: scope_hint: In function ‘get_original_lcomp’
samba-4.23.4/source3/smbd/filename.c:423:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1081]
samba-4.23.4/source3/smbd/filename.c:423:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1082]
samba-4.23.4/source3/smbd/mangle_hash.c: scope_hint: In function ‘cache_mangled_name’
samba-4.23.4/source3/smbd/mangle_hash.c:818:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1083]
samba-4.23.4/source3/smbd/mangle_hash.c:818:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1084]
samba-4.23.4/source3/smbd/mangle_hash.c:930:25: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/smbd/mangle_hash.c:940:13: enter_function: entry to ‘to_8_3’
samba-4.23.4/source3/smbd/mangle_hash.c:948:19: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash.c:953:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash.c:957:13: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash.c:958:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/mangle_hash.c:959:35: call_function: calling ‘strisnormal’ from ‘to_8_3’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1085]
samba-4.23.4/source3/smbd/mangle_hash.c:932:17: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/smbd/mangle_hash.c:940:13: enter_function: entry to ‘to_8_3’
samba-4.23.4/source3/smbd/mangle_hash.c:948:19: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash.c:953:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash.c:957:13: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash.c:958:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/mangle_hash.c:959:35: call_function: calling ‘strisnormal’ from ‘to_8_3’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1086]
samba-4.23.4/source3/smbd/mangle_hash.c:963:32: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/smbd/mangle_hash.c:948:19: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash.c:953:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash.c:957:13: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash.c:958:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/mangle_hash.c:961:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/mangle_hash.c:963:32: throw: if ‘str_checksum’ throws an exception...
samba-4.23.4/source3/smbd/mangle_hash.c:963:32: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1087]
samba-4.23.4/source3/smbd/mangle_hash.c:966:32: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/smbd/mangle_hash.c:948:19: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash.c:953:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash.c:957:13: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash.c:958:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/mangle_hash.c:966:32: throw: if ‘str_checksum’ throws an exception...
samba-4.23.4/source3/smbd/mangle_hash.c:966:32: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1088]
samba-4.23.4/source3/smbd/mangle_hash.c:968:24: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/smbd/mangle_hash.c:948:19: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash.c:953:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash.c:957:13: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash.c:968:24: throw: if ‘str_checksum’ throws an exception...
samba-4.23.4/source3/smbd/mangle_hash.c:968:24: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1089]
samba-4.23.4/source3/smbd/mangle_hash.c:970:14: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
samba-4.23.4/source3/smbd/mangle_hash.c:948:19: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash.c:953:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash.c:957:13: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash.c:970:14: throw: if ‘strupper_m’ throws an exception...
samba-4.23.4/source3/smbd/mangle_hash.c:970:14: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1090]
samba-4.23.4/source3/smbd/mangle_hash2.c:318:9: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
samba-4.23.4/source3/smbd/mangle_hash2.c:312:21: acquire_memory: allocated here
samba-4.23.4/source3/smbd/mangle_hash2.c:314:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
samba-4.23.4/source3/smbd/mangle_hash2.c:320:43: branch_false: ...to here
samba-4.23.4/source3/smbd/mangle_hash2.c:318:9: throw: if ‘data_blob_const’ throws an exception...
samba-4.23.4/source3/smbd/mangle_hash2.c:318:9: danger: ‘str’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def1091]
samba-4.23.4/source3/smbd/mangle_hash2.c: scope_hint: In function ‘is_8_3’
samba-4.23.4/source3/smbd/mangle_hash2.c:461:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1092]
samba-4.23.4/source3/smbd/mangle_hash2.c:461:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1093]
samba-4.23.4/source3/smbd/mangle_hash2.c: scope_hint: In function ‘hash2_name_to_8_3’
samba-4.23.4/source3/smbd/mangle_hash2.c:705:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1094]
samba-4.23.4/source3/smbd/mangle_hash2.c:705:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1095]
samba-4.23.4/source3/smbd/msdfs.c: scope_hint: In function ‘parse_dfs_path_strict’
samba-4.23.4/source3/smbd/msdfs.c:136:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1096]
samba-4.23.4/source3/smbd/msdfs.c:136:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1097]
samba-4.23.4/source3/smbd/msdfs.c:750:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parent_smb_fname’
samba-4.23.4/source3/smbd/msdfs.c:655:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/msdfs.c:661:9: branch_false: ...to here
samba-4.23.4/source3/smbd/msdfs.c:682:38: release_memory: ‘smb_fname_walk’ is NULL
samba-4.23.4/source3/smbd/msdfs.c:684:17: branch_false: following ‘false’ branch (when ‘parent_smb_fname’ is NULL)...
samba-4.23.4/source3/smbd/msdfs.c:692:25: branch_false: ...to here
samba-4.23.4/source3/smbd/msdfs.c:701:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/msdfs.c:704:17: branch_false: ...to here
samba-4.23.4/source3/smbd/msdfs.c:706:20: branch_true: following ‘true’ branch (when ‘<unknown> != 3221226071’)...
samba-4.23.4/source3/smbd/msdfs.c:880:1: branch_true: ...to here
samba-4.23.4/source3/smbd/msdfs.c:742:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/msdfs.c:750:13: branch_false: ...to here
samba-4.23.4/source3/smbd/msdfs.c:750:13: danger: dereference of NULL ‘parent_smb_fname’
Error: CPPCHECK_WARNING (CWE-768): [#def1098]
samba-4.23.4/source3/smbd/open.c:2954: error[unknownEvaluationOrder]: Expression 'req,NULL,(struct timeval){.tv_usec=timeout_usecs},(struct timeval){.tv_usec=200000}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1099]
samba-4.23.4/source3/smbd/oplock_linux.c:191:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
samba-4.23.4/source3/smbd/oplock_linux.c:188:14: acquire_resource: opened here
samba-4.23.4/source3/smbd/oplock_linux.c:189:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/oplock_linux.c:191:15: branch_false: ...to here
samba-4.23.4/source3/smbd/oplock_linux.c:191:15: throw: if ‘fcntl’ throws an exception...
samba-4.23.4/source3/smbd/oplock_linux.c:191:15: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1100]
samba-4.23.4/source3/smbd/server.c:388: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1101]
samba-4.23.4/source3/smbd/smb1_ipc.c:70:17: warning[-Wanalyzer-null-argument]: use of NULL ‘rdata’ where non-null expected
samba-4.23.4/source3/smbd/smb1_ipc.c:853:6: enter_function: entry to ‘reply_transs’
samba-4.23.4/source3/smbd/smb1_ipc.c:863:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:869:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:869:43: branch_true: following ‘true’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/source3/smbd/smb1_ipc.c:871:21: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:876:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:901:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:902:38: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:901:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:905:12: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:921:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:922:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:921:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:927:9: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:929:9: call_function: calling ‘handle_trans’ from ‘reply_transs’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1102]
samba-4.23.4/source3/smbd/smb1_ipc.c:80:17: warning[-Wanalyzer-null-argument]: use of NULL ‘rdata’ where non-null expected
samba-4.23.4/source3/smbd/smb1_ipc.c:853:6: enter_function: entry to ‘reply_transs’
samba-4.23.4/source3/smbd/smb1_ipc.c:863:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:869:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:869:43: branch_true: following ‘true’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/source3/smbd/smb1_ipc.c:871:21: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:876:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:901:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:902:38: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:901:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:905:12: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:921:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:922:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:921:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_ipc.c:927:9: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_ipc.c:929:9: call_function: calling ‘handle_trans’ from ‘reply_transs’
Error: COMPILER_WARNING (CWE-704): [#def1103]
samba-4.23.4/source3/smbd/smb1_lanman.c: scope_hint: In function ‘strip_unc’
samba-4.23.4/source3/smbd/smb1_lanman.c:733:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1104]
samba-4.23.4/source3/smbd/smb1_nttrans.c:217:25: warning[-Wanalyzer-null-argument]: use of NULL ‘pp’ where non-null expected
samba-4.23.4/source3/smbd/smb1_nttrans.c:2613:6: enter_function: entry to ‘reply_nttranss’
samba-4.23.4/source3/smbd/smb1_nttrans.c:2629:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2635:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2635:43: branch_true: following ‘true’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2637:21: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2642:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2668:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2669:38: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2668:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2672:12: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2688:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2689:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2688:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2694:9: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2694:9: call_function: calling ‘handle_nttrans’ from ‘reply_nttranss’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1105]
samba-4.23.4/source3/smbd/smb1_nttrans.c:2163:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.23.4/source3/smbd/smb1_nttrans.c:2613:6: enter_function: entry to ‘reply_nttranss’
samba-4.23.4/source3/smbd/smb1_nttrans.c:2629:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2635:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2635:43: branch_true: following ‘true’ branch (when ‘state’ is non-NULL)...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2637:21: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2642:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2668:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2669:38: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2668:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2672:12: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2688:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2689:14: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2688:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_nttrans.c:2694:9: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_nttrans.c:2694:9: call_function: calling ‘handle_nttrans’ from ‘reply_nttranss’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1106]
samba-4.23.4/source3/smbd/smb1_process.c:2570:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2686:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2570:24: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1107]
samba-4.23.4/source3/smbd/smb1_process.c:2570:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2686:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2570:24: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1108]
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: throw: if ‘tdb_runtime_check_for_robust_mutexes’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1109]
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: throw: if ‘tdb_runtime_check_for_robust_mutexes’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1110]
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: throw: if ‘anonymous_shared_allocate’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1111]
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: throw: if ‘anonymous_shared_allocate’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1112]
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1113]
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2582:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1114]
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1115]
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2589:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1116]
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1117]
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2595:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1118]
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2600:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2601:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1119]
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2600:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2601:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2602:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1120]
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2600:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2601:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2607:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2608:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1121]
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2600:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2601:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2607:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2608:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2609:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1122]
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2600:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2601:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2607:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2608:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2614:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2617:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1123]
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2580:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2581:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2587:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2588:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2593:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2594:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2600:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2601:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2607:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2608:20: branch_false: following ‘false’ branch (when ‘res == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2614:23: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2617:20: branch_true: following ‘true’ branch (when ‘res != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2618:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1124]
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: throw: if ‘lp_lock_directory’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1125]
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: throw: if ‘lp_lock_directory’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1126]
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1127]
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2576:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2627:25: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1128]
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2635:17: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2636:12: branch_true: following ‘true’ branch (when ‘child == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1129]
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2635:17: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2636:12: branch_true: following ‘true’ branch (when ‘child == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1130]
samba-4.23.4/source3/smbd/smb1_process.c:2640:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2635:17: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2636:12: branch_true: following ‘true’ branch (when ‘child == 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2639:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2640:17: throw: if ‘set_blocking’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2640:17: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1131]
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2635:17: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2636:12: branch_false: following ‘false’ branch (when ‘child != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1132]
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2635:17: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2636:12: branch_false: following ‘false’ branch (when ‘child != 0’)...
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2655:9: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1133]
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1134]
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2681:17: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1135]
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1136]
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2684:17: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1137]
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2686:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2686:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1138]
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2686:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2686:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2687:17: danger: ‘listener_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1139]
samba-4.23.4/source3/smbd/smb1_process.c:2692:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[0]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2686:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2690:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2691:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2692:17: throw: if ‘anonymous_shared_free’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2692:17: danger: ‘listener_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1140]
samba-4.23.4/source3/smbd/smb1_process.c:2692:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listener_pipe[1]’
samba-4.23.4/source3/smbd/smb1_process.c:2568:12: branch_false: following ‘false’ branch (when ‘res != -1’)...
samba-4.23.4/source3/smbd/smb1_process.c:2574:21: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2628:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2629:25: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2680:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2683:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2683:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2686:13: branch_false: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2690:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb1_process.c:2691:17: branch_true: ...to here
samba-4.23.4/source3/smbd/smb1_process.c:2692:17: throw: if ‘anonymous_shared_free’ throws an exception...
samba-4.23.4/source3/smbd/smb1_process.c:2692:17: danger: ‘listener_pipe[1]’ leaks here
Error: CPPCHECK_WARNING (CWE-457): [#def1141]
samba-4.23.4/source3/smbd/smb2_create.c:1791: error[uninitvar]: Uninitialized variable: p
Error: CPPCHECK_WARNING (CWE-457): [#def1142]
samba-4.23.4/source3/smbd/smb2_create.c:1901: error[uninitvar]: Uninitialized variable: p
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1143]
samba-4.23.4/source3/smbd/smb2_ioctl_filesys.c:490:42: warning[-Wanalyzer-deref-before-check]: check of ‘((struct files_struct)*((files_struct *)fsp)).conn’ for NULL after already dereferencing it
samba-4.23.4/source3/smbd/smb2_ioctl_filesys.c:732:20: enter_function: entry to ‘smb2_ioctl_filesys’
samba-4.23.4/source3/smbd/smb2_ioctl_filesys.c:758:26: call_function: calling ‘fsctl_zero_data’ from ‘smb2_ioctl_filesys’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1144]
samba-4.23.4/source3/smbd/smb2_read.c:238:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.23.4/source3/smbd/smb2_read.c:227:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb2_read.c:228:31: branch_true: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:233:20: branch_false: following ‘false’ branch (when ‘saved_errno != 38’)...
samba-4.23.4/source3/smbd/smb2_read.c:237:20: branch_false: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:237:20: branch_true: following ‘true’ branch (when ‘saved_errno == 95’)...
samba-4.23.4/source3/smbd/smb2_read.c:238:42: branch_true: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:238:25: danger: pointer ‘*fsp.conn’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1145]
samba-4.23.4/source3/smbd/smb2_read.c:250:25: warning[-Wanalyzer-deref-before-check]: check of ‘*fsp.conn’ for NULL after already dereferencing it
samba-4.23.4/source3/smbd/smb2_read.c:227:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/smbd/smb2_read.c:228:31: branch_true: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:233:20: branch_false: following ‘false’ branch (when ‘saved_errno != 38’)...
samba-4.23.4/source3/smbd/smb2_read.c:237:20: branch_false: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:237:20: branch_false: following ‘false’ branch (when ‘saved_errno != 95’)...
samba-4.23.4/source3/smbd/smb2_read.c:244:20: branch_false: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:244:20: branch_true: following ‘true’ branch (when ‘saved_errno == 4’)...
samba-4.23.4/source3/smbd/smb2_read.c:250:42: branch_true: ...to here
samba-4.23.4/source3/smbd/smb2_read.c:250:25: danger: pointer ‘*fsp.conn’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1146]
samba-4.23.4/source3/smbd/smbXsrv_session.c:122: warning[uninitvar]: Uninitialized variable: key_buf
Error: CPPCHECK_WARNING (CWE-457): [#def1147]
samba-4.23.4/source3/smbd/smbXsrv_session.c:153: warning[uninitvar]: Uninitialized variable: key_buf
Error: CPPCHECK_WARNING (CWE-457): [#def1148]
samba-4.23.4/source3/smbd/smbXsrv_tcon.c:102: warning[uninitvar]: Uninitialized variable: key_buf
Error: CPPCHECK_WARNING (CWE-457): [#def1149]
samba-4.23.4/source3/smbd/smbXsrv_tcon.c:133: warning[uninitvar]: Uninitialized variable: key_buf
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1150]
samba-4.23.4/source3/smbd/vfs.c:1267:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
samba-4.23.4/source3/smbd/vfs.c:1263:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/source3/smbd/vfs.c:1267:9: branch_false: ...to here
samba-4.23.4/source3/smbd/vfs.c:1267:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/vfs.c:1267:9: danger: ‘pipe_fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1151]
samba-4.23.4/source3/smbd/vfs.c:1267:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
samba-4.23.4/source3/smbd/vfs.c:1263:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/source3/smbd/vfs.c:1267:9: branch_false: ...to here
samba-4.23.4/source3/smbd/vfs.c:1267:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source3/smbd/vfs.c:1267:9: danger: ‘pipe_fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1152]
samba-4.23.4/source3/smbd/vfs.c:2063:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/smbd/vfs.c:2060:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/smbd/vfs.c:2060:9: branch_false: ...to here
samba-4.23.4/source3/smbd/vfs.c:2062:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/smbd/vfs.c:2063:18: throw: if the called function throws an exception...
samba-4.23.4/source3/smbd/vfs.c:2063:18: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1153]
samba-4.23.4/source3/utils/interact.c:123:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "r")’
samba-4.23.4/source3/utils/interact.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/interact.c:95:17: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:96:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
samba-4.23.4/source3/utils/interact.c:104:9: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:108:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/interact.c:115:16: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:115:16: acquire_resource: opened here
samba-4.23.4/source3/utils/interact.c:116:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/interact.c:116:12: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:122:17: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/interact.c:123:23: branch_true: ...to here
samba-4.23.4/source3/utils/interact.c:123:23: throw: if ‘talloc_strdup_append’ throws an exception...
samba-4.23.4/source3/utils/interact.c:123:23: danger: ‘fopen(&fname, "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1154]
samba-4.23.4/source3/utils/interact.c:123:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "r")’
samba-4.23.4/source3/utils/interact.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/interact.c:95:17: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:96:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
samba-4.23.4/source3/utils/interact.c:104:9: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:108:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/interact.c:115:16: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:115:16: acquire_memory: allocated here
samba-4.23.4/source3/utils/interact.c:116:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/interact.c:116:12: branch_false: ...to here
samba-4.23.4/source3/utils/interact.c:122:17: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/interact.c:123:23: branch_true: ...to here
samba-4.23.4/source3/utils/interact.c:123:23: throw: if ‘talloc_strdup_append’ throws an exception...
samba-4.23.4/source3/utils/interact.c:123:23: danger: ‘fopen(&fname, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1155]
samba-4.23.4/source3/utils/log2pcaphex.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1156]
samba-4.23.4/source3/utils/log2pcaphex.c:173:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newdata’
samba-4.23.4/source3/utils/log2pcaphex.c:167:36: acquire_memory: this call could return NULL
samba-4.23.4/source3/utils/log2pcaphex.c:173:9: danger: ‘newdata’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-682): [#def1157]
samba-4.23.4/source3/utils/log2pcaphex.c:174: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def1158]
samba-4.23.4/source3/utils/log2pcaphex.c:175: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def1159]
samba-4.23.4/source3/utils/log2pcaphex.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1160]
samba-4.23.4/source3/utils/log2pcaphex.c:217:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buffer’ where non-null expected
samba-4.23.4/source3/utils/log2pcaphex.c:215:9: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:215:56: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:216:35: acquire_memory: this call could return NULL
samba-4.23.4/source3/utils/log2pcaphex.c:217:9: danger: argument 1 (‘buffer’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def1161]
samba-4.23.4/source3/utils/log2pcaphex.c:219: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1162]
samba-4.23.4/source3/utils/log2pcaphex.c:220: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-682): [#def1163]
samba-4.23.4/source3/utils/log2pcaphex.c:221: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def1164]
samba-4.23.4/source3/utils/log2pcaphex.c:223: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1165]
samba-4.23.4/source3/utils/log2pcaphex.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1166]
samba-4.23.4/source3/utils/log2pcaphex.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1167]
samba-4.23.4/source3/utils/log2pcaphex.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1168]
samba-4.23.4/source3/utils/log2pcaphex.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1169]
samba-4.23.4/source3/utils/log2pcaphex.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1170]
samba-4.23.4/source3/utils/log2pcaphex.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-682): [#def1171]
samba-4.23.4/source3/utils/log2pcaphex.c:230: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def1172]
samba-4.23.4/source3/utils/log2pcaphex.c:231: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-682): [#def1173]
samba-4.23.4/source3/utils/log2pcaphex.c:232: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def1174]
samba-4.23.4/source3/utils/log2pcaphex.c:233: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def1175]
samba-4.23.4/source3/utils/log2pcaphex.c:234: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def1176]
samba-4.23.4/source3/utils/log2pcaphex.c:235: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def1177]
samba-4.23.4/source3/utils/log2pcaphex.c:236: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def1178]
samba-4.23.4/source3/utils/log2pcaphex.c:237: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1179]
samba-4.23.4/source3/utils/log2pcaphex.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-682): [#def1180]
samba-4.23.4/source3/utils/log2pcaphex.c:240: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def1181]
samba-4.23.4/source3/utils/log2pcaphex.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def1182]
samba-4.23.4/source3/utils/log2pcaphex.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1183]
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_resource: opened here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: throw: if ‘poptGetArg’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1184]
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_memory: allocated here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: throw: if ‘poptGetArg’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1185]
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_resource: opened here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:358:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:360:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: throw: if ‘perror’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1186]
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_memory: allocated here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:358:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:360:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: throw: if ‘perror’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1187]
samba-4.23.4/source3/utils/log2pcaphex.c:363:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_resource: opened here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:358:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:360:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:363:25: throw: if ‘poptFreeContext’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:363:25: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1188]
samba-4.23.4/source3/utils/log2pcaphex.c:363:25: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_memory: allocated here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:358:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:360:19: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:361:25: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:363:25: throw: if ‘poptFreeContext’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:363:25: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1189]
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_resource: opened here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:402:13: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: throw: if ‘poptFreeContext’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: danger: ‘in’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1190]
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
samba-4.23.4/source3/utils/log2pcaphex.c:358:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: acquire_resource: opened here
samba-4.23.4/source3/utils/log2pcaphex.c:360:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:370:12: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:402:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: throw: if ‘poptFreeContext’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: danger: ‘out’ leaks here; was opened at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1191]
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
samba-4.23.4/source3/utils/log2pcaphex.c:347:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:348:23: acquire_memory: allocated here
samba-4.23.4/source3/utils/log2pcaphex.c:349:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:356:19: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:402:13: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: throw: if ‘poptFreeContext’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1192]
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
samba-4.23.4/source3/utils/log2pcaphex.c:358:11: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: branch_true: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:359:23: acquire_memory: allocated here
samba-4.23.4/source3/utils/log2pcaphex.c:360:19: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:370:12: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:402:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: branch_false: ...to here
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: throw: if ‘poptFreeContext’ throws an exception...
samba-4.23.4/source3/utils/log2pcaphex.c:406:9: danger: ‘out’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1193]
samba-4.23.4/source3/utils/net_rap.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sharename
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1194]
samba-4.23.4/source3/utils/net_rap.c:249:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sharename’
samba-4.23.4/source3/utils/net_rap.c:243:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rap.c:246:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_rap.c:246:21: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rap.c:248:12: branch_true: following ‘true’ branch (when ‘p’ is NULL)...
samba-4.23.4/source3/utils/net_rap.c:249:26: branch_true: ...to here
samba-4.23.4/source3/utils/net_rap.c:249:17: throw: if ‘d_printf’ throws an exception...
samba-4.23.4/source3/utils/net_rap.c:249:17: danger: ‘sharename’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1195]
samba-4.23.4/source3/utils/net_rap.c:257:42: warning[-Wanalyzer-malloc-leak]: leak of ‘sharename’
samba-4.23.4/source3/utils/net_rap.c:243:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rap.c:246:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_rap.c:246:21: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rap.c:248:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
samba-4.23.4/source3/utils/net_rap.c:253:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rap.c:257:25: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rap.c:257:42: branch_true: ...to here
samba-4.23.4/source3/utils/net_rap.c:257:42: throw: if ‘smb_xstrdup’ throws an exception...
samba-4.23.4/source3/utils/net_rap.c:257:42: danger: ‘sharename’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1196]
samba-4.23.4/source3/utils/net_rap.c:265:15: warning[-Wanalyzer-malloc-leak]: leak of ‘sharename’
samba-4.23.4/source3/utils/net_rap.c:243:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rap.c:246:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_rap.c:246:21: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rap.c:248:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
samba-4.23.4/source3/utils/net_rap.c:253:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rap.c:257:25: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rap.c:257:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rap.c:265:15: throw: if ‘cli_NetShareAdd’ throws an exception...
samba-4.23.4/source3/utils/net_rap.c:265:15: danger: ‘sharename’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1197]
samba-4.23.4/source3/utils/net_registry_check.c:377:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.23.4/source3/utils/net_registry_check.c:1261:5: enter_function: entry to ‘net_registry_check_db’
samba-4.23.4/source3/utils/net_registry_check.c:1265:33: call_function: calling ‘check_ctx_create’ from ‘net_registry_check_db’
samba-4.23.4/source3/utils/net_registry_check.c:1265:33: return_function: returning to ‘net_registry_check_db’ from ‘check_ctx_create’
samba-4.23.4/source3/utils/net_registry_check.c:1266:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_registry_check.c:1267:17: branch_true: ...to here
samba-4.23.4/source3/utils/net_registry_check.c:1316:9: call_function: calling ‘check_ctx_transaction_stop’ from ‘net_registry_check_db’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1198]
samba-4.23.4/source3/utils/net_rpc.c:3670:26: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4212:18: call_function: calling ‘get_share_info’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1199]
samba-4.23.4/source3/utils/net_rpc.c:3678:32: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4212:18: call_function: calling ‘get_share_info’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1200]
samba-4.23.4/source3/utils/net_rpc.c:3684:18: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4212:18: call_function: calling ‘get_share_info’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1201]
samba-4.23.4/source3/utils/net_rpc.c:3692:26: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4212:18: call_function: calling ‘get_share_info’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1202]
samba-4.23.4/source3/utils/net_rpc.c:3701:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4212:18: call_function: calling ‘get_share_info’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1203]
samba-4.23.4/source3/utils/net_rpc.c:3806:18: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1204]
samba-4.23.4/source3/utils/net_rpc.c:3808:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1205]
samba-4.23.4/source3/utils/net_rpc.c:3812:18: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1206]
samba-4.23.4/source3/utils/net_rpc.c:3814:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1207]
samba-4.23.4/source3/utils/net_rpc.c:3833:13: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1208]
samba-4.23.4/source3/utils/net_rpc.c:3833:41: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1209]
samba-4.23.4/source3/utils/net_rpc.c:3834:13: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1210]
samba-4.23.4/source3/utils/net_rpc.c:3837:31: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
samba-4.23.4/source3/utils/net_rpc.c:4186:17: enter_function: entry to ‘rpc_share_migrate_files_internals’
samba-4.23.4/source3/utils/net_rpc.c:4206:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc.c:4207:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc.c:4212:18: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4215:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4218:21: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc.c:4221:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc.c:4223:22: call_function: calling ‘check_share_sanity’ from ‘rpc_share_migrate_files_internals’
Error: COMPILER_WARNING (CWE-704): [#def1211]
samba-4.23.4/source3/utils/net_rpc.c: scope_hint: In function ‘get_user_tokens’
samba-4.23.4/source3/utils/net_rpc.c:5047:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1212]
samba-4.23.4/source3/utils/net_rpc.c:5047:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1213]
samba-4.23.4/source3/utils/net_rpc_conf.c:1244:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘services’
samba-4.23.4/source3/utils/net_rpc_conf.c:1141:17: enter_function: entry to ‘rpc_conf_import_internal’
samba-4.23.4/source3/utils/net_rpc_conf.c:1161:34: release_memory: ‘services’ is NULL
samba-4.23.4/source3/utils/net_rpc_conf.c:1173:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1179:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1187:28: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1194:25: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1202:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1207:15: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1208:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1214:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1219:12: branch_true: following ‘true’ branch (when ‘servicename’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc_conf.c:1220:23: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1223:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1227:17: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1239:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1240:20: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1240:20: branch_true: following ‘true’ branch (when ‘servicename’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc_conf.c:1241:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1241:25: call_function: inlined call to ‘rpc_conf_print_shares’ from ‘rpc_conf_import_internal’
samba-4.23.4/source3/utils/net_rpc_conf.c:1241:25: call_function: inlined call to ‘rpc_conf_print_shares’ from ‘rpc_conf_import_internal’
samba-4.23.4/source3/utils/net_rpc_conf.c:1243:29: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_conf.c:1244:58: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_conf.c:1244:58: release_memory: ‘services’ is NULL
samba-4.23.4/source3/utils/net_rpc_conf.c:1244:25: danger: dereference of NULL ‘services + (long unsigned int)i * 8’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1214]
samba-4.23.4/source3/utils/net_rpc_printer.c:370:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
samba-4.23.4/source3/utils/net_rpc_printer.c:320:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:323:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:323:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:327:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:336:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:344:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:344:12: branch_true: following ‘true’ branch (when ‘is_file != 0’)...
samba-4.23.4/source3/utils/net_rpc_printer.c:347:17: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:351:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:358:38: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:358:38: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc_printer.c:358:20: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc_printer.c:368:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:368:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:370:17: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:370:17: throw: if ‘smbXcli_conn_remote_name’ throws an exception...
samba-4.23.4/source3/utils/net_rpc_printer.c:370:17: danger: ‘data’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1215]
samba-4.23.4/source3/utils/net_rpc_printer.c:387:29: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
samba-4.23.4/source3/utils/net_rpc_printer.c:320:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:323:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:323:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:327:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:336:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:344:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:344:12: branch_true: following ‘true’ branch (when ‘is_file != 0’)...
samba-4.23.4/source3/utils/net_rpc_printer.c:347:17: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:351:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_printer.c:358:38: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:358:38: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc_printer.c:358:20: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
samba-4.23.4/source3/utils/net_rpc_printer.c:368:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:382:16: branch_true: following ‘true’ branch (when ‘is_file != 0’)...
samba-4.23.4/source3/utils/net_rpc_printer.c:387:29: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_printer.c:387:29: throw: if ‘cli_read’ throws an exception...
samba-4.23.4/source3/utils/net_rpc_printer.c:387:29: danger: ‘data’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1216]
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/utils/net_rpc_shell.c:52:12: branch_false: following ‘false’ branch (when ‘start == 0’)...
samba-4.23.4/source3/utils/net_rpc_shell.c:56:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:56:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:56:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:58:34: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:59:31: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:61:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc_shell.c:58:34: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:59:31: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:61:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1217]
samba-4.23.4/source3/utils/net_rpc_shell.c:69:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source3/utils/net_rpc_shell.c:52:12: branch_false: following ‘false’ branch (when ‘start == 0’)...
samba-4.23.4/source3/utils/net_rpc_shell.c:56:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:56:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:56:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:58:34: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:59:31: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:61:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc_shell.c:58:34: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:59:31: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:61:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:62:25: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_rpc_shell.c:58:34: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_rpc_shell.c:67:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:67:12: branch_true: following ‘true’ branch (when ‘n_cmds == 2’)...
samba-4.23.4/source3/utils/net_rpc_shell.c:68:17: branch_true: ...to here
samba-4.23.4/source3/utils/net_rpc_shell.c:69:17: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1218]
samba-4.23.4/source3/utils/net_usershare.c:235:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(get_basepath(ctx))’
samba-4.23.4/source3/utils/net_usershare.c:223:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_usershare.c:226:14: branch_false: ...to here
samba-4.23.4/source3/utils/net_usershare.c:226:14: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_usershare.c:227:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_usershare.c:227:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_usershare.c:235:21: throw: if ‘readdir’ throws an exception...
samba-4.23.4/source3/utils/net_usershare.c:235:21: danger: ‘opendir(get_basepath(ctx))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1219]
samba-4.23.4/source3/utils/net_usershare.c:578:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(get_basepath(_talloc_tos("../../source3/utils/net_usershare.c:562")))’
samba-4.23.4/source3/utils/net_usershare.c:565:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_usershare.c:569:14: branch_false: ...to here
samba-4.23.4/source3/utils/net_usershare.c:569:14: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_usershare.c:570:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_usershare.c:570:12: branch_false: ...to here
samba-4.23.4/source3/utils/net_usershare.c:578:21: throw: if ‘readdir’ throws an exception...
samba-4.23.4/source3/utils/net_usershare.c:578:21: danger: ‘opendir(get_basepath(_talloc_tos("../../source3/utils/net_usershare.c:562")))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1220]
samba-4.23.4/source3/utils/net_usershare.c:1170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(lp_usershare_path(_talloc_tos("../../source3/utils/net_usershare.c:1151"), loadparm_s3_global_substitution()))’
samba-4.23.4/source3/utils/net_usershare.c:1144:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_usershare.c:1151:22: branch_false: ...to here
samba-4.23.4/source3/utils/net_usershare.c:1151:14: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_usershare.c:1152:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_usershare.c:1170:9: branch_false: ...to here
samba-4.23.4/source3/utils/net_usershare.c:1170:9: danger: ‘opendir(lp_usershare_path(_talloc_tos("../../source3/utils/net_usershare.c:1151"), loadparm_s3_global_substitution()))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1221]
samba-4.23.4/source3/utils/net_util.c:114:36: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:217:10: enter_function: entry to ‘connect_dst_pipe’
samba-4.23.4/source3/utils/net_util.c:222:29: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:226:12: branch_false: following ‘false’ branch (when ‘server_name’ is non-NULL)...
samba-4.23.4/source3/utils/net_util.c:230:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:230:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:238:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:238:21: call_function: calling ‘connect_to_ipc’ from ‘connect_dst_pipe’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1222]
samba-4.23.4/source3/utils/net_util.c:118:13: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:217:10: enter_function: entry to ‘connect_dst_pipe’
samba-4.23.4/source3/utils/net_util.c:222:29: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:226:12: branch_false: following ‘false’ branch (when ‘server_name’ is non-NULL)...
samba-4.23.4/source3/utils/net_util.c:230:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:230:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:238:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:238:21: call_function: calling ‘connect_to_ipc’ from ‘connect_dst_pipe’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1223]
samba-4.23.4/source3/utils/net_util.c:122:21: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:217:10: enter_function: entry to ‘connect_dst_pipe’
samba-4.23.4/source3/utils/net_util.c:222:29: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:226:12: branch_false: following ‘false’ branch (when ‘server_name’ is non-NULL)...
samba-4.23.4/source3/utils/net_util.c:230:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:230:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:238:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:238:21: call_function: calling ‘connect_to_ipc’ from ‘connect_dst_pipe’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1224]
samba-4.23.4/source3/utils/net_util.c:133:17: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:217:10: enter_function: entry to ‘connect_dst_pipe’
samba-4.23.4/source3/utils/net_util.c:222:29: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:226:12: branch_false: following ‘false’ branch (when ‘server_name’ is non-NULL)...
samba-4.23.4/source3/utils/net_util.c:230:13: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:230:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:238:21: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:238:21: call_function: calling ‘connect_to_ipc’ from ‘connect_dst_pipe’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1225]
samba-4.23.4/source3/utils/net_util.c:179:36: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:407:31: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:407:31: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:411:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:412:29: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:412:29: call_function: calling ‘connect_to_ipc_anonymous’ from ‘net_make_ipc_connection_ex’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1226]
samba-4.23.4/source3/utils/net_util.c:183:22: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:407:31: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:407:31: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:411:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:412:29: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:412:29: call_function: calling ‘connect_to_ipc_anonymous’ from ‘net_make_ipc_connection_ex’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1227]
samba-4.23.4/source3/utils/net_util.c:185:17: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:407:31: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:407:31: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:411:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:412:29: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:412:29: call_function: calling ‘connect_to_ipc_anonymous’ from ‘net_make_ipc_connection_ex’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1228]
samba-4.23.4/source3/utils/net_util.c:189:21: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:407:31: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:407:31: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:411:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:412:29: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:412:29: call_function: calling ‘connect_to_ipc_anonymous’ from ‘net_make_ipc_connection_ex’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1229]
samba-4.23.4/source3/utils/net_util.c:203:17: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/net_util.c:407:31: branch_false: ...to here
samba-4.23.4/source3/utils/net_util.c:407:31: acquire_memory: allocated here
samba-4.23.4/source3/utils/net_util.c:411:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:412:29: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:412:29: call_function: calling ‘connect_to_ipc_anonymous’ from ‘net_make_ipc_connection_ex’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1230]
samba-4.23.4/source3/utils/net_util.c:301:22: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:399:22: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:399:22: call_function: calling ‘net_find_server’ from ‘net_make_ipc_connection_ex’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1231]
samba-4.23.4/source3/utils/net_util.c:302:25: warning[-Wanalyzer-malloc-leak]: leak of ‘server_name’
samba-4.23.4/source3/utils/net_util.c:388:10: enter_function: entry to ‘net_make_ipc_connection_ex’
samba-4.23.4/source3/utils/net_util.c:398:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/net_util.c:399:22: branch_true: ...to here
samba-4.23.4/source3/utils/net_util.c:399:22: call_function: calling ‘net_find_server’ from ‘net_make_ipc_connection_ex’
Error: COMPILER_WARNING (CWE-704): [#def1232]
samba-4.23.4/source3/utils/ntlm_auth.c: scope_hint: In function ‘parse_ntlm_auth_domain_user’
samba-4.23.4/source3/utils/ntlm_auth.c:389:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1233]
samba-4.23.4/source3/utils/ntlm_auth.c:389:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1234]
samba-4.23.4/source3/utils/ntlm_auth.c:2792:27: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
samba-4.23.4/source3/utils/ntlm_auth.c:2722:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2728:14: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2790:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: acquire_memory: allocated here
samba-4.23.4/source3/utils/ntlm_auth.c:2792:27: throw: if ‘strchr_m’ throws an exception...
samba-4.23.4/source3/utils/ntlm_auth.c:2792:27: danger: ‘domain’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1235]
samba-4.23.4/source3/utils/ntlm_auth.c:2792:45: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
samba-4.23.4/source3/utils/ntlm_auth.c:2722:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2728:14: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2790:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: acquire_memory: allocated here
samba-4.23.4/source3/utils/ntlm_auth.c:2792:45: throw: if ‘lp_winbind_separator’ throws an exception...
samba-4.23.4/source3/utils/ntlm_auth.c:2792:45: danger: ‘domain’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1236]
samba-4.23.4/source3/utils/ntlm_auth.c:2796:44: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
samba-4.23.4/source3/utils/ntlm_auth.c:2722:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2728:14: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2790:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: acquire_memory: allocated here
samba-4.23.4/source3/utils/ntlm_auth.c:2793:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2794:40: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2796:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2796:44: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2796:44: throw: if ‘strequal’ throws an exception...
samba-4.23.4/source3/utils/ntlm_auth.c:2796:44: danger: ‘domain’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1237]
samba-4.23.4/source3/utils/ntlm_auth.c:2800:33: warning[-Wanalyzer-malloc-leak]: leak of ‘domain’
samba-4.23.4/source3/utils/ntlm_auth.c:2722:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2728:14: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2733:12: branch_false: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2790:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2791:32: acquire_memory: allocated here
samba-4.23.4/source3/utils/ntlm_auth.c:2793:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2794:40: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2796:28: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2796:44: branch_true: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2796:29: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/ntlm_auth.c:2797:33: branch_false: ...to here
samba-4.23.4/source3/utils/ntlm_auth.c:2800:33: throw: if ‘poptPrintHelp’ throws an exception...
samba-4.23.4/source3/utils/ntlm_auth.c:2800:33: danger: ‘domain’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1238]
samba-4.23.4/source3/utils/regedit_dialog.c:82:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/utils/regedit_dialog.c:1836:5: enter_function: entry to ‘dialog_input_long’
samba-4.23.4/source3/utils/regedit_dialog.c:1842:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/utils/regedit_dialog.c:1843:14: call_function: calling ‘dialog_input_internal’ from ‘dialog_input_long’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1239]
samba-4.23.4/source3/utils/regedit_dialog.c:102:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dia’
samba-4.23.4/source3/utils/regedit_dialog.c:1766:12: enter_function: entry to ‘dialog_input_internal’
samba-4.23.4/source3/utils/regedit_dialog.c:1788:9: call_function: calling ‘dialog_set_submit_cb’ from ‘dialog_input_internal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1240]
samba-4.23.4/source3/utils/regedit_dialog.c:625:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/utils/regedit_dialog.c:655:24: enter_function: entry to ‘dialog_section_label_new’
samba-4.23.4/source3/utils/regedit_dialog.c:661:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/utils/regedit_dialog.c:662:14: call_function: calling ‘dialog_section_label_new_va’ from ‘dialog_section_label_new’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1241]
samba-4.23.4/source3/utils/regedit_treeview.c:113:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘left’
samba-4.23.4/source3/utils/regedit_treeview.c:121:6: enter_function: entry to ‘tree_node_append_last’
samba-4.23.4/source3/utils/regedit_treeview.c:123:9: call_function: calling ‘tree_node_append’ from ‘tree_node_append_last’
Error: CPPCHECK_WARNING (CWE-457): [#def1242]
samba-4.23.4/source3/utils/regedit_treeview.c:312: warning[uninitvar]: Uninitialized variable: rv.w
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1243]
samba-4.23.4/source3/utils/regedit_treeview.c:312:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rv.w’
samba-4.23.4/source3/utils/regedit_treeview.c:263:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/regedit_treeview.c:266:20: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:267:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/regedit_treeview.c:270:17: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:271:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/regedit_treeview.c:271:12: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:275:32: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/regedit_treeview.c:296:12: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:296:12: branch_false: following ‘false’ branch (when ‘count == 0’)...
samba-4.23.4/source3/utils/regedit_treeview.c:309:1: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:312:16: danger: use of uninitialized value ‘rv.w’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1244]
samba-4.23.4/source3/utils/regedit_treeview.c:696:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
samba-4.23.4/source3/utils/regedit_treeview.c:684:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
samba-4.23.4/source3/utils/regedit_treeview.c:687:9: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:690:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/regedit_treeview.c:693:17: branch_false: ...to here
samba-4.23.4/source3/utils/regedit_treeview.c:696:16: danger: dereference of NULL ‘path’
Error: CPPCHECK_WARNING (CWE-457): [#def1245]
samba-4.23.4/source3/utils/regedit_valuelist.c:378: warning[uninitvar]: Uninitialized variable: rv.w
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1246]
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:118:25: warning[-Wanalyzer-malloc-leak]: leak of ‘svc’
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:547:12: enter_function: entry to ‘export_profile_persvc’
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:555:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:556:12: branch_false: following ‘false’ branch (when ‘svc’ is non-NULL)...
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:561:15: branch_false: ...to here
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:562:12: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:566:9: branch_false: ...to here
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:566:9: call_function: calling ‘export_profile_persvc_stats’ from ‘export_profile_persvc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1247]
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:126:17: warning[-Wanalyzer-malloc-leak]: leak of ‘svc’
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:547:12: enter_function: entry to ‘export_profile_persvc’
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:555:15: acquire_memory: allocated here
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:556:12: branch_false: following ‘false’ branch (when ‘svc’ is non-NULL)...
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:561:15: branch_false: ...to here
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:562:12: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:566:9: branch_false: ...to here
samba-4.23.4/source3/utils/smb_prometheus_endpoint.c:566:9: call_function: calling ‘export_profile_persvc_stats’ from ‘export_profile_persvc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1248]
samba-4.23.4/source3/utils/smbget.c:218:26: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpname’
samba-4.23.4/source3/utils/smbget.c:754:5: enter_function: entry to ‘main’
samba-4.23.4/source3/utils/smbget.c:894:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/smbget.c:899:9: branch_true: ...to here
samba-4.23.4/source3/utils/smbget.c:909:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:914:17: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:938:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:944:12: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:944:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:951:13: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:964:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:969:9: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:972:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:977:9: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:981:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:984:9: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:1059:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/smbget.c:1060:21: branch_true: ...to here
samba-4.23.4/source3/utils/smbget.c:1060:20: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:1064:30: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:1064:30: call_function: calling ‘smb_download_dir’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def1249]
samba-4.23.4/source3/utils/smbget.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1250]
samba-4.23.4/source3/utils/smbget.c:674:29: warning[-Wanalyzer-malloc-leak]: leak of ‘readbuf’
samba-4.23.4/source3/utils/smbget.c:754:5: enter_function: entry to ‘main’
samba-4.23.4/source3/utils/smbget.c:894:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/smbget.c:899:9: branch_true: ...to here
samba-4.23.4/source3/utils/smbget.c:909:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:914:17: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:938:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:944:12: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:944:13: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:951:13: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:964:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:969:9: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:972:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:977:9: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:981:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/utils/smbget.c:984:9: branch_false: ...to here
samba-4.23.4/source3/utils/smbget.c:1059:16: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/smbget.c:1060:21: branch_true: ...to here
samba-4.23.4/source3/utils/smbget.c:1060:20: branch_true: following ‘true’ branch...
samba-4.23.4/source3/utils/smbget.c:1061:30: branch_true: ...to here
samba-4.23.4/source3/utils/smbget.c:1061:30: call_function: calling ‘smb_download_file’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def1251]
samba-4.23.4/source3/winbindd/idmap.c:182: error[ctunullpointer]: Null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def1252]
samba-4.23.4/source3/winbindd/idmap.c:182: warning[nullPointer]: Possible null pointer dereference: buf
Error: COMPILER_WARNING (CWE-704): [#def1253]
samba-4.23.4/source3/winbindd/idmap_nss.c: scope_hint: In function ‘idmap_nss_unixids_to_sids’
samba-4.23.4/source3/winbindd/idmap_nss.c:248:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1254]
samba-4.23.4/source3/winbindd/idmap_nss.c:248:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1255]
samba-4.23.4/source3/winbindd/idmap_nss.c:255:35: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1256]
samba-4.23.4/source3/winbindd/idmap_nss.c:255:35: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1257]
samba-4.23.4/source3/winbindd/idmap_tdb.c: scope_hint: In function ‘convert_fn’
samba-4.23.4/source3/winbindd/idmap_tdb.c:78:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1258]
samba-4.23.4/source3/winbindd/idmap_tdb.c:78:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1259]
samba-4.23.4/source3/winbindd/idmap_tdb2.c:269:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source3/winbindd/idmap_tdb2.c:266:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:268:9: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:268:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:269:15: throw: if ‘talloc_vasprintf_append’ throws an exception...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:269:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1260]
samba-4.23.4/source3/winbindd/idmap_tdb2.c:280:17: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(talloc_vasprintf_append(talloc_asprintf(ctx, "%s ", *ctx.script), fmt, & ap), "r")’
samba-4.23.4/source3/winbindd/idmap_tdb2.c:266:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:268:9: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:271:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:273:13: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:273:13: acquire_memory: allocated here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:279:13: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:279:12: branch_true: following ‘true’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:280:17: branch_true: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:280:17: danger: ‘popen(talloc_vasprintf_append(talloc_asprintf(ctx, "%s ", *ctx.script), fmt, & ap), "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1261]
samba-4.23.4/source3/winbindd/idmap_tdb2.c:283:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(talloc_vasprintf_append(talloc_asprintf(ctx, "%s ", *ctx.script), fmt, & ap), "r")’
samba-4.23.4/source3/winbindd/idmap_tdb2.c:266:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:268:9: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:271:9: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:273:13: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:273:13: acquire_memory: allocated here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:275:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:279:13: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:279:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/idmap_tdb2.c:283:9: branch_false: ...to here
samba-4.23.4/source3/winbindd/idmap_tdb2.c:283:9: danger: ‘popen(talloc_vasprintf_append(talloc_asprintf(ctx, "%s ", *ctx.script), fmt, & ap), "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-704): [#def1262]
samba-4.23.4/source3/winbindd/nss_info.c: scope_hint: In function ‘parse_nss_parm’
samba-4.23.4/source3/winbindd/nss_info.c:100:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1263]
samba-4.23.4/source3/winbindd/nss_info.c:100:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def1264]
samba-4.23.4/source3/winbindd/winbindd_cache.c:527: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1265]
samba-4.23.4/source3/winbindd/winbindd_dual.c:1224:51: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
samba-4.23.4/source3/winbindd/winbindd_dual.c:1177:12: branch_false: following ‘false’ branch...
samba-4.23.4/source3/winbindd/winbindd_dual.c:1181:13: branch_false: ...to here
samba-4.23.4/source3/winbindd/winbindd_dual.c:1208:35: branch_false: following ‘false’ branch (when ‘dom’ is NULL)...
samba-4.23.4/source3/winbindd/winbindd_dual.c:1224:51: branch_false: ...to here
samba-4.23.4/source3/winbindd/winbindd_dual.c:1224:51: danger: argument 1 (‘s’) NULL where non-null expected
Error: COMPILER_WARNING (CWE-704): [#def1266]
samba-4.23.4/source3/winbindd/winbindd_pam.c: scope_hint: In function ‘generate_krb5_ccache’
samba-4.23.4/source3/winbindd/winbindd_pam.c:672:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1267]
samba-4.23.4/source3/winbindd/winbindd_pam.c:672:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1268]
samba-4.23.4/source3/winbindd/winbindd_rpc.c:358:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source3/winbindd/winbindd_rpc.c:354:25: release_memory: ‘sid_array.sids’ is NULL
samba-4.23.4/source3/winbindd/winbindd_rpc.c:358:25: release_memory: ‘sid_array.sids’ is NULL
samba-4.23.4/source3/winbindd/winbindd_rpc.c:358:25: danger: dereference of NULL ‘sid_array.sids + (long unsigned int)i * 8’
Error: COMPILER_WARNING (CWE-704): [#def1269]
samba-4.23.4/source3/winbindd/winbindd_util.c: scope_hint: In function ‘parse_domain_user’
samba-4.23.4/source3/winbindd/winbindd_util.c:1995:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1270]
samba-4.23.4/source3/winbindd/winbindd_util.c:1995:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1271]
samba-4.23.4/source3/winbindd/winbindd_util.c:2016:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1272]
samba-4.23.4/source3/winbindd/winbindd_util.c:2016:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING: [#def1273]
samba-4.23.4/source3/winbindd/winbindd_varlink.c: scope_hint: In function ‘wb_vl_fake_cli_state’
samba-4.23.4/source3/winbindd/winbindd_varlink.c:110:9: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 32 equals destination size
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1274]
samba-4.23.4/source4/client/cifsdd.c:157:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def1275]
samba-4.23.4/source4/client/cifsdd.c:241:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long unsigned int’ but received ‘int’ for variadic argument 1 of ‘ap’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:634:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:635:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:635:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:636:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:636:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:638:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:638:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:639:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:639:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:640:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:640:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:642:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:642:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:643:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:643:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:645:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-686): [#def1276]
samba-4.23.4/source4/client/cifsdd.c:241:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long unsigned int’ but received ‘void *’ for variadic argument 1 of ‘ap’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:634:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:635:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:635:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:636:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:636:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:638:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:638:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:639:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:639:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:640:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:640:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:642:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-686): [#def1277]
samba-4.23.4/source4/client/cifsdd.c:244:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘long unsigned int’ for variadic argument 1 of ‘ap’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-686): [#def1278]
samba-4.23.4/source4/client/cifsdd.c:244:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘void *’ for variadic argument 1 of ‘ap’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:634:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:635:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:635:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:636:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:636:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:638:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:638:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:639:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:639:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:640:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:640:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:642:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-686): [#def1279]
samba-4.23.4/source4/client/cifsdd.c:247:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘char *’ but received ‘int’ for variadic argument 1 of ‘ap’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:634:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:635:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:635:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:636:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:636:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:638:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:638:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:639:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:639:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:640:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:640:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:642:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:642:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:643:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
samba-4.23.4/source4/client/cifsdd.c:643:9: return_function: returning to ‘main’ from ‘set_arg_val’
samba-4.23.4/source4/client/cifsdd.c:645:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-686): [#def1280]
samba-4.23.4/source4/client/cifsdd.c:247:45: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘char *’ but received ‘long unsigned int’ for variadic argument 1 of ‘ap’
samba-4.23.4/source4/client/cifsdd.c:609:5: enter_function: entry to ‘main’
samba-4.23.4/source4/client/cifsdd.c:634:9: call_function: calling ‘set_arg_val’ from ‘main’ with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1281]
samba-4.23.4/source4/client/client.c:768:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
samba-4.23.4/source4/client/client.c:715:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:720:13: branch_false: ...to here
samba-4.23.4/source4/client/client.c:738:12: branch_false: following ‘false’ branch (when ‘handle >= 0’)...
samba-4.23.4/source4/client/client.c:744:13: branch_false: ...to here
samba-4.23.4/source4/client/client.c:758:32: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:758:11: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
samba-4.23.4/source4/client/client.c:758:11: branch_false: ...to here
samba-4.23.4/source4/client/client.c:768:25: throw: if ‘smbcli_read’ throws an exception...
samba-4.23.4/source4/client/client.c:768:25: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1282]
samba-4.23.4/source4/client/client.c:1157:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(lname, "r")’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_resource: opened here
samba-4.23.4/source4/client/client.c:1157:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1158:29: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1158:29: throw: if ‘fseek’ throws an exception...
samba-4.23.4/source4/client/client.c:1157:21: danger: ‘fopen(lname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1283]
samba-4.23.4/source4/client/client.c:1157:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(lname, "r")’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1157:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1158:29: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1158:29: throw: if ‘fseek’ throws an exception...
samba-4.23.4/source4/client/client.c:1157:21: danger: ‘fopen(lname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1284]
samba-4.23.4/source4/client/client.c:1172:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_resource: opened here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1172:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source4/client/client.c:1172:9: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1285]
samba-4.23.4/source4/client/client.c:1172:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1172:9: throw: if ‘debuglevel_get_class’ throws an exception...
samba-4.23.4/source4/client/client.c:1172:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1286]
samba-4.23.4/source4/client/client.c:1177:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_resource: opened here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1176:12: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
samba-4.23.4/source4/client/client.c:1177:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1177:17: throw: if ‘d_printf’ throws an exception...
samba-4.23.4/source4/client/client.c:1177:17: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1287]
samba-4.23.4/source4/client/client.c:1177:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1176:12: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
samba-4.23.4/source4/client/client.c:1177:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1177:17: throw: if ‘d_printf’ throws an exception...
samba-4.23.4/source4/client/client.c:1177:17: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1288]
samba-4.23.4/source4/client/client.c:1189:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source4/client/client.c:1153:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1175:26: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1186:27: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1189:25: throw: if ‘d_printf’ throws an exception...
samba-4.23.4/source4/client/client.c:1189:25: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1289]
samba-4.23.4/source4/client/client.c:1194:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/client/client.c:1115:12: enter_function: entry to ‘do_put’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_resource: opened here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:26: call_function: calling ‘readfile’ from ‘do_put’
samba-4.23.4/source4/client/client.c:1185:26: return_function: returning to ‘do_put’ from ‘readfile’
samba-4.23.4/source4/client/client.c:1185:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1194:23: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1194:23: throw: if ‘smbcli_write’ throws an exception...
samba-4.23.4/source4/client/client.c:1194:23: danger: ‘f’ leaks here; was opened at [(6)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1290]
samba-4.23.4/source4/client/client.c:1194:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/client/client.c:1115:12: enter_function: entry to ‘do_put’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source4/client/client.c:1153:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1175:26: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:26: call_function: calling ‘readfile’ from ‘do_put’
samba-4.23.4/source4/client/client.c:1185:26: return_function: returning to ‘do_put’ from ‘readfile’
samba-4.23.4/source4/client/client.c:1185:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1194:23: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1194:23: throw: if ‘smbcli_write’ throws an exception...
samba-4.23.4/source4/client/client.c:1194:23: danger: ‘buf’ leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1291]
samba-4.23.4/source4/client/client.c:1194:23: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/client/client.c:1115:12: enter_function: entry to ‘do_put’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:26: call_function: calling ‘readfile’ from ‘do_put’
samba-4.23.4/source4/client/client.c:1185:26: return_function: returning to ‘do_put’ from ‘readfile’
samba-4.23.4/source4/client/client.c:1185:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1194:23: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1194:23: throw: if ‘smbcli_write’ throws an exception...
samba-4.23.4/source4/client/client.c:1194:23: danger: ‘f’ leaks here; was allocated at [(6)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1292]
samba-4.23.4/source4/client/client.c:1197:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/client/client.c:1115:12: enter_function: entry to ‘do_put’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_resource: opened here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:26: call_function: calling ‘readfile’ from ‘do_put’
samba-4.23.4/source4/client/client.c:1185:26: return_function: returning to ‘do_put’ from ‘readfile’
samba-4.23.4/source4/client/client.c:1185:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1194:23: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1196:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1197:76: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1197:25: throw: if ‘smbcli_errstr’ throws an exception...
samba-4.23.4/source4/client/client.c:1197:25: danger: ‘f’ leaks here; was opened at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1293]
samba-4.23.4/source4/client/client.c:1197:25: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/client/client.c:1115:12: enter_function: entry to ‘do_put’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source4/client/client.c:1153:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1175:26: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:26: call_function: calling ‘readfile’ from ‘do_put’
samba-4.23.4/source4/client/client.c:1185:26: return_function: returning to ‘do_put’ from ‘readfile’
samba-4.23.4/source4/client/client.c:1185:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1194:23: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1196:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1197:76: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1197:25: throw: if ‘smbcli_errstr’ throws an exception...
samba-4.23.4/source4/client/client.c:1197:25: danger: ‘buf’ leaks here; was allocated at [(8)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1294]
samba-4.23.4/source4/client/client.c:1197:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/client/client.c:1115:12: enter_function: entry to ‘do_put’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
samba-4.23.4/source4/client/client.c:1156:21: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1156:21: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1181:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1185:26: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1185:26: call_function: calling ‘readfile’ from ‘do_put’
samba-4.23.4/source4/client/client.c:1185:26: return_function: returning to ‘do_put’ from ‘readfile’
samba-4.23.4/source4/client/client.c:1185:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1194:23: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1196:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1197:76: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1197:25: throw: if ‘smbcli_errstr’ throws an exception...
samba-4.23.4/source4/client/client.c:1197:25: danger: ‘f’ leaks here; was allocated at [(6)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1295]
samba-4.23.4/source4/client/client.c:1205:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source4/client/client.c:1153:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1175:26: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1205:13: throw: if ‘smbcli_close’ throws an exception...
samba-4.23.4/source4/client/client.c:1205:13: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1296]
samba-4.23.4/source4/client/client.c:1206:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/client/client.c:1142:12: branch_false: following ‘false’ branch (when ‘fnum != -1’)...
samba-4.23.4/source4/client/client.c:1152:14: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1152:12: branch_true: following ‘true’ branch (when the strings are equal)...
samba-4.23.4/source4/client/client.c:1153:17: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1166:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1172:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1175:26: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1176:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
samba-4.23.4/source4/client/client.c:1176:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1205:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:1206:70: branch_true: ...to here
samba-4.23.4/source4/client/client.c:1206:17: throw: if ‘smbcli_errstr’ throws an exception...
samba-4.23.4/source4/client/client.c:1206:17: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1297]
samba-4.23.4/source4/client/client.c:1347:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(directory)’
samba-4.23.4/source4/client/client.c:1372:12: enter_function: entry to ‘file_find’
samba-4.23.4/source4/client/client.c:1383:15: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:1384:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:1384:12: branch_false: ...to here
samba-4.23.4/source4/client/client.c:1386:25: call_function: calling ‘readdirname’ from ‘file_find’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1298]
samba-4.23.4/source4/client/client.c:2927:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*f.name)’
samba-4.23.4/source4/client/client.c:2925:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:2926:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:2927:54: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:2927:25: danger: ‘strdup(*f.name)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1299]
samba-4.23.4/source4/client/client.c:2996:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(info.matches[1])’
samba-4.23.4/source4/client/client.c:2965:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
samba-4.23.4/source4/client/client.c:2968:24: branch_false: ...to here
samba-4.23.4/source4/client/client.c:2969:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:2970:9: branch_false: ...to here
samba-4.23.4/source4/client/client.c:2986:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
samba-4.23.4/source4/client/client.c:2990:13: branch_false: ...to here
samba-4.23.4/source4/client/client.c:2990:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/client/client.c:2995:13: branch_false: ...to here
samba-4.23.4/source4/client/client.c:2995:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/client/client.c:2996:42: branch_true: ...to here
samba-4.23.4/source4/client/client.c:2996:35: acquire_memory: allocated here
samba-4.23.4/source4/client/client.c:2996:17: danger: ‘strdup(info.matches[1])’ leaks here; was allocated at [(11)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1300]
samba-4.23.4/source4/dsdb/common/rodc_helper.c:213:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_never_reveal_sids’
samba-4.23.4/source4/dsdb/common/rodc_helper.c:133:8: enter_function: entry to ‘samdb_confirm_rodc_allowed_to_repl_to_sid_list’
samba-4.23.4/source4/dsdb/common/rodc_helper.c:151:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:160:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:160:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:171:20: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:174:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:182:16: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:182:16: call_function: calling ‘samdb_result_sid_array_dn’ from ‘samdb_confirm_rodc_allowed_to_repl_to_sid_list’
samba-4.23.4/source4/dsdb/common/rodc_helper.c:182:16: return_function: returning to ‘samdb_confirm_rodc_allowed_to_repl_to_sid_list’ from ‘samdb_result_sid_array_dn’
samba-4.23.4/source4/dsdb/common/rodc_helper.c:186:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:194:16: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:194:16: call_function: calling ‘samdb_result_sid_array_dn’ from ‘samdb_confirm_rodc_allowed_to_repl_to_sid_list’
samba-4.23.4/source4/dsdb/common/rodc_helper.c:194:16: return_function: returning to ‘samdb_confirm_rodc_allowed_to_repl_to_sid_list’ from ‘samdb_result_sid_array_dn’
samba-4.23.4/source4/dsdb/common/rodc_helper.c:198:12: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:207:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:207:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:212:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:212:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/common/rodc_helper.c:213:13: branch_true: ...to here
samba-4.23.4/source4/dsdb/common/rodc_helper.c:213:13: danger: use of uninitialized value ‘num_never_reveal_sids’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1301]
samba-4.23.4/source4/dsdb/common/util.c:81:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:80:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:81:17: throw: if ‘gendb_search_v’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:81:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1302]
samba-4.23.4/source4/dsdb/common/util.c:122:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:138:13: enter_function: entry to ‘samdb_search_string’
samba-4.23.4/source4/dsdb/common/util.c:147:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:148:15: call_function: calling ‘samdb_search_string_v’ from ‘samdb_search_string’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1303]
samba-4.23.4/source4/dsdb/common/util.c:165:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:164:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:165:17: throw: if ‘gendb_search_v’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:165:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1304]
samba-4.23.4/source4/dsdb/common/util.c:194:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:193:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:194:17: throw: if ‘gendb_search_v’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:194:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1305]
samba-4.23.4/source4/dsdb/common/util.c:227:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:226:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:227:17: throw: if ‘gendb_search_v’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:227:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1306]
samba-4.23.4/source4/dsdb/common/util.c:255:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:254:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:255:17: throw: if ‘gendb_search_v’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:255:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1307]
samba-4.23.4/source4/dsdb/common/util.c:284:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:283:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:284:17: throw: if ‘gendb_search_v’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:284:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1308]
samba-4.23.4/source4/dsdb/common/util.c:5667:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:5655:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/util.c:5659:15: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/util.c:5660:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/util.c:5665:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/util.c:5665:12: branch_true: following ‘true’ branch (when ‘exp_fmt’ is non-NULL)...
samba-4.23.4/source4/dsdb/common/util.c:5666:17: branch_true: ...to here
samba-4.23.4/source4/dsdb/common/util.c:5666:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:5667:30: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:5667:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1309]
samba-4.23.4/source4/dsdb/common/util.c:5831:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:5817:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/util.c:5821:9: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/util.c:5824:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/util.c:5829:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/util.c:5829:12: branch_true: following ‘true’ branch (when ‘exp_fmt’ is non-NULL)...
samba-4.23.4/source4/dsdb/common/util.c:5830:17: branch_true: ...to here
samba-4.23.4/source4/dsdb/common/util.c:5830:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:5831:30: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:5831:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-704): [#def1310]
samba-4.23.4/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_forest_name’
samba-4.23.4/source4/dsdb/common/util.c:5867:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1311]
samba-4.23.4/source4/dsdb/common/util.c:5867:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1312]
samba-4.23.4/source4/dsdb/common/util.c: scope_hint: In function ‘samdb_default_domain_name’
samba-4.23.4/source4/dsdb/common/util.c:5886:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1313]
samba-4.23.4/source4/dsdb/common/util.c:5886:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1314]
samba-4.23.4/source4/dsdb/common/util.c:6952:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/common/util.c:6940:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/util.c:6944:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/util.c:6945:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/common/util.c:6948:9: branch_false: ...to here
samba-4.23.4/source4/dsdb/common/util.c:6950:12: branch_true: following ‘true’ branch (when ‘exp_fmt’ is non-NULL)...
samba-4.23.4/source4/dsdb/common/util.c:6951:17: branch_true: ...to here
samba-4.23.4/source4/dsdb/common/util.c:6951:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/common/util.c:6952:30: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source4/dsdb/common/util.c:6952:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-457): [#def1315]
samba-4.23.4/source4/dsdb/common/util_links.c:40: error[uninitvar]: Uninitialized variable: v2_data
Error: COMPILER_WARNING (CWE-704): [#def1316]
samba-4.23.4/source4/dsdb/samdb/cracknames.c: scope_hint: In function ‘DsCrackNameOneFilter’
samba-4.23.4/source4/dsdb/samdb/cracknames.c:1196:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1317]
samba-4.23.4/source4/dsdb/samdb/cracknames.c:1196:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1318]
samba-4.23.4/source4/dsdb/samdb/cracknames.c: scope_hint: In function ‘crack_name_to_nt4_name’
samba-4.23.4/source4/dsdb/samdb/cracknames.c:1576:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1319]
samba-4.23.4/source4/dsdb/samdb/cracknames.c:1576:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1320]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:696:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:658:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:660:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:660:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:664:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:664:12: branch_false: following ‘false’ branch (when ‘implicit_validated_write_control’ is NULL)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:674:21: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:684:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:694:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:696:40: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:696:40: danger: dereference of NULL ‘msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1321]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:722:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:658:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:660:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:660:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:664:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:684:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:694:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:709:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:709:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:714:21: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:714:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:722:55: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:722:55: danger: dereference of NULL ‘msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1322]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:795:62: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:658:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:660:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:660:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:664:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:684:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:694:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:709:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:709:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:734:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:734:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:741:13: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:750:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:755:30: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:766:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:771:15: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:780:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:785:63: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:793:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:795:62: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:795:62: danger: dereference of NULL ‘msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1323]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:902:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:859:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:863:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:863:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:865:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:865:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:869:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:869:12: branch_false: following ‘false’ branch (when ‘implicit_validated_write_control’ is NULL)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:879:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:885:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:890:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:900:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:902:40: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:902:40: danger: dereference of NULL ‘msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1324]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:935:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘msg’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:859:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:863:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:863:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:865:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:865:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:869:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:885:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:890:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:900:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:915:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:915:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:916:36: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:927:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:935:55: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:935:55: danger: dereference of NULL ‘msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1325]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1046:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘search_res’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:859:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:863:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:863:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:865:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:865:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:869:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:885:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:890:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:900:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:915:13: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:915:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:947:19: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:947:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:956:18: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:957:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:962:32: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:963:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:968:23: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:997:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1002:42: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1009:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1013:9: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1020:12: branch_false: following ‘false’ branch (when ‘account_name_len <= dns_host_name_len’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1024:39: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1023:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1030:9: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1035:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/acl.c:1046:33: danger: dereference of NULL ‘search_res’
Error: COMPILER_WARNING (CWE-704): [#def1326]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c: scope_hint: In function ‘get_key_directory’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c:128:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1327]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c:128:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1328]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:346:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dn1’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:672:13: enter_function: entry to ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:695:12: branch_false: following ‘false’ branch (when ‘max_num_values != 0’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: call_function: calling ‘get_parsed_dns’ from ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: return_function: returning to ‘log_membership_changes’ from ‘get_parsed_dns’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:704:22: call_function: calling ‘get_parsed_dns’ from ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:704:22: return_function: returning to ‘log_membership_changes’ from ‘get_parsed_dns’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:709:21: branch_true: following ‘true’ branch (when ‘i < max_num_values’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:711:21: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:711:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:715:46: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:717:31: call_function: calling ‘dn_compare’ from ‘log_membership_changes’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1329]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:743:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘old_val’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:672:13: enter_function: entry to ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:695:12: branch_false: following ‘false’ branch (when ‘max_num_values != 0’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: call_function: calling ‘get_parsed_dns’ from ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: return_function: returning to ‘log_membership_changes’ from ‘get_parsed_dns’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:704:22: call_function: calling ‘get_parsed_dns’ from ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:704:22: return_function: returning to ‘log_membership_changes’ from ‘get_parsed_dns’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:709:21: branch_true: following ‘true’ branch (when ‘i < max_num_values’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:711:21: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:711:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:718:27: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:718:27: branch_true: following ‘true’ branch (when ‘old_i < old_num_values’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:722:46: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:743:29: danger: dereference of NULL ‘old_val’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1330]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:840:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_val’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:672:13: enter_function: entry to ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:695:12: branch_false: following ‘false’ branch (when ‘max_num_values != 0’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: call_function: calling ‘get_parsed_dns’ from ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:703:22: return_function: returning to ‘log_membership_changes’ from ‘get_parsed_dns’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:704:22: call_function: calling ‘get_parsed_dns’ from ‘log_membership_changes’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:704:22: return_function: returning to ‘log_membership_changes’ from ‘get_parsed_dns’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:709:21: branch_true: following ‘true’ branch (when ‘i < max_num_values’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:711:21: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:711:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:718:27: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:718:27: branch_false: following ‘false’ branch (when ‘old_i >= old_num_values’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:725:27: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:725:27: branch_true: following ‘true’ branch (when ‘new_i < new_num_values’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:730:46: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:755:27: branch_false: following ‘false’ branch (when ‘cmp != 1’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:761:27: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:761:27: branch_false: following ‘false’ branch (when ‘cmp != 2’)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:840:30: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/group_audit.c:840:30: danger: dereference of NULL ‘new_val’
Error: COMPILER_WARNING (CWE-704): [#def1331]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/partition_init.c: scope_hint: In function ‘partition_load_modules’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/partition_init.c:106:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1332]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/partition_init.c:106:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1333]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/partition_init.c: scope_hint: In function ‘partition_reload_if_required’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/partition_init.c:460:35: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1334]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/partition_init.c:460:35: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1335]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/ranged_results.c: scope_hint: In function ‘rr_search_callback’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/ranged_results.c:123:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1336]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/ranged_results.c:123:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1337]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/ranged_results.c: scope_hint: In function ‘rr_search’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/ranged_results.c:230:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1338]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/ranged_results.c:230:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def1339]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/repl_meta_data.c:1305: error[uninitvar]: Uninitialized variable: guid_data
Error: COMPILER_WARNING (CWE-704): [#def1340]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/rootdse.c: scope_hint: In function ‘get_optional_feature_dn_guid’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/rootdse.c:1159:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1341]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/rootdse.c:1159:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1342]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/samldb.c: scope_hint: In function ‘check_spn_alias_collision’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/samldb.c:3843:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1343]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/samldb.c:3843:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1344]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:233:30: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:227:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:231:12: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:231:12: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:232:17: branch_true: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:232:17: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:233:30: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/util.c:233:30: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1345]
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:654:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘store’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:763:12: enter_function: entry to ‘vlv_search’
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:778:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:782:9: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:786:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:791:20: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:792:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:796:21: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:797:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:801:16: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:805:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:810:9: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:817:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:862:26: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:864:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:864:20: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:868:29: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:878:26: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:878:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:887:17: branch_false: ...to here
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:887:17: release_memory: ‘current’ is NULL
samba-4.23.4/source4/dsdb/samdb/ldb_modules/vlv_pagination.c:888:23: call_function: calling ‘copy_search_details’ from ‘vlv_search’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1346]
samba-4.23.4/source4/dsdb/schema/schema_query.c:280:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1347]
samba-4.23.4/source4/dsdb/schema/schema_query.c:285:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1348]
samba-4.23.4/source4/dsdb/schema/schema_query.c:290:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1349]
samba-4.23.4/source4/dsdb/schema/schema_query.c:294:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1350]
samba-4.23.4/source4/dsdb/schema/schema_query.c:298:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1351]
samba-4.23.4/source4/dsdb/schema/schema_query.c:302:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1352]
samba-4.23.4/source4/dsdb/schema/schema_query.c:306:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sclass’
samba-4.23.4/source4/dsdb/schema/schema_query.c:372:21: enter_function: entry to ‘dsdb_full_attribute_list_internal_el’
samba-4.23.4/source4/dsdb/schema/schema_query.c:380:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/dsdb/schema/schema_query.c:383:100: branch_true: ...to here
samba-4.23.4/source4/dsdb/schema/schema_query.c:382:27: call_function: calling ‘attribute_list_from_class’ from ‘dsdb_full_attribute_list_internal_el’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1353]
samba-4.23.4/source4/kdc/db-glue.c:369:23: warning[-Wanalyzer-malloc-leak]: leak of ‘sentry.keys.val’
samba-4.23.4/source4/kdc/db-glue.c:4542:17: enter_function: entry to ‘dsdb_extract_aes_256_key’
samba-4.23.4/source4/kdc/db-glue.c:4561:20: call_function: calling ‘samba_kdc_message2entry_keys’ from ‘dsdb_extract_aes_256_key’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1354]
samba-4.23.4/source4/kdc/db-glue.c:525:31: warning[-Wanalyzer-malloc-leak]: leak of ‘key.salt’
samba-4.23.4/source4/kdc/db-glue.c:4542:17: enter_function: entry to ‘dsdb_extract_aes_256_key’
samba-4.23.4/source4/kdc/db-glue.c:4561:20: call_function: calling ‘samba_kdc_message2entry_keys’ from ‘dsdb_extract_aes_256_key’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1355]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:138:16: warning[-Wanalyzer-malloc-leak]: leak of ‘netbios_name’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:77:17: enter_function: entry to ‘kdb_samba_db_check_policy_as’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:98:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:103:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:105:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:122:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:126:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:131:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:131:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: branch_true: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: call_function: calling ‘ks_get_netbios_name’ from ‘kdb_samba_db_check_policy_as’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: return_function: returning to ‘kdb_samba_db_check_policy_as’ from ‘ks_get_netbios_name’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:133:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:138:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:138:16: throw: if ‘mit_samba_check_client_access’ throws an exception...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:138:16: danger: ‘netbios_name’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1356]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:152:21: warning[-Wanalyzer-malloc-leak]: leak of ‘netbios_name’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:77:17: enter_function: entry to ‘kdb_samba_db_check_policy_as’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:98:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:103:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:105:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:122:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:126:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:131:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:131:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: branch_true: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: call_function: calling ‘ks_get_netbios_name’ from ‘kdb_samba_db_check_policy_as’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: return_function: returning to ‘kdb_samba_db_check_policy_as’ from ‘ks_get_netbios_name’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:133:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:138:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:147:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:152:21: throw: if ‘smb_krb5_data_from_blob’ throws an exception...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:152:21: danger: ‘netbios_name’ leaks here; was allocated at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1357]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:154:28: warning[-Wanalyzer-malloc-leak]: leak of ‘netbios_name’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:77:17: enter_function: entry to ‘kdb_samba_db_check_policy_as’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:98:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:103:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:105:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:122:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:126:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:127:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:131:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:131:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: branch_true: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: call_function: calling ‘ks_get_netbios_name’ from ‘kdb_samba_db_check_policy_as’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:132:24: return_function: returning to ‘kdb_samba_db_check_policy_as’ from ‘ks_get_netbios_name’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:133:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:138:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:147:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:154:28: throw: if ‘decode_krb5_padata_sequence’ throws an exception...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_policies.c:154:28: danger: ‘netbios_name’ leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1358]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:146:24: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:136:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:137:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:141:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:145:12: branch_true: following ‘true’ branch (when ‘princ’ is NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:146:24: branch_true: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:146:24: throw: if ‘krb5_parse_name’ throws an exception...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:146:24: danger: ‘kentry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1359]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:148:24: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:136:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:137:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:141:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:145:12: branch_false: following ‘false’ branch (when ‘princ’ is non-NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:148:24: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:148:24: throw: if ‘krb5_copy_principal’ throws an exception...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:148:24: danger: ‘kentry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1360]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:173:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:137:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:141:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:150:12: branch_false: following ‘false’ branch (when ‘code == 0’)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:155:15: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:158:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:164:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:165:28: acquire_memory: this call could return NULL
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:173:9: danger: ‘calloc(1, 32)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1361]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:225:16: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:203:12: branch_false: following ‘false’ branch (when ‘princ’ is non-NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:207:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:209:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:210:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:214:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:217:12: branch_false: following ‘false’ branch (when ‘attributes <= 0’)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:221:12: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:221:12: branch_false: following ‘false’ branch (when ‘max_life <= 0’)...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:225:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:225:16: throw: if ‘krb5_copy_principal’ throws an exception...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:225:16: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1362]
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:273:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 32)’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:303:17: enter_function: entry to ‘kdb_samba_db_get_principal’
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:312:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:316:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:316:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:324:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit-kdb/kdb_samba_principals.c:326:24: call_function: inlined call to ‘ks_get_admin_principal’ from ‘kdb_samba_db_get_principal’
Error: COMPILER_WARNING (CWE-477): [#def1363]
samba-4.23.4/source4/kdc/mit_samba.c: scope_hint: In function ‘mit_samba_context_init’
samba-4.23.4/source4/kdc/mit_samba.c:94:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.23.4/bin/default/include/public/ldb.h:51: included_from: Included from here.
samba-4.23.4/source4/dsdb/samdb/samdb.h:56: included_from: Included from here.
samba-4.23.4/source4/kdc/mit_samba.c:26: included_from: Included from here.
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def1364]
samba-4.23.4/source4/kdc/mit_samba.c:94:9: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1365]
samba-4.23.4/source4/kdc/mit_samba.c:195:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
samba-4.23.4/source4/kdc/mit_samba.c:172:12: branch_false: following ‘false’ branch (when ‘pwd’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:176:19: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:179:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:183:20: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:184:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:189:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:189:16: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:191:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:195:16: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:195:16: throw: if ‘smb_krb5_make_data’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:195:16: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1366]
samba-4.23.4/source4/kdc/mit_samba.c:239:29: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:235:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:239:29: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:239:29: throw: if ‘smb_krb5_principal_is_tgs’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:239:29: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1367]
samba-4.23.4/source4/kdc/mit_samba.c:258:15: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:258:15: throw: if ‘samba_kdc_fetch’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:258:15: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1368]
samba-4.23.4/source4/kdc/mit_samba.c:268:41: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:268:41: throw: if ‘lpcfg_realm’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:268:41: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1369]
samba-4.23.4/source4/kdc/mit_samba.c:280:25: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:240:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:244:20: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:270:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:279:21: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:279:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:311:44: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:313:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:318:23: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:325:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:329:17: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:270:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:279:21: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:280:25: throw: if ‘sdb_entry_free’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:280:25: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1370]
samba-4.23.4/source4/kdc/mit_samba.c:310:30: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:240:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:244:20: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:270:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:279:21: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:279:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:311:44: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:310:30: throw: if ‘smb_krb5_principal_get_realm’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:310:30: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1371]
samba-4.23.4/source4/kdc/mit_samba.c:312:17: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:240:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:244:20: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:270:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:279:21: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:279:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:311:44: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:312:17: throw: if ‘sdb_entry_free’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:312:17: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1372]
samba-4.23.4/source4/kdc/mit_samba.c:318:23: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:240:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:244:20: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:270:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:279:21: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:279:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:311:44: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:313:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:318:23: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:318:23: throw: if ‘smb_krb5_make_principal’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:318:23: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1373]
samba-4.23.4/source4/kdc/mit_samba.c:338:15: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:338:15: throw: if ‘sdb_entry_to_krb5_db_entry’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:338:15: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1374]
samba-4.23.4/source4/kdc/mit_samba.c:343:9: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:343:9: throw: if ‘krb5_free_principal’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:343:9: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1375]
samba-4.23.4/source4/kdc/mit_samba.c:352:1: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:214:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:218:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:220:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:221:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:231:13: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:235:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:239:29: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:240:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:215:24: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:352:1: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1376]
samba-4.23.4/source4/kdc/mit_samba.c:376:15: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:365:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:369:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:371:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:372:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:376:15: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:376:15: throw: if ‘samba_kdc_firstkey’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:376:15: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1377]
samba-4.23.4/source4/kdc/mit_samba.c:390:15: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:365:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:369:10: branch_true: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:371:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:372:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:376:15: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:390:15: throw: if ‘sdb_entry_to_krb5_db_entry’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:390:15: danger: ‘kentry’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1378]
samba-4.23.4/source4/kdc/mit_samba.c:416:15: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:411:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:412:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:416:15: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:416:15: throw: if ‘samba_kdc_nextkey’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:416:15: danger: ‘kentry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1379]
samba-4.23.4/source4/kdc/mit_samba.c:430:15: warning[-Wanalyzer-malloc-leak]: leak of ‘kentry’
samba-4.23.4/source4/kdc/mit_samba.c:411:18: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:412:12: branch_false: following ‘false’ branch (when ‘kentry’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:416:15: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:430:15: throw: if ‘sdb_entry_to_krb5_db_entry’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:430:15: danger: ‘kentry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1380]
samba-4.23.4/source4/kdc/mit_samba.c:664:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pa.contents’
samba-4.23.4/source4/kdc/mit_samba.c:643:12: branch_false: following ‘false’ branch (when ‘e_data’ is non-NULL)...
samba-4.23.4/source4/kdc/mit_samba.c:646:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:652:35: acquire_memory: allocated here
samba-4.23.4/source4/kdc/mit_samba.c:653:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/kdc/mit_samba.c:657:9: branch_false: ...to here
samba-4.23.4/source4/kdc/mit_samba.c:664:15: throw: if ‘encode_krb5_padata_sequence’ throws an exception...
samba-4.23.4/source4/kdc/mit_samba.c:664:15: danger: ‘pa.contents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-477): [#def1381]
samba-4.23.4/source4/lib/events/tevent_s4.c: scope_hint: In function ‘s4_event_context_init’
samba-4.23.4/source4/lib/events/tevent_s4.c:37:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
samba-4.23.4/source4/lib/events/events.h:3: included_from: Included from here.
samba-4.23.4/source4/lib/events/tevent_s4.c:21: included_from: Included from here.
/usr/include/tevent.h:2712:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def1382]
samba-4.23.4/source4/lib/events/tevent_s4.c:37:17: warning[-Wdeprecated-declarations]: ‘tevent_loop_allow_nesting’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1383]
samba-4.23.4/source4/lib/messaging/messaging.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/lib/messaging/messaging.c:115:12: branch_false: following ‘false’ branch (when ‘num_fds == 1’)...
samba-4.23.4/source4/lib/messaging/messaging.c:120:13: branch_false: ...to here
samba-4.23.4/source4/lib/messaging/messaging.c:120:13: acquire_memory: allocated here
samba-4.23.4/source4/lib/messaging/messaging.c:121:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/lib/messaging/messaging.c:126:9: branch_false: ...to here
samba-4.23.4/source4/lib/messaging/messaging.c:126:9: throw: if ‘talloc_full_report_printf’ throws an exception...
samba-4.23.4/source4/lib/messaging/messaging.c:126:9: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1384]
samba-4.23.4/source4/lib/policy/gp_filesys.c:438:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(local_path)’
samba-4.23.4/source4/lib/policy/gp_filesys.c:432:15: acquire_memory: allocated here
samba-4.23.4/source4/lib/policy/gp_filesys.c:433:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/policy/gp_filesys.c:433:12: branch_false: ...to here
samba-4.23.4/source4/lib/policy/gp_filesys.c:438:26: throw: if ‘readdir’ throws an exception...
samba-4.23.4/source4/lib/policy/gp_filesys.c:438:26: danger: ‘opendir(local_path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1385]
samba-4.23.4/source4/lib/policy/gp_filesys.c:502:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(talloc_asprintf(gp_ctx, "%s/%s", local_path, &*<unknown>.d_name), 0)’
samba-4.23.4/source4/lib/policy/gp_filesys.c:550:10: enter_function: entry to ‘gp_push_gpt’
samba-4.23.4/source4/lib/policy/gp_filesys.c:569:18: call_function: calling ‘push_recursive’ from ‘gp_push_gpt’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1386]
samba-4.23.4/source4/lib/policy/gp_filesys.c:507:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(talloc_asprintf(gp_ctx, "%s/%s", local_path, &*<unknown>.d_name), 0)’
samba-4.23.4/source4/lib/policy/gp_filesys.c:550:10: enter_function: entry to ‘gp_push_gpt’
samba-4.23.4/source4/lib/policy/gp_filesys.c:569:18: call_function: calling ‘push_recursive’ from ‘gp_push_gpt’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1387]
samba-4.23.4/source4/lib/policy/gp_filesys.c:523:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(talloc_asprintf(gp_ctx, "%s/%s", local_path, &*<unknown>.d_name), 0)’
samba-4.23.4/source4/lib/policy/gp_filesys.c:550:10: enter_function: entry to ‘gp_push_gpt’
samba-4.23.4/source4/lib/policy/gp_filesys.c:569:18: call_function: calling ‘push_recursive’ from ‘gp_push_gpt’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1388]
samba-4.23.4/source4/lib/policy/gp_filesys.c:535:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
samba-4.23.4/source4/lib/policy/gp_filesys.c:550:10: enter_function: entry to ‘gp_push_gpt’
samba-4.23.4/source4/lib/policy/gp_filesys.c:569:18: call_function: calling ‘push_recursive’ from ‘gp_push_gpt’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1389]
samba-4.23.4/source4/lib/registry/hive.c:46:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(location, 2)’
samba-4.23.4/source4/lib/registry/hive.c:38:14: acquire_resource: opened here
samba-4.23.4/source4/lib/registry/hive.c:39:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/hive.c:45:15: branch_false: ...to here
samba-4.23.4/source4/lib/registry/hive.c:46:9: danger: ‘open(location, 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1390]
samba-4.23.4/source4/lib/registry/patchfile_preg.c:78: error[uninitvar]: Uninitialized variable: &buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1391]
samba-4.23.4/source4/lib/registry/regf.c:1662:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source4/lib/registry/regf.c:1640:15: enter_function: entry to ‘regf_del_value’
samba-4.23.4/source4/lib/registry/regf.c:1652:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/regf.c:1656:18: branch_false: ...to here
samba-4.23.4/source4/lib/registry/regf.c:1656:18: call_function: calling ‘hbin_get’ from ‘regf_del_value’
samba-4.23.4/source4/lib/registry/regf.c:1656:18: return_function: returning to ‘regf_del_value’ from ‘hbin_get’
samba-4.23.4/source4/lib/registry/regf.c:1658:21: branch_true: following ‘true’ branch...
samba-4.23.4/source4/lib/registry/regf.c:1659:20: branch_true: ...to here
samba-4.23.4/source4/lib/registry/regf.c:1659:20: branch_false: following ‘false’ branch (when ‘found_offset == 0’)...
samba-4.23.4/source4/lib/registry/regf.c:1662:37: branch_false: ...to here
samba-4.23.4/source4/lib/registry/regf.c:1662:37: danger: dereference of NULL ‘values.data + (sizetype)(i * 4)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1392]
samba-4.23.4/source4/lib/registry/regf.c:1885:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
samba-4.23.4/source4/lib/registry/regf.c:1867:15: enter_function: entry to ‘regf_set_value’
samba-4.23.4/source4/lib/registry/regf.c:1881:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/lib/registry/regf.c:1882:26: branch_true: ...to here
samba-4.23.4/source4/lib/registry/regf.c:1882:26: call_function: calling ‘hbin_get’ from ‘regf_set_value’
samba-4.23.4/source4/lib/registry/regf.c:1882:26: return_function: returning to ‘regf_set_value’ from ‘hbin_get’
samba-4.23.4/source4/lib/registry/regf.c:1884:29: branch_true: following ‘true’ branch...
samba-4.23.4/source4/lib/registry/regf.c:1885:41: branch_true: ...to here
samba-4.23.4/source4/lib/registry/regf.c:1885:41: danger: dereference of NULL ‘values.data + (sizetype)(i * 4)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1393]
samba-4.23.4/source4/lib/registry/regf.c:2220:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor
samba-4.23.4/source4/lib/registry/regf.c:2204:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/regf.c:2206:9: branch_false: ...to here
samba-4.23.4/source4/lib/registry/regf.c:2211:20: acquire_resource: opened here
samba-4.23.4/source4/lib/registry/regf.c:2213:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/regf.c:2220:16: branch_false: ...to here
samba-4.23.4/source4/lib/registry/regf.c:2220:16: throw: if ‘tdr_pull_init’ throws an exception...
samba-4.23.4/source4/lib/registry/regf.c:2220:16: danger: leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1394]
samba-4.23.4/source4/lib/registry/tools/regshell.c:459:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
samba-4.23.4/source4/lib/registry/tools/regshell.c:433:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/tools/regshell.c:434:9: branch_false: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:437:18: branch_true: following ‘true’ branch...
samba-4.23.4/source4/lib/registry/tools/regshell.c:440:28: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/tools/regshell.c:442:28: branch_false: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:442:28: branch_true: following ‘true’ branch (when ‘count == 1’)...
samba-4.23.4/source4/lib/registry/tools/regshell.c:443:43: branch_true: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:437:18: branch_true: following ‘true’ branch...
samba-4.23.4/source4/lib/registry/tools/regshell.c:439:42: acquire_memory: allocated here
samba-4.23.4/source4/lib/registry/tools/regshell.c:440:28: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/tools/regshell.c:442:28: branch_false: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:442:28: branch_false: following ‘false’ branch (when ‘count != 1’)...
samba-4.23.4/source4/lib/registry/tools/regshell.c:442:28: branch_false: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:459:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1395]
samba-4.23.4/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.23.4/source4/lib/registry/tools/regshell.c:485:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/registry/tools/regshell.c:486:9: branch_false: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:492:20: branch_true: following ‘true’ branch (when ‘j != 99’)...
samba-4.23.4/source4/lib/registry/tools/regshell.c:493:26: branch_true: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:495:19: branch_true: following ‘true’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/lib/registry/tools/regshell.c:496:29: branch_true: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:497:46: acquire_memory: this call could return NULL
samba-4.23.4/source4/lib/registry/tools/regshell.c:500:36: branch_false: following ‘false’ branch (when ‘j != 1’)...
samba-4.23.4/source4/lib/registry/tools/regshell.c:500:36: branch_false: ...to here
samba-4.23.4/source4/lib/registry/tools/regshell.c:503:48: danger: argument 2 (‘strdup(subkeyname)’) from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: COMPILER_WARNING (CWE-704): [#def1396]
samba-4.23.4/source4/lib/registry/util.c: scope_hint: In function ‘reg_strhex_to_data_blob’
samba-4.23.4/source4/lib/registry/util.c:98:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1397]
samba-4.23.4/source4/lib/registry/util.c:98:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1398]
samba-4.23.4/source4/lib/registry/util.c:103:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1399]
samba-4.23.4/source4/lib/registry/util.c:103:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1400]
samba-4.23.4/source4/lib/socket/socket.c:459:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/source4/lib/socket/socket.c:452:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/lib/socket/socket.c:455:14: branch_false: ...to here
samba-4.23.4/source4/lib/socket/socket.c:455:14: acquire_resource: opened here
samba-4.23.4/source4/lib/socket/socket.c:456:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
samba-4.23.4/source4/lib/socket/socket.c:459:9: branch_false: ...to here
samba-4.23.4/source4/lib/socket/socket.c:459:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source4/lib/socket/socket.c:459:9: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1401]
samba-4.23.4/source4/libcli/clideltree.c:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: n
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1402]
samba-4.23.4/source4/libcli/clideltree.c:43:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘n’ where non-null expected
samba-4.23.4/source4/libcli/clideltree.c:42:13: acquire_memory: this call could return NULL
samba-4.23.4/source4/libcli/clideltree.c:43:11: danger: argument 1 (‘n’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1403]
samba-4.23.4/source4/libcli/clifile.c:698:9: warning[-Wanalyzer-malloc-leak]: leak of ‘path2’
samba-4.23.4/source4/libcli/clifile.c:697:17: acquire_memory: allocated here
samba-4.23.4/source4/libcli/clifile.c:698:9: throw: if ‘trim_string’ throws an exception...
samba-4.23.4/source4/libcli/clifile.c:698:9: danger: ‘path2’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1404]
samba-4.23.4/source4/libcli/clifile.c:699: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path2
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1405]
samba-4.23.4/source4/libcli/clifile.c:706:18: warning[-Wanalyzer-malloc-leak]: leak of ‘path2’
samba-4.23.4/source4/libcli/clifile.c:697:17: acquire_memory: allocated here
samba-4.23.4/source4/libcli/clifile.c:699:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/libcli/clifile.c:700:17: branch_true: ...to here
samba-4.23.4/source4/libcli/clifile.c:701:25: acquire_memory: allocated here
samba-4.23.4/source4/libcli/clifile.c:706:18: throw: if ‘smb_raw_chkpath’ throws an exception...
samba-4.23.4/source4/libcli/clifile.c:706:18: danger: ‘path2’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-457): [#def1406]
samba-4.23.4/source4/libcli/clilist.c:168: warning[uninitvar]: Uninitialized variable: state.last_name
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1407]
samba-4.23.4/source4/libcli/raw/rawreadwrite.c:158:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘req’
samba-4.23.4/source4/libcli/raw/rawreadwrite.c:197:19: enter_function: entry to ‘smb_raw_read’
samba-4.23.4/source4/libcli/raw/rawreadwrite.c:200:16: call_function: calling ‘smb_raw_read_recv’ from ‘smb_raw_read’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1408]
samba-4.23.4/source4/libcli/resolve/resolve.c:254:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addrs’
samba-4.23.4/source4/libcli/resolve/resolve.c:244:10: enter_function: entry to ‘resolve_name_recv’
samba-4.23.4/source4/libcli/resolve/resolve.c:249:33: release_memory: ‘addrs’ is NULL
samba-4.23.4/source4/libcli/resolve/resolve.c:251:18: call_function: calling ‘resolve_name_all_recv’ from ‘resolve_name_recv’
samba-4.23.4/source4/libcli/resolve/resolve.c:251:18: return_function: returning to ‘resolve_name_recv’ from ‘resolve_name_all_recv’
samba-4.23.4/source4/libcli/resolve/resolve.c:253:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/libcli/resolve/resolve.c:254:50: branch_true: ...to here
samba-4.23.4/source4/libcli/resolve/resolve.c:254:50: release_memory: ‘addrs’ is NULL
samba-4.23.4/source4/libcli/resolve/resolve.c:254:50: danger: dereference of NULL ‘addrs’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1409]
samba-4.23.4/source4/libcli/resolve/resolve.c:284:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘addrs’
samba-4.23.4/source4/libcli/resolve/resolve.c:272:10: enter_function: entry to ‘resolve_name_multiple_recv’
samba-4.23.4/source4/libcli/resolve/resolve.c:277:33: release_memory: ‘addrs’ is NULL
samba-4.23.4/source4/libcli/resolve/resolve.c:280:18: call_function: calling ‘resolve_name_all_recv’ from ‘resolve_name_multiple_recv’
samba-4.23.4/source4/libcli/resolve/resolve.c:280:18: return_function: returning to ‘resolve_name_multiple_recv’ from ‘resolve_name_all_recv’
samba-4.23.4/source4/libcli/resolve/resolve.c:281:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/libcli/resolve/resolve.c:281:9: branch_false: ...to here
samba-4.23.4/source4/libcli/resolve/resolve.c:284:24: release_memory: ‘addrs’ is NULL
samba-4.23.4/source4/libcli/resolve/resolve.c:284:19: danger: dereference of NULL ‘addrs + (long unsigned int)i * 8’
Error: CPPCHECK_WARNING (CWE-457): [#def1410]
samba-4.23.4/source4/libcli/smb2/create.c:93: error[uninitvar]: Uninitialized variable: data
Error: CPPCHECK_WARNING (CWE-457): [#def1411]
samba-4.23.4/source4/libcli/smb2/create.c:169: error[uninitvar]: Uninitialized variable: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1412]
samba-4.23.4/source4/libcli/smb_composite/appendacl.c:294:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.23.4/source4/libcli/smb_composite/appendacl.c:306:10: enter_function: entry to ‘smb_composite_appendacl’
samba-4.23.4/source4/libcli/smb_composite/appendacl.c:311:16: call_function: calling ‘smb_composite_appendacl_recv’ from ‘smb_composite_appendacl’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1413]
samba-4.23.4/source4/libcli/smb_composite/loadfile.c:274:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
samba-4.23.4/source4/libcli/smb_composite/loadfile.c:286:10: enter_function: entry to ‘smb_composite_loadfile’
samba-4.23.4/source4/libcli/smb_composite/loadfile.c:291:16: call_function: calling ‘smb_composite_loadfile_recv’ from ‘smb_composite_loadfile’
Error: COMPILER_WARNING (CWE-477): [#def1414]
samba-4.23.4/source4/librpc/rpc/dcerpc.c: scope_hint: In function ‘dcerpc_pipe_binding_handle’
samba-4.23.4/source4/librpc/rpc/dcerpc.c:747:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.23.4/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.23.4/source4/librpc/rpc/dcerpc.c:30: included_from: Included from here.
samba-4.23.4/librpc/rpc/rpc_common.h:257:19: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def1415]
samba-4.23.4/source4/librpc/rpc/dcerpc.c:747:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def1416]
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c: scope_hint: In function ‘pyrpc_irpc_connect’
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:94:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.23.4/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:30: included_from: Included from here.
samba-4.23.4/librpc/rpc/rpc_common.h:257:19: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def1417]
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:94:9: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1418]
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:416:23: warning[-Wanalyzer-malloc-leak]: leak of ‘wb’
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:403:21: branch_true: following ‘true’ branch...
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:405:64: branch_true: ...to here
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:405:64: acquire_memory: allocated here
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:407:20: branch_false: following ‘false’ branch (when ‘wb’ is non-NULL)...
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:410:17: branch_false: ...to here
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:416:23: throw: if ‘PyDescr_NewWrapper’ throws an exception...
samba-4.23.4/source4/librpc/rpc/pyrpc_util.c:416:23: danger: ‘wb’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-704): [#def1419]
samba-4.23.4/source4/nbt_server/wins/winsdb.c: scope_hint: In function ‘winsdb_addr_decode’
samba-4.23.4/source4/nbt_server/wins/winsdb.c:235:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1420]
samba-4.23.4/source4/nbt_server/wins/winsdb.c:235:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1421]
samba-4.23.4/source4/nbt_server/wins/winsdb.c:261:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1422]
samba-4.23.4/source4/nbt_server/wins/winsdb.c:261:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1423]
samba-4.23.4/source4/nbt_server/wins/winsdb.c:283:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1424]
samba-4.23.4/source4/nbt_server/wins/winsdb.c:283:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1425]
samba-4.23.4/source4/param/pyparam.c:283:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:269:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:272:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:272:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:275:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:275:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:278:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:283:9: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:283:9: throw: if ‘lpcfg_numservices’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:283:9: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1426]
samba-4.23.4/source4/param/pyparam.c:283:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:269:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:272:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:272:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:275:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:275:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:278:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:283:9: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:283:9: throw: if ‘lpcfg_numservices’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:283:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1427]
samba-4.23.4/source4/param/pyparam.c:314:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:300:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:303:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:303:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:306:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:306:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:309:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:314:9: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:314:9: throw: if ‘lpcfg_dump_globals’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:314:9: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1428]
samba-4.23.4/source4/param/pyparam.c:314:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:300:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:303:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:303:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:306:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:306:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:309:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:314:9: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:314:9: throw: if ‘lpcfg_dump_globals’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:314:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1429]
samba-4.23.4/source4/param/pyparam.c:347:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:347:37: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:347:37: throw: if ‘strwicmp’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:347:37: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1430]
samba-4.23.4/source4/param/pyparam.c:347:37: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:347:37: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:347:37: throw: if ‘strwicmp’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:347:37: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1431]
samba-4.23.4/source4/param/pyparam.c:348:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:348:17: throw: if ‘strwicmp’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:348:17: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1432]
samba-4.23.4/source4/param/pyparam.c:348:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:348:17: throw: if ‘strwicmp’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:348:17: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1433]
samba-4.23.4/source4/param/pyparam.c:350:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:350:27: throw: if ‘lpcfg_service’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:350:27: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1434]
samba-4.23.4/source4/param/pyparam.c:350:27: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:350:27: throw: if ‘lpcfg_service’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:350:27: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1435]
samba-4.23.4/source4/param/pyparam.c:352:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:351:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:352:25: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:352:25: throw: if ‘PyErr_Format’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:352:25: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1436]
samba-4.23.4/source4/param/pyparam.c:352:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:351:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:352:25: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:352:25: throw: if ‘PyErr_Format’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:352:25: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1437]
samba-4.23.4/source4/param/pyparam.c:361:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:361:15: throw: if ‘lpcfg_dump_a_parameter’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:361:15: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1438]
samba-4.23.4/source4/param/pyparam.c:361:15: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:361:15: throw: if ‘lpcfg_dump_a_parameter’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:361:15: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1439]
samba-4.23.4/source4/param/pyparam.c:377:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:351:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:352:25: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:377:1: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1440]
samba-4.23.4/source4/param/pyparam.c:377:1: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:334:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:337:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:337:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:340:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:340:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:343:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:347:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:347:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:351:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:352:25: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:377:1: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1441]
samba-4.23.4/source4/param/pyparam.c:642:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:628:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:631:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:631:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:634:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:634:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:637:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:641:14: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:641:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:642:17: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:642:17: throw: if ‘PyErr_SetNone’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:642:17: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1442]
samba-4.23.4/source4/param/pyparam.c:642:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:628:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:631:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:631:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:634:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:634:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:637:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:641:14: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:641:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/pyparam.c:642:17: branch_true: ...to here
samba-4.23.4/source4/param/pyparam.c:642:17: throw: if ‘PyErr_SetNone’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:642:17: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1443]
samba-4.23.4/source4/param/pyparam.c:651:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
samba-4.23.4/source4/param/pyparam.c:628:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:631:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:631:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:634:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:634:21: acquire_resource: opened here
samba-4.23.4/source4/param/pyparam.c:637:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:641:14: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:641:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:649:27: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:651:9: throw: if ‘lpcfg_dump_one’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:651:9: danger: ‘f’ leaks here; was opened at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1444]
samba-4.23.4/source4/param/pyparam.c:651:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
samba-4.23.4/source4/param/pyparam.c:628:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:631:13: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:631:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:634:21: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:634:21: acquire_memory: allocated here
samba-4.23.4/source4/param/pyparam.c:637:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
samba-4.23.4/source4/param/pyparam.c:641:14: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:641:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/pyparam.c:649:27: branch_false: ...to here
samba-4.23.4/source4/param/pyparam.c:651:9: throw: if ‘lpcfg_dump_one’ throws an exception...
samba-4.23.4/source4/param/pyparam.c:651:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1445]
samba-4.23.4/source4/param/share_classic.c:63:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.23.4/source4/param/share_classic.c:57:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/share_classic.c:58:24: branch_true: ...to here
samba-4.23.4/source4/param/share_classic.c:59:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/share_classic.c:62:23: branch_false: ...to here
samba-4.23.4/source4/param/share_classic.c:63:17: danger: dereference of NULL ‘val’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1446]
samba-4.23.4/source4/param/share_classic.c:121:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.23.4/source4/param/share_classic.c:115:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/share_classic.c:116:24: branch_true: ...to here
samba-4.23.4/source4/param/share_classic.c:117:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/share_classic.c:120:23: branch_false: ...to here
samba-4.23.4/source4/param/share_classic.c:121:17: danger: dereference of NULL ‘val’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1447]
samba-4.23.4/source4/param/share_classic.c:179:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.23.4/source4/param/share_classic.c:173:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/share_classic.c:174:24: branch_true: ...to here
samba-4.23.4/source4/param/share_classic.c:175:19: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/share_classic.c:178:23: branch_false: ...to here
samba-4.23.4/source4/param/share_classic.c:179:17: danger: dereference of NULL ‘val’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1448]
samba-4.23.4/source4/param/share_classic.c:277:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
samba-4.23.4/source4/param/share_classic.c:271:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/param/share_classic.c:272:24: branch_true: ...to here
samba-4.23.4/source4/param/share_classic.c:273:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/param/share_classic.c:276:23: branch_false: ...to here
samba-4.23.4/source4/param/share_classic.c:277:17: danger: dereference of NULL ‘val’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1449]
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:409:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:923:8: enter_function: entry to ‘dns_fill_records_array’
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:944:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:947:13: branch_false: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:966:12: branch_false: following ‘false’ branch (when ‘msg’ is non-NULL)...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:971:13: branch_false: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:971:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:975:15: branch_false: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:976:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:982:14: branch_false: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:983:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:988:19: branch_true: following ‘true’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:993:49: branch_true: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:995:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1001:20: branch_false: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1028:28: branch_true: following ‘true’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1029:37: branch_true: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1029:36: branch_true: following ‘true’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1035:56: branch_true: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1039:36: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1043:65: branch_false: ...to here
samba-4.23.4/source4/rpc_server/dnsserver/dnsdata.c:1044:33: call_function: calling ‘dnsp_to_dns_copy’ from ‘dns_fill_records_array’
Error: CPPCHECK_WARNING (CWE-457): [#def1450]
samba-4.23.4/source4/rpc_server/drsuapi/getncchanges.c:2086: warning[uninitvar]: Uninitialized variable: source_guid.length
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1451]
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3138:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*r.out.result’
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3343:17: enter_function: entry to ‘dcesrv_lsa_RemovePrivilegesFromAccount’
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3351:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3357:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3358:13: branch_true: ...to here
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3357:13: branch_true: following ‘true’ branch...
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3362:33: branch_true: ...to here
samba-4.23.4/source4/rpc_server/lsa/dcesrv_lsa.c:3366:26: call_function: calling ‘dcesrv_lsa_EnumAccountRights’ from ‘dcesrv_lsa_RemovePrivilegesFromAccount’
Error: COMPILER_WARNING (CWE-704): [#def1452]
samba-4.23.4/source4/rpc_server/lsa/lsa_init.c: scope_hint: In function ‘dcesrv_lsa_get_policy_state’
samba-4.23.4/source4/rpc_server/lsa/lsa_init.c:126:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1453]
samba-4.23.4/source4/rpc_server/lsa/lsa_init.c:126:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1454]
samba-4.23.4/source4/rpc_server/lsa/lsa_init.c:135:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1455]
samba-4.23.4/source4/rpc_server/lsa/lsa_init.c:135:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1456]
samba-4.23.4/source4/rpc_server/lsa/lsa_lookup.c: scope_hint: In function ‘dcesrv_lsa_LookupNames_base_call’
samba-4.23.4/source4/rpc_server/lsa/lsa_lookup.c:999:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1457]
samba-4.23.4/source4/rpc_server/lsa/lsa_lookup.c:999:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1458]
samba-4.23.4/source4/rpc_server/lsa/lsa_lookup.c:1019:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1459]
samba-4.23.4/source4/rpc_server/lsa/lsa_lookup.c:1019:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1460]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:966:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:966:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1461]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:969:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:969:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1462]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:972:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:972:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1463]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:975:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:975:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1464]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:981:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:981:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1465]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:984:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:984:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1466]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:987:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:987:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1467]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:993:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:993:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1468]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:996:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:996:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1469]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:999:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dom_msgs’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:838:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:958:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:962:10: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:999:24: danger: use of uninitialized value ‘dom_msgs’ here
Error: CPPCHECK_WARNING (CWE-457): [#def1470]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:2099: warning[uninitvar]: Uninitialized variables: res.dn, res.num_elements, res.elements
Error: CPPCHECK_WARNING (CWE-457): [#def1471]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4448: warning[uninitvar]: Uninitialized variable: res_memberof
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1472]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4701:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesGeneral’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4503:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4701:25: danger: dereference of NULL ‘entriesGeneral + (long unsigned int)count * 64’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1473]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4717:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFull’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4503:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4717:25: danger: dereference of NULL ‘entriesFull + (long unsigned int)count * 48’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1474]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4735:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesFullGroup’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4503:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4735:25: danger: dereference of NULL ‘entriesFullGroup + (long unsigned int)count * 48’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1475]
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4751:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entriesAscii’
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4493:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4503:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4572:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4605:19: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4626:12: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4636:21: branch_true: following ‘true’ branch (when ‘i < results’)...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4639:38: branch_true: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4660:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4667:27: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4672:53: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4674:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4681:26: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4685:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4698:24: branch_false: ...to here
samba-4.23.4/source4/rpc_server/samr/dcesrv_samr.c:4751:25: danger: dereference of NULL ‘entriesAscii + (long unsigned int)count * 24’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1476]
samba-4.23.4/source4/samba/process_prefork.c:400:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘control_pipe[0]’
samba-4.23.4/source4/samba/process_prefork.c:228:13: enter_function: entry to ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:253:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:257:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:259:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:295:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:303:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:306:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:306:9: call_function: calling ‘prefork_reload_after_fork’ from ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:306:9: return_function: returning to ‘prefork_fork_master’ from ‘prefork_reload_after_fork’
samba-4.23.4/source4/samba/process_prefork.c:307:9: call_function: calling ‘setup_handlers’ from ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:307:9: return_function: returning to ‘prefork_fork_master’ from ‘setup_handlers’
samba-4.23.4/source4/samba/process_prefork.c:309:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:330:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:339:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:352:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:363:42: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:365:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:369:24: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:397:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/source4/samba/process_prefork.c:400:17: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:400:17: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source4/samba/process_prefork.c:400:17: danger: ‘control_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1477]
samba-4.23.4/source4/samba/process_prefork.c:400:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘control_pipe[1]’
samba-4.23.4/source4/samba/process_prefork.c:228:13: enter_function: entry to ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:253:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:257:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:259:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:295:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:303:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:306:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:306:9: call_function: calling ‘prefork_reload_after_fork’ from ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:306:9: return_function: returning to ‘prefork_fork_master’ from ‘prefork_reload_after_fork’
samba-4.23.4/source4/samba/process_prefork.c:307:9: call_function: calling ‘setup_handlers’ from ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:307:9: return_function: returning to ‘prefork_fork_master’ from ‘setup_handlers’
samba-4.23.4/source4/samba/process_prefork.c:309:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:330:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:339:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:352:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:363:42: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:365:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:369:24: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:397:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/source4/samba/process_prefork.c:400:17: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:400:17: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source4/samba/process_prefork.c:400:17: danger: ‘control_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1478]
samba-4.23.4/source4/samba/process_prefork.c:401:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘control_pipe[1]’
samba-4.23.4/source4/samba/process_prefork.c:228:13: enter_function: entry to ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:253:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:257:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:259:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:295:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:303:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:306:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:306:9: call_function: calling ‘prefork_reload_after_fork’ from ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:306:9: return_function: returning to ‘prefork_fork_master’ from ‘prefork_reload_after_fork’
samba-4.23.4/source4/samba/process_prefork.c:307:9: call_function: calling ‘setup_handlers’ from ‘prefork_fork_master’
samba-4.23.4/source4/samba/process_prefork.c:307:9: return_function: returning to ‘prefork_fork_master’ from ‘setup_handlers’
samba-4.23.4/source4/samba/process_prefork.c:309:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:330:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:333:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:339:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:352:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:363:42: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:365:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_prefork.c:369:24: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:397:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
samba-4.23.4/source4/samba/process_prefork.c:400:17: branch_false: ...to here
samba-4.23.4/source4/samba/process_prefork.c:401:17: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source4/samba/process_prefork.c:401:17: danger: ‘control_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1479]
samba-4.23.4/source4/samba/process_standard.c:215:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘parent_child_pipe[0]’
samba-4.23.4/source4/samba/process_standard.c:193:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_standard.c:197:12: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:202:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_standard.c:207:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:208:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/samba/process_standard.c:215:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:215:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source4/samba/process_standard.c:215:9: danger: ‘parent_child_pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1480]
samba-4.23.4/source4/samba/process_standard.c:215:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘parent_child_pipe[1]’
samba-4.23.4/source4/samba/process_standard.c:193:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_standard.c:197:12: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:202:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_standard.c:207:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:208:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/samba/process_standard.c:215:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:215:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source4/samba/process_standard.c:215:9: danger: ‘parent_child_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1481]
samba-4.23.4/source4/samba/process_standard.c:216:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘parent_child_pipe[1]’
samba-4.23.4/source4/samba/process_standard.c:193:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_standard.c:197:12: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:202:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/process_standard.c:207:15: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:208:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/samba/process_standard.c:215:9: branch_false: ...to here
samba-4.23.4/source4/samba/process_standard.c:216:9: throw: if ‘smb_set_close_on_exec’ throws an exception...
samba-4.23.4/source4/samba/process_standard.c:216:9: danger: ‘parent_child_pipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1482]
samba-4.23.4/source4/samba/server.c:72:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
samba-4.23.4/source4/samba/server.c:67:15: acquire_memory: allocated here
samba-4.23.4/source4/samba/server.c:68:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/samba/server.c:72:17: branch_false: ...to here
samba-4.23.4/source4/samba/server.c:72:17: throw: if ‘readdir’ throws an exception...
samba-4.23.4/source4/samba/server.c:72:17: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-477): [#def1483]
samba-4.23.4/source4/samba/service_task.c: scope_hint: In function ‘task_server_terminate’
samba-4.23.4/source4/samba/service_task.c:49:25: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
samba-4.23.4/source4/librpc/rpc/dcerpc.h:33: included_from: Included from here.
samba-4.23.4/bin/default/source4/librpc/gen_ndr/ndr_irpc_c.h:1: included_from: Included from here.
samba-4.23.4/source4/samba/service_task.c:26: included_from: Included from here.
samba-4.23.4/librpc/rpc/rpc_common.h:257:19: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def1484]
samba-4.23.4/source4/samba/service_task.c:49:25: warning[-Wdeprecated-declarations]: ‘dcerpc_binding_handle_set_sync_ev’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1485]
samba-4.23.4/source4/torture/basic/delaywrite.c:1300:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo2.all_info.out.write_time’
samba-4.23.4/source4/torture/basic/delaywrite.c:1212:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1214:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1216:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1222:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1235:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1267:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1268:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1276:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1298:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1298:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1300:9: danger: use of uninitialized value ‘finfo2.all_info.out.write_time’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1486]
samba-4.23.4/source4/torture/basic/delaywrite.c:1631:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo2.basic_info.out.write_time’
samba-4.23.4/source4/torture/basic/delaywrite.c:1535:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1537:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1539:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1545:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1558:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1567:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1568:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1573:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1579:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1579:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1581:9: branch_false: following ‘false’ branch (when ‘__got != __not_expected’)...
samba-4.23.4/source4/torture/basic/delaywrite.c:1587:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1587:9: branch_false: following ‘false’ branch (when ‘__not_expected != __got’)...
samba-4.23.4/source4/torture/basic/delaywrite.c:1594:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1599:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1628:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1630:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1631:9: danger: use of uninitialized value ‘finfo2.basic_info.out.write_time’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1487]
samba-4.23.4/source4/torture/basic/delaywrite.c:1953:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo2.basic_info.out.write_time’
samba-4.23.4/source4/torture/basic/delaywrite.c:1875:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1877:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1879:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1885:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1898:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1906:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1912:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1912:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1914:9: branch_false: following ‘false’ branch (when ‘__got != __not_expected’)...
samba-4.23.4/source4/torture/basic/delaywrite.c:1922:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1927:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1950:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:1952:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:1953:9: danger: use of uninitialized value ‘finfo2.basic_info.out.write_time’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1488]
samba-4.23.4/source4/torture/basic/delaywrite.c:2091:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo3.all_info.out.write_time’
samba-4.23.4/source4/torture/basic/delaywrite.c:2002:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2004:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2006:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2012:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2029:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2034:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2040:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2040:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2042:9: branch_false: following ‘false’ branch (when ‘__got != __not_expected’)...
samba-4.23.4/source4/torture/basic/delaywrite.c:2048:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2049:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2125:1: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2050:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2051:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2054:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2125:1: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2055:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2056:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2061:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2077:17: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2079:16: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2081:17: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2083:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2089:17: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2089:17: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2091:17: danger: use of uninitialized value ‘finfo3.all_info.out.write_time’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1489]
samba-4.23.4/source4/torture/basic/delaywrite.c:2102:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘finfo4.basic_info.out.write_time’
samba-4.23.4/source4/torture/basic/delaywrite.c:2002:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2004:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2006:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2012:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2029:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2034:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2040:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2040:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2042:9: branch_false: following ‘false’ branch (when ‘__got != __not_expected’)...
samba-4.23.4/source4/torture/basic/delaywrite.c:2048:9: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2049:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2125:1: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2050:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2051:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2054:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2125:1: branch_false: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2055:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2056:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2061:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2077:17: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2079:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2099:9: branch_true: ...to here
samba-4.23.4/source4/torture/basic/delaywrite.c:2101:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/basic/delaywrite.c:2102:9: danger: use of uninitialized value ‘finfo4.basic_info.out.write_time’ here
Error: CPPCHECK_WARNING (CWE-457): [#def1490]
samba-4.23.4/source4/torture/basic/utable.c:56: error[uninitvar]: Uninitialized variable: c2
Error: CPPCHECK_WARNING (CWE-457): [#def1491]
samba-4.23.4/source4/torture/basic/utable.c:120: error[uninitvar]: Uninitialized variable: c2
Error: CPPCHECK_WARNING (CWE-628): [#def1492]
samba-4.23.4/source4/torture/basic/utable.c:149: warning[invalidFunctionArg]: Invalid isprint() argument nr 1. The value is 65535 but the valid values are '0:255'.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1493]
samba-4.23.4/source4/torture/dfs/domaindfs.c:142:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
samba-4.23.4/source4/torture/dfs/domaindfs.c:91:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/dfs/domaindfs.c:194:1: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:96:11: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/dfs/domaindfs.c:100:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:104:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/dfs/domaindfs.c:194:1: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:109:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.23.4/source4/torture/dfs/domaindfs.c:111:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:111:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.23.4/source4/torture/dfs/domaindfs.c:113:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:113:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.23.4/source4/torture/dfs/domaindfs.c:115:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:115:9: branch_false: following ‘false’ branch (when ‘__got == 3’)...
samba-4.23.4/source4/torture/dfs/domaindfs.c:119:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:119:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.23.4/source4/torture/dfs/domaindfs.c:124:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:124:9: branch_false: following ‘false’ branch (when ‘__got == 2’)...
samba-4.23.4/source4/torture/dfs/domaindfs.c:129:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:129:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/dfs/domaindfs.c:133:9: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:133:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/dfs/domaindfs.c:137:15: branch_false: ...to here
samba-4.23.4/source4/torture/dfs/domaindfs.c:142:9: danger: dereference of NULL ‘str’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1494]
samba-4.23.4/source4/torture/dns/dlz_bind9.c:56:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
samba-4.23.4/source4/torture/dns/dlz_bind9.c:55:9: acquire_resource: ‘va_start’ called here
samba-4.23.4/source4/torture/dns/dlz_bind9.c:56:15: throw: if ‘talloc_vasprintf’ throws an exception...
samba-4.23.4/source4/torture/dns/dlz_bind9.c:56:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1495]
samba-4.23.4/source4/torture/gentest.c:3262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
samba-4.23.4/source4/torture/gentest.c:3260:19: acquire_memory: allocated here
samba-4.23.4/source4/torture/gentest.c:3261:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
samba-4.23.4/source4/torture/gentest.c:3262:9: branch_false: ...to here
samba-4.23.4/source4/torture/gentest.c:3262:9: throw: if ‘all_string_sub’ throws an exception...
samba-4.23.4/source4/torture/gentest.c:3262:9: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1496]
samba-4.23.4/source4/torture/gpo/apply.c:150:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", talloc_asprintf(<unknown>, "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/MACHINE/Microsoft/Windows NT/SecEdit"), "GptTmpl.inf"), "w")’
samba-4.23.4/source4/torture/gpo/apply.c:119:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:122:19: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:128:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:138:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:140:15: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:142:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:147:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
samba-4.23.4/source4/torture/gpo/apply.c:149:28: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:149:28: acquire_resource: opened here
samba-4.23.4/source4/torture/gpo/apply.c:149:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:150:31: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:150:31: throw: if ‘talloc_asprintf’ throws an exception...
samba-4.23.4/source4/torture/gpo/apply.c:150:31: danger: ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", talloc_asprintf(<unknown>, "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/MACHINE/Microsoft/Windows NT/SecEdit"), "GptTmpl.inf"), "w")’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1497]
samba-4.23.4/source4/torture/gpo/apply.c:150:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", talloc_asprintf(<unknown>, "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/MACHINE/Microsoft/Windows NT/SecEdit"), "GptTmpl.inf"), "w")’
samba-4.23.4/source4/torture/gpo/apply.c:119:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:122:19: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:128:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:138:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:140:15: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:142:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:147:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
samba-4.23.4/source4/torture/gpo/apply.c:149:28: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:149:28: acquire_memory: allocated here
samba-4.23.4/source4/torture/gpo/apply.c:149:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:150:31: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:150:31: throw: if ‘talloc_asprintf’ throws an exception...
samba-4.23.4/source4/torture/gpo/apply.c:150:31: danger: ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", talloc_asprintf(<unknown>, "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/MACHINE/Microsoft/Windows NT/SecEdit"), "GptTmpl.inf"), "w")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1498]
samba-4.23.4/source4/torture/gpo/apply.c:169:38: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/GPT.INI"), "w")’
samba-4.23.4/source4/torture/gpo/apply.c:119:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:122:19: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:128:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:138:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:140:15: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:142:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:147:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
samba-4.23.4/source4/torture/gpo/apply.c:149:28: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:168:28: acquire_resource: opened here
samba-4.23.4/source4/torture/gpo/apply.c:168:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:169:31: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:169:38: throw: if ‘talloc_asprintf’ throws an exception...
samba-4.23.4/source4/torture/gpo/apply.c:169:38: danger: ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/GPT.INI"), "w")’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1499]
samba-4.23.4/source4/torture/gpo/apply.c:169:38: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/GPT.INI"), "w")’
samba-4.23.4/source4/torture/gpo/apply.c:119:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:122:19: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:128:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:138:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:140:15: branch_false: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:142:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:147:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
samba-4.23.4/source4/torture/gpo/apply.c:149:28: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:168:28: acquire_memory: allocated here
samba-4.23.4/source4/torture/gpo/apply.c:168:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/gpo/apply.c:169:31: branch_true: ...to here
samba-4.23.4/source4/torture/gpo/apply.c:169:38: throw: if ‘talloc_asprintf’ throws an exception...
samba-4.23.4/source4/torture/gpo/apply.c:169:38: danger: ‘fopen(talloc_asprintf(talloc_named_const(tctx, 0, "talloc_new: ../../source4/torture/gpo/apply.c:92"), "%s/%s", lpcfg_path(lpcfg_service(*tctx.lp_ctx, "sysvol"), lpcfg_default_service(*tctx.lp_ctx), tctx), "addom.samba.example.com/Policies/{{31B2F340-016D-11D2-945F-00C04FB984F9}}/GPT.INI"), "w")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1500]
samba-4.23.4/source4/torture/libnetapi/libnetapi_group.c:191:49: warning[-Wanalyzer-null-argument]: use of NULL ‘current_name’ where non-null expected
Error: CPPCHECK_WARNING (CWE-457): [#def1501]
samba-4.23.4/source4/torture/locktest.c:569: error[uninitvar]: Uninitialized variable: &seed
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1502]
samba-4.23.4/source4/torture/masktest.c:50:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file’
samba-4.23.4/source4/torture/masktest.c:218:13: enter_function: entry to ‘test_mask’
samba-4.23.4/source4/torture/masktest.c:231:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
samba-4.23.4/source4/torture/masktest.c:231:12: branch_false: ...to here
samba-4.23.4/source4/torture/masktest.c:268:17: call_function: calling ‘testpair’ from ‘test_mask’
Error: CPPCHECK_WARNING (CWE-457): [#def1503]
samba-4.23.4/source4/torture/masktest.c:310: error[uninitvar]: Uninitialized variable: &seed
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1504]
samba-4.23.4/source4/torture/nbench/nbench.c:95:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loadfile, "r")’
samba-4.23.4/source4/torture/nbench/nbench.c:83:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: acquire_resource: opened here
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:95:9: throw: if ‘nbio_time_reset’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbench.c:95:9: danger: ‘fopen(loadfile, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1505]
samba-4.23.4/source4/torture/nbench/nbench.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loadfile, "r")’
samba-4.23.4/source4/torture/nbench/nbench.c:83:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: acquire_memory: allocated here
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:95:9: throw: if ‘nbio_time_reset’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbench.c:95:9: danger: ‘fopen(loadfile, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1506]
samba-4.23.4/source4/torture/nbench/nbench.c:103:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loadfile, "r")’
samba-4.23.4/source4/torture/nbench/nbench.c:83:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: acquire_resource: opened here
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:109:17: throw: if ‘all_string_sub’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbench.c:103:17: danger: ‘fopen(loadfile, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1507]
samba-4.23.4/source4/torture/nbench/nbench.c:103:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loadfile, "r")’
samba-4.23.4/source4/torture/nbench/nbench.c:83:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: acquire_memory: allocated here
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:109:17: throw: if ‘all_string_sub’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbench.c:103:17: danger: ‘fopen(loadfile, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1508]
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(loadfile, "r")’
samba-4.23.4/source4/torture/nbench/nbench.c:83:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: acquire_resource: opened here
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:97:16: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: throw: if ‘rewind’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: danger: ‘fopen(loadfile, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1509]
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(loadfile, "r")’
samba-4.23.4/source4/torture/nbench/nbench.c:83:12: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:87:13: acquire_memory: allocated here
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:89:12: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:97:16: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: throw: if ‘rewind’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbench.c:221:9: danger: ‘fopen(loadfile, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-479): [#def1510]
samba-4.23.4/source4/torture/nbench/nbio.c:295:17: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
samba-4.23.4/source4/torture/nbench/nbio.c:248:6: enter_function: entry to ‘nb_alarm’
samba-4.23.4/source4/torture/nbench/nbio.c:256:12: branch_false: following ‘false’ branch...
branch_false: ...to here
call_function: calling ‘nb_alarm’ from ‘nb_alarm’
Error: CPPCHECK_WARNING (CWE-476): [#def1511]
samba-4.23.4/source4/torture/nbench/nbio.c:553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1512]
samba-4.23.4/source4/torture/nbench/nbio.c:553:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.23.4/source4/torture/nbench/nbio.c:540:6: enter_function: entry to ‘nb_writex’
samba-4.23.4/source4/torture/nbench/nbio.c:547:13: call_function: calling ‘find_handle’ from ‘nb_writex’
samba-4.23.4/source4/torture/nbench/nbio.c:547:13: return_function: returning to ‘nb_writex’ from ‘find_handle’
samba-4.23.4/source4/torture/nbench/nbio.c:549:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbio.c:552:15: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbio.c:552:15: acquire_memory: this call could return NULL
samba-4.23.4/source4/torture/nbench/nbio.c:553:9: danger: argument 1 (‘buf’) from [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1513]
samba-4.23.4/source4/torture/nbench/nbio.c:563:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/torture/nbench/nbio.c:540:6: enter_function: entry to ‘nb_writex’
samba-4.23.4/source4/torture/nbench/nbio.c:547:13: call_function: calling ‘find_handle’ from ‘nb_writex’
samba-4.23.4/source4/torture/nbench/nbio.c:547:13: return_function: returning to ‘nb_writex’ from ‘find_handle’
samba-4.23.4/source4/torture/nbench/nbio.c:549:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbio.c:552:15: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbio.c:552:15: acquire_memory: allocated here
samba-4.23.4/source4/torture/nbench/nbio.c:563:15: throw: if ‘smb_raw_write’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbio.c:563:15: danger: ‘buf’ leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
Error: CPPCHECK_WARNING (CWE-476): [#def1514]
samba-4.23.4/source4/torture/nbench/nbio.c:595: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1515]
samba-4.23.4/source4/torture/nbench/nbio.c:595:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
samba-4.23.4/source4/torture/nbench/nbio.c:581:6: enter_function: entry to ‘nb_write’
samba-4.23.4/source4/torture/nbench/nbio.c:588:13: call_function: calling ‘find_handle’ from ‘nb_write’
samba-4.23.4/source4/torture/nbench/nbio.c:588:13: return_function: returning to ‘nb_write’ from ‘find_handle’
samba-4.23.4/source4/torture/nbench/nbio.c:590:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbio.c:593:15: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbio.c:593:15: acquire_memory: this call could return NULL
samba-4.23.4/source4/torture/nbench/nbio.c:595:9: danger: argument 1 (‘buf’) from [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1516]
samba-4.23.4/source4/torture/nbench/nbio.c:604:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/torture/nbench/nbio.c:581:6: enter_function: entry to ‘nb_write’
samba-4.23.4/source4/torture/nbench/nbio.c:588:13: call_function: calling ‘find_handle’ from ‘nb_write’
samba-4.23.4/source4/torture/nbench/nbio.c:588:13: return_function: returning to ‘nb_write’ from ‘find_handle’
samba-4.23.4/source4/torture/nbench/nbio.c:590:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbio.c:593:15: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbio.c:593:15: acquire_memory: allocated here
samba-4.23.4/source4/torture/nbench/nbio.c:604:15: throw: if ‘smb_raw_write’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbio.c:604:15: danger: ‘buf’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1517]
samba-4.23.4/source4/torture/nbench/nbio.c:729:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
samba-4.23.4/source4/torture/nbench/nbio.c:706:6: enter_function: entry to ‘nb_readx’
samba-4.23.4/source4/torture/nbench/nbio.c:713:13: call_function: calling ‘find_handle’ from ‘nb_readx’
samba-4.23.4/source4/torture/nbench/nbio.c:713:13: return_function: returning to ‘nb_readx’ from ‘find_handle’
samba-4.23.4/source4/torture/nbench/nbio.c:715:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/nbench/nbio.c:718:15: branch_false: ...to here
samba-4.23.4/source4/torture/nbench/nbio.c:718:15: acquire_memory: allocated here
samba-4.23.4/source4/torture/nbench/nbio.c:729:15: throw: if ‘smb_raw_read’ throws an exception...
samba-4.23.4/source4/torture/nbench/nbio.c:729:15: danger: ‘buf’ leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1518]
samba-4.23.4/source4/torture/ndr/krb5pac.c:488:9: warning[-Wanalyzer-malloc-leak]: leak of ‘plain_data.data’
samba-4.23.4/source4/torture/ndr/krb5pac.c:441:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:443:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:443:9: branch_false: following ‘false’ branch (when ‘__got == 6’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:445:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:445:9: branch_false: following ‘false’ branch (when ‘__got == 1’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:446:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:446:9: branch_false: following ‘false’ branch (when ‘__got == 448’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:447:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:447:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/ndr/krb5pac.c:449:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:449:9: branch_false: following ‘false’ branch (when ‘__got == 2’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:450:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:450:9: branch_false: following ‘false’ branch (when ‘__got == 148’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:451:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:451:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/ndr/krb5pac.c:452:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:452:9: branch_false: following ‘false’ branch (when ‘__got == 0’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:456:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:456:9: branch_false: following ‘false’ branch (when ‘__got == 18’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:460:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:460:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/ndr/krb5pac.c:470:9: branch_false: following ‘false’ branch (when ‘__got == 32’)...
samba-4.23.4/source4/torture/ndr/krb5pac.c:471:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:471:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/ndr/krb5pac.c:472:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:472:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/ndr/krb5pac.c:478:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:484:27: acquire_memory: allocated here
samba-4.23.4/source4/torture/ndr/krb5pac.c:486:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/ndr/krb5pac.c:488:9: branch_false: ...to here
samba-4.23.4/source4/torture/ndr/krb5pac.c:488:9: throw: if ‘krb5_c_decrypt’ throws an exception...
samba-4.23.4/source4/torture/ndr/krb5pac.c:488:9: danger: ‘plain_data.data’ leaks here; was allocated at [(29)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/28)
Error: CPPCHECK_WARNING (CWE-457): [#def1519]
samba-4.23.4/source4/torture/raw/lockbench.c:374: warning[uninitvar]: Uninitialized variables: cli.options, cli.sock, cli.transport, cli.session, cli.tree, cli.substitute, cli.lsa
Error: CPPCHECK_WARNING (CWE-457): [#def1520]
samba-4.23.4/source4/torture/raw/offline.c:434: warning[uninitvar]: Uninitialized variables: cli.options, cli.sock, cli.transport, cli.session, cli.tree, cli.substitute, cli.lsa
Error: COMPILER_WARNING (CWE-704): [#def1521]
samba-4.23.4/source4/torture/raw/qfileinfo.c: scope_hint: In function ‘torture_raw_qfileinfo_internals’
samba-4.23.4/source4/torture/raw/qfileinfo.c:811:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1522]
samba-4.23.4/source4/torture/raw/qfileinfo.c:811:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1523]
samba-4.23.4/source4/torture/raw/samba3misc.c:850:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
samba-4.23.4/source4/torture/raw/samba3misc.c:806:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/raw/samba3misc.c:808:23: branch_true: ...to here
samba-4.23.4/source4/torture/raw/samba3misc.c:808:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/raw/samba3misc.c:813:16: branch_false: ...to here
samba-4.23.4/source4/torture/raw/samba3misc.c:814:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/raw/samba3misc.c:821:26: branch_false: ...to here
samba-4.23.4/source4/torture/raw/samba3misc.c:821:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/raw/samba3misc.c:827:27: branch_false: ...to here
samba-4.23.4/source4/torture/raw/samba3misc.c:827:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/raw/samba3misc.c:838:14: branch_false: ...to here
samba-4.23.4/source4/torture/raw/samba3misc.c:838:14: acquire_resource: opened here
samba-4.23.4/source4/torture/raw/samba3misc.c:839:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/raw/samba3misc.c:845:9: branch_false: ...to here
samba-4.23.4/source4/torture/raw/samba3misc.c:850:13: throw: if ‘fcntl’ throws an exception...
samba-4.23.4/source4/torture/raw/samba3misc.c:850:13: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-457): [#def1524]
samba-4.23.4/source4/torture/raw/search.c:344: error[uninitvar]: Uninitialized variable: params
Error: CPPCHECK_WARNING (CWE-457): [#def1525]
samba-4.23.4/source4/torture/raw/search.c:345: error[uninitvar]: Uninitialized variable: data
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1526]
samba-4.23.4/source4/torture/rpc/iremotewinspool_common.c:51:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘level1.build’
samba-4.23.4/source4/torture/rpc/iremotewinspool_common.c:39:13: branch_false: following ‘false’ branch (when ‘os > 8’)...
samba-4.23.4/source4/torture/rpc/iremotewinspool_common.c:51:16: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/iremotewinspool_common.c:51:16: danger: use of uninitialized value ‘level1.build’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1527]
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fpath, "r")’
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:98:14: acquire_resource: opened here
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:99:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:29: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:17: throw: if ‘smbcli_open’ throws an exception...
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:29: danger: ‘fopen(fpath, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1528]
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fpath, "r")’
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:98:14: acquire_memory: allocated here
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:99:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:29: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:17: throw: if ‘smbcli_open’ throws an exception...
samba-4.23.4/source4/torture/rpc/iremotewinspool_driver.c:101:29: danger: ‘fopen(fpath, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-131): [#def1529]
samba-4.23.4/source4/torture/rpc/samr.c:111:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
samba-4.23.4/source4/torture/rpc/samr.c:353:14: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:355:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:356:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:357:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:361:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:363:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:365:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:367:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:369:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:371:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:373:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:376:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:377:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:378:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:379:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:380:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:381:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:382:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:383:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:386:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:387:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:388:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:389:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:390:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:391:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:392:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:393:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:396:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:397:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:398:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:399:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:402:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:403:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:404:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:405:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:408:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:409:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:410:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:411:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:413:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:416:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:417:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:418:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:419:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:421:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:424:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:425:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:426:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:427:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:430:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:431:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:432:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:433:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:435:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:437:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:439:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:442:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:571:1: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:442:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/samr.c:442:9: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/samr.c:442:9: call_function: inlined call to ‘init_lsa_BinaryString’ from ‘test_SetUserInfo’
Error: COMPILER_WARNING (CWE-704): [#def1530]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘strip_unc’
samba-4.23.4/source4/torture/rpc/spoolss.c:4759:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1531]
samba-4.23.4/source4/torture/rpc/spoolss.c:4759:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1532]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘strip_path’
samba-4.23.4/source4/torture/rpc/spoolss.c:5062:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1533]
samba-4.23.4/source4/torture/rpc/spoolss.c:5062:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1534]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘test_SetPrinterDataEx_keys’
samba-4.23.4/source4/torture/rpc/spoolss.c:5509:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1535]
samba-4.23.4/source4/torture/rpc/spoolss.c:5509:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1536]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘test_SetPrinterDataEx_values’
samba-4.23.4/source4/torture/rpc/spoolss.c:5572:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1537]
samba-4.23.4/source4/torture/rpc/spoolss.c:5572:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1538]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘get_full_printername’
samba-4.23.4/source4/torture/rpc/spoolss.c:7187:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1539]
samba-4.23.4/source4/torture/rpc/spoolss.c:7187:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1540]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘compose_local_driver_directory’
samba-4.23.4/source4/torture/rpc/spoolss.c:8032:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1541]
samba-4.23.4/source4/torture/rpc/spoolss.c:8032:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1542]
samba-4.23.4/source4/torture/rpc/spoolss.c: scope_hint: In function ‘driver_directory_dir’
samba-4.23.4/source4/torture/rpc/spoolss.c:10628:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1543]
samba-4.23.4/source4/torture/rpc/spoolss.c:10628:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1544]
samba-4.23.4/source4/torture/rpc/spoolss.c:10756:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’
samba-4.23.4/source4/torture/rpc/spoolss.c:10706:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10718:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10719:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10728:9: branch_false: following ‘false’ branch (when ‘remote_name’ is non-NULL)...
samba-4.23.4/source4/torture/rpc/spoolss.c:10730:9: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: acquire_resource: opened here
samba-4.23.4/source4/torture/rpc/spoolss.c:10738:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10742:15: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10748:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10752:26: branch_true: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10756:25: throw: if ‘torture_warning’ throws an exception...
samba-4.23.4/source4/torture/rpc/spoolss.c:10756:25: danger: ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1545]
samba-4.23.4/source4/torture/rpc/spoolss.c:10756:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’
samba-4.23.4/source4/torture/rpc/spoolss.c:10706:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10718:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10719:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10728:9: branch_false: following ‘false’ branch (when ‘remote_name’ is non-NULL)...
samba-4.23.4/source4/torture/rpc/spoolss.c:10730:9: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: acquire_memory: allocated here
samba-4.23.4/source4/torture/rpc/spoolss.c:10738:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10742:15: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10748:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10752:26: branch_true: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10756:25: throw: if ‘torture_warning’ throws an exception...
samba-4.23.4/source4/torture/rpc/spoolss.c:10756:25: danger: ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1546]
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’
samba-4.23.4/source4/torture/rpc/spoolss.c:10706:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10718:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10719:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10728:9: branch_false: following ‘false’ branch (when ‘remote_name’ is non-NULL)...
samba-4.23.4/source4/torture/rpc/spoolss.c:10730:9: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: acquire_resource: opened here
samba-4.23.4/source4/torture/rpc/spoolss.c:10738:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10742:15: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10748:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10752:26: branch_true: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10752:20: branch_false: following ‘false’ branch (when ‘n > 0’)...
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: throw: if ‘smbcli_write’ throws an exception...
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: danger: ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1547]
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’
samba-4.23.4/source4/torture/rpc/spoolss.c:10706:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10718:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10719:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10728:9: branch_false: following ‘false’ branch (when ‘remote_name’ is non-NULL)...
samba-4.23.4/source4/torture/rpc/spoolss.c:10730:9: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10733:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10737:13: acquire_memory: allocated here
samba-4.23.4/source4/torture/rpc/spoolss.c:10738:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10742:15: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10743:12: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10748:16: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/rpc/spoolss.c:10752:26: branch_true: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10752:20: branch_false: following ‘false’ branch (when ‘n > 0’)...
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: branch_false: ...to here
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: throw: if ‘smbcli_write’ throws an exception...
samba-4.23.4/source4/torture/rpc/spoolss.c:10761:23: danger: ‘fopen(talloc_asprintf(tctx, "%s/%s", *d.local.driver_directory, p), "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1548]
samba-4.23.4/source4/torture/smb2/dir.c:714:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
samba-4.23.4/source4/torture/smb2/dir.c:702:6: enter_function: entry to ‘fill_result’
samba-4.23.4/source4/torture/smb2/dir.c:712:19: branch_true: following ‘true’ branch (when ‘i < count’)...
samba-4.23.4/source4/torture/smb2/dir.c:713:43: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/dir.c:713:25: call_function: calling ‘extract_name’ from ‘fill_result’
samba-4.23.4/source4/torture/smb2/dir.c:713:25: return_function: returning to ‘fill_result’ from ‘extract_name’
samba-4.23.4/source4/torture/smb2/dir.c:714:22: danger: argument 1 (‘extract_name(file + (long unsigned int)i * 144, level, data_level)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1549]
samba-4.23.4/source4/torture/smb2/ioctl.c:2413:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.23.4/source4/torture/smb2/ioctl.c:2387:13: enter_function: entry to ‘test_ioctl_compress_file_flag’
samba-4.23.4/source4/torture/smb2/ioctl.c:2396:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_file_flag’
samba-4.23.4/source4/torture/smb2/ioctl.c:2396:14: return_function: returning to ‘test_ioctl_compress_file_flag’ from ‘test_setup_create_fill’
samba-4.23.4/source4/torture/smb2/ioctl.c:2399:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2401:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2401:18: call_function: calling ‘test_ioctl_compress_fs_supported’ from ‘test_ioctl_compress_file_flag’
samba-4.23.4/source4/torture/smb2/ioctl.c:2401:18: return_function: returning to ‘test_ioctl_compress_file_flag’ from ‘test_ioctl_compress_fs_supported’
samba-4.23.4/source4/torture/smb2/ioctl.c:2403:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2404:13: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2404:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2409:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2409:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_file_flag’
samba-4.23.4/source4/torture/smb2/ioctl.c:2409:18: return_function: returning to ‘test_ioctl_compress_file_flag’ from ‘test_ioctl_compress_get’
samba-4.23.4/source4/torture/smb2/ioctl.c:2411:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2413:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2413:9: danger: use of uninitialized value ‘compression_fmt’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1550]
samba-4.23.4/source4/torture/smb2/ioctl.c:2467:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.23.4/source4/torture/smb2/ioctl.c:2432:13: enter_function: entry to ‘test_ioctl_compress_dir_inherit’
samba-4.23.4/source4/torture/smb2/ioctl.c:2444:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_dir_inherit’
samba-4.23.4/source4/torture/smb2/ioctl.c:2444:14: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_setup_create_fill’
samba-4.23.4/source4/torture/smb2/ioctl.c:2447:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2449:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2449:18: call_function: calling ‘test_ioctl_compress_fs_supported’ from ‘test_ioctl_compress_dir_inherit’
samba-4.23.4/source4/torture/smb2/ioctl.c:2449:18: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_ioctl_compress_fs_supported’
samba-4.23.4/source4/torture/smb2/ioctl.c:2451:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2452:13: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2452:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2459:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2459:18: call_function: calling ‘test_ioctl_compress_set’ from ‘test_ioctl_compress_dir_inherit’
samba-4.23.4/source4/torture/smb2/ioctl.c:2459:18: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_ioctl_compress_set’
samba-4.23.4/source4/torture/smb2/ioctl.c:2461:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2463:18: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2463:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_dir_inherit’
samba-4.23.4/source4/torture/smb2/ioctl.c:2463:18: return_function: returning to ‘test_ioctl_compress_dir_inherit’ from ‘test_ioctl_compress_get’
samba-4.23.4/source4/torture/smb2/ioctl.c:2465:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2467:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2467:9: danger: use of uninitialized value ‘compression_fmt’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1551]
samba-4.23.4/source4/torture/smb2/ioctl.c:2684:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.23.4/source4/torture/smb2/ioctl.c:2657:13: enter_function: entry to ‘test_ioctl_compress_create_with_attr’
samba-4.23.4/source4/torture/smb2/ioctl.c:2667:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_create_with_attr’
samba-4.23.4/source4/torture/smb2/ioctl.c:2667:14: return_function: returning to ‘test_ioctl_compress_create_with_attr’ from ‘test_setup_create_fill’
samba-4.23.4/source4/torture/smb2/ioctl.c:2670:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2672:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2672:18: call_function: calling ‘test_ioctl_compress_fs_supported’ from ‘test_ioctl_compress_create_with_attr’
samba-4.23.4/source4/torture/smb2/ioctl.c:2672:18: return_function: returning to ‘test_ioctl_compress_create_with_attr’ from ‘test_ioctl_compress_fs_supported’
samba-4.23.4/source4/torture/smb2/ioctl.c:2674:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2675:13: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2675:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2680:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2680:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_create_with_attr’
samba-4.23.4/source4/torture/smb2/ioctl.c:2680:18: return_function: returning to ‘test_ioctl_compress_create_with_attr’ from ‘test_ioctl_compress_get’
samba-4.23.4/source4/torture/smb2/ioctl.c:2682:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2684:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2684:9: danger: use of uninitialized value ‘compression_fmt’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1552]
samba-4.23.4/source4/torture/smb2/ioctl.c:2739:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.23.4/source4/torture/smb2/ioctl.c:2702:13: enter_function: entry to ‘test_ioctl_compress_inherit_disable’
samba-4.23.4/source4/torture/smb2/ioctl.c:2716:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_inherit_disable’
samba-4.23.4/source4/torture/smb2/ioctl.c:2716:14: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_setup_create_fill’
samba-4.23.4/source4/torture/smb2/ioctl.c:2719:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2721:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2721:18: call_function: calling ‘test_ioctl_compress_fs_supported’ from ‘test_ioctl_compress_inherit_disable’
samba-4.23.4/source4/torture/smb2/ioctl.c:2721:18: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_ioctl_compress_fs_supported’
samba-4.23.4/source4/torture/smb2/ioctl.c:2723:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2724:13: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2724:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2731:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2731:18: call_function: calling ‘test_ioctl_compress_set’ from ‘test_ioctl_compress_inherit_disable’
samba-4.23.4/source4/torture/smb2/ioctl.c:2731:18: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_ioctl_compress_set’
samba-4.23.4/source4/torture/smb2/ioctl.c:2733:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2735:18: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2735:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_inherit_disable’
samba-4.23.4/source4/torture/smb2/ioctl.c:2735:18: return_function: returning to ‘test_ioctl_compress_inherit_disable’ from ‘test_ioctl_compress_get’
samba-4.23.4/source4/torture/smb2/ioctl.c:2737:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2739:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2739:9: danger: use of uninitialized value ‘compression_fmt’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1553]
samba-4.23.4/source4/torture/smb2/ioctl.c:2950:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘compression_fmt’
samba-4.23.4/source4/torture/smb2/ioctl.c:2915:13: enter_function: entry to ‘test_ioctl_compress_perms’
samba-4.23.4/source4/torture/smb2/ioctl.c:2925:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_perms’
samba-4.23.4/source4/torture/smb2/ioctl.c:2925:14: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_setup_create_fill’
samba-4.23.4/source4/torture/smb2/ioctl.c:2928:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2930:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2930:18: call_function: calling ‘test_ioctl_compress_fs_supported’ from ‘test_ioctl_compress_perms’
samba-4.23.4/source4/torture/smb2/ioctl.c:2930:18: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_ioctl_compress_fs_supported’
samba-4.23.4/source4/torture/smb2/ioctl.c:2932:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2933:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2934:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2939:14: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2939:14: call_function: calling ‘test_setup_create_fill’ from ‘test_ioctl_compress_perms’
samba-4.23.4/source4/torture/smb2/ioctl.c:2939:14: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_setup_create_fill’
samba-4.23.4/source4/torture/smb2/ioctl.c:2945:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/ioctl.c:2947:18: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2947:18: call_function: calling ‘test_ioctl_compress_get’ from ‘test_ioctl_compress_perms’
samba-4.23.4/source4/torture/smb2/ioctl.c:2947:18: return_function: returning to ‘test_ioctl_compress_perms’ from ‘test_ioctl_compress_get’
samba-4.23.4/source4/torture/smb2/ioctl.c:2949:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/ioctl.c:2950:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/ioctl.c:2950:9: danger: use of uninitialized value ‘compression_fmt’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1554]
samba-4.23.4/source4/torture/smb2/oplock.c:5126:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1555]
samba-4.23.4/source4/torture/smb2/oplock.c:5133:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1556]
samba-4.23.4/source4/torture/smb2/oplock.c:5140:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1557]
samba-4.23.4/source4/torture/smb2/oplock.c:5145:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1558]
samba-4.23.4/source4/torture/smb2/oplock.c:5147:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1559]
samba-4.23.4/source4/torture/smb2/oplock.c:5151:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1560]
samba-4.23.4/source4/torture/smb2/oplock.c:5153:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1561]
samba-4.23.4/source4/torture/smb2/oplock.c:5158:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5206:13: enter_function: entry to ‘wait_for_child_oplock’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5238:15: call_function: calling ‘do_child_process’ from ‘wait_for_child_oplock’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1562]
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1563]
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1564]
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: throw: if ‘torture_result’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1565]
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: following ‘true’ branch (when ‘pid == -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: throw: if ‘torture_result’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1566]
samba-4.23.4/source4/torture/smb2/oplock.c:5230:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5229:17: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5230:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5230:17: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1567]
samba-4.23.4/source4/torture/smb2/oplock.c:5230:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5229:17: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5230:17: throw: if ‘close’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5230:17: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1568]
samba-4.23.4/source4/torture/smb2/oplock.c:5231:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5229:17: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5231:23: throw: if ‘sys_read’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5231:23: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1569]
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1570]
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
samba-4.23.4/source4/torture/smb2/oplock.c:5218:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/oplock.c:5220:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5221:9: branch_false: following ‘false’ branch (when ‘ret != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5223:15: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5224:9: branch_false: following ‘false’ branch (when ‘pid != -1’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5226:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: throw: if ‘close’ throws an exception...
samba-4.23.4/source4/torture/smb2/oplock.c:5237:9: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1571]
samba-4.23.4/source4/torture/smb2/replay.c:3162:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.23.4/source4/torture/smb2/replay.c:2806:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2811:31: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2812:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2815:14: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2824:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2831:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2849:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:2849:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3162:9: danger: dereference of NULL ‘transport2_2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1572]
samba-4.23.4/source4/torture/smb2/replay.c:3163:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.23.4/source4/torture/smb2/replay.c:2806:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2811:31: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2812:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2815:14: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2824:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2831:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2849:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:2851:31: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2857:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:2859:18: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:2862:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:2862:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3163:9: danger: dereference of NULL ‘transport2_3’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1573]
samba-4.23.4/source4/torture/smb2/replay.c:4036:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_2’
samba-4.23.4/source4/torture/smb2/replay.c:3642:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3647:31: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3648:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3651:14: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3660:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3667:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3685:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:3685:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4022:12: branch_false: following ‘false’ branch (when ‘blocked2_3 == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4025:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4025:12: branch_false: following ‘false’ branch (when ‘blocked2_2 == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4028:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4028:12: branch_false: following ‘false’ branch (when ‘blocked2_1 == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4031:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4031:12: branch_false: following ‘false’ branch (when ‘block_setup == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4035:53: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4036:9: danger: dereference of NULL ‘transport2_2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1574]
samba-4.23.4/source4/torture/smb2/replay.c:4037:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport2_3’
samba-4.23.4/source4/torture/smb2/replay.c:3642:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3647:31: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3648:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3651:14: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3660:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3667:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3685:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:3687:31: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3693:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/replay.c:3695:18: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:3698:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:3698:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4022:12: branch_false: following ‘false’ branch (when ‘blocked2_3 == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4025:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4025:12: branch_false: following ‘false’ branch (when ‘blocked2_2 == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4028:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4028:12: branch_false: following ‘false’ branch (when ‘blocked2_1 == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4031:12: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4031:12: branch_false: following ‘false’ branch (when ‘block_setup == 0’)...
samba-4.23.4/source4/torture/smb2/replay.c:4035:53: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/replay.c:4037:9: danger: dereference of NULL ‘transport2_3’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1575]
samba-4.23.4/source4/torture/smb2/samba3misc.c:126:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(talloc_asprintf(tctx, "%s/%s/%s", torture_setting_string(tctx, "localdir", 0), "samba3misc.smb2", "posixtimedlock.dat"), 2)’
samba-4.23.4/source4/torture/smb2/samba3misc.c:89:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/samba3misc.c:90:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:93:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/samba3misc.c:95:17: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:96:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:98:18: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:99:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/samba3misc.c:101:20: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:102:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:105:21: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:107:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:113:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:114:14: acquire_resource: opened here
samba-4.23.4/source4/torture/smb2/samba3misc.c:115:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:121:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:126:9: throw: if ‘torture_comment’ throws an exception...
samba-4.23.4/source4/torture/smb2/samba3misc.c:126:9: danger: ‘open(talloc_asprintf(tctx, "%s/%s/%s", torture_setting_string(tctx, "localdir", 0), "samba3misc.smb2", "posixtimedlock.dat"), 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1576]
samba-4.23.4/source4/torture/smb2/samba3misc.c:127:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(talloc_asprintf(tctx, "%s/%s/%s", torture_setting_string(tctx, "localdir", 0), "samba3misc.smb2", "posixtimedlock.dat"), 2)’
samba-4.23.4/source4/torture/smb2/samba3misc.c:89:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/samba3misc.c:90:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:93:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/samba3misc.c:95:17: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:96:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:98:18: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:99:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/samba3misc.c:101:20: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:102:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:105:21: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:107:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:113:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:114:14: acquire_resource: opened here
samba-4.23.4/source4/torture/smb2/samba3misc.c:115:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/samba3misc.c:121:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/samba3misc.c:127:14: throw: if ‘fcntl’ throws an exception...
samba-4.23.4/source4/torture/smb2/samba3misc.c:127:14: danger: ‘open(talloc_asprintf(tctx, "%s/%s/%s", torture_setting_string(tctx, "localdir", 0), "samba3misc.smb2", "posixtimedlock.dat"), 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1577]
samba-4.23.4/source4/torture/smb2/session.c:2303:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘transport3’
samba-4.23.4/source4/torture/smb2/session.c:2060:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/session.c:2067:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/session.c:2088:9: branch_true: following ‘true’ branch (when ‘<unknown> != 0’)...
samba-4.23.4/source4/torture/smb2/session.c:2088:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/session.c:2303:9: danger: dereference of NULL ‘transport3’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1578]
samba-4.23.4/source4/torture/smb2/setinfo.c:53:44: warning[-Wanalyzer-null-argument]: use of NULL ‘eavalue’ where non-null expected
samba-4.23.4/source4/torture/smb2/setinfo.c:78:6: enter_function: entry to ‘torture_smb2_setinfo’
samba-4.23.4/source4/torture/smb2/setinfo.c:99:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:117:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:117:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:177:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:186:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:187:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:187:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:188:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:189:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:190:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:191:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:199:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:200:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:200:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:201:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:202:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:203:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:204:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:208:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:209:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:209:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:213:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:214:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:214:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:218:9: branch_false: following ‘false’ branch (when ‘<unknown> == 3221225485’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:220:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:222:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:223:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:223:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:227:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:228:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:228:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:229:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:232:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:233:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:233:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:234:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:238:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:239:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:239:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:240:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:243:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:244:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:244:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:245:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:249:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:250:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:250:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:253:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:254:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:254:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:258:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:259:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:259:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:260:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:264:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:265:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:265:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:266:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:269:9: branch_false: following ‘false’ branch (when ‘<unknown> == 3221225485’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:271:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:272:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:273:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:273:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:281:9: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:282:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:291:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:293:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:297:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:298:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:298:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:300:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:303:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:305:47: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:307:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:308:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:308:9: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:310:9: branch_true: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:319:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:322:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:326:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:334:14: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:346:9: branch_false: following ‘false’ branch (when ‘<unknown> == 0’)...
samba-4.23.4/source4/torture/smb2/setinfo.c:349:9: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:353:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smb2/setinfo.c:360:13: branch_false: ...to here
samba-4.23.4/source4/torture/smb2/setinfo.c:360:13: call_function: calling ‘find_returned_ea’ from ‘torture_smb2_setinfo’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1579]
samba-4.23.4/source4/torture/smb2/util.c:636:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*handle’
samba-4.23.4/source4/torture/smb2/util.c:645:10: enter_function: entry to ‘torture_setup_simple_file’
samba-4.23.4/source4/torture/smb2/util.c:649:27: call_function: calling ‘smb2_create_simple_file’ from ‘torture_setup_simple_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1580]
samba-4.23.4/source4/torture/smbtorture.c:236:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:236:9: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:236:9: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1581]
samba-4.23.4/source4/torture/smbtorture.c:240:13: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:240:13: throw: if ‘strchr_m’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:240:13: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1582]
samba-4.23.4/source4/torture/smbtorture.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smbtorture.c:242:17: branch_true: ...to here
samba-4.23.4/source4/torture/smbtorture.c:242:17: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:242:17: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1583]
samba-4.23.4/source4/torture/smbtorture.c:243:17: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smbtorture.c:242:17: branch_true: ...to here
samba-4.23.4/source4/torture/smbtorture.c:243:17: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:243:17: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1584]
samba-4.23.4/source4/torture/smbtorture.c:247:9: warning[-Wanalyzer-malloc-leak]: leak of ‘basedn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:246:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:247:9: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:247:9: danger: ‘basedn’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1585]
samba-4.23.4/source4/torture/smbtorture.c:247:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:247:9: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:247:9: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1586]
samba-4.23.4/source4/torture/smbtorture.c:256:9: warning[-Wanalyzer-malloc-leak]: leak of ‘basedn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:246:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:256:9: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:256:9: danger: ‘basedn’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1587]
samba-4.23.4/source4/torture/smbtorture.c:256:9: warning[-Wanalyzer-malloc-leak]: leak of ‘secret’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:255:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:256:9: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:256:9: danger: ‘secret’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1588]
samba-4.23.4/source4/torture/smbtorture.c:256:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:256:9: throw: if ‘lpcfg_set_cmdline’ throws an exception...
samba-4.23.4/source4/torture/smbtorture.c:256:9: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1589]
samba-4.23.4/source4/torture/smbtorture.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: secret
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1590]
samba-4.23.4/source4/torture/smbtorture.c:260:1: warning[-Wanalyzer-malloc-leak]: leak of ‘basedn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:246:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:260:1: danger: ‘basedn’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1591]
samba-4.23.4/source4/torture/smbtorture.c:260:1: warning[-Wanalyzer-malloc-leak]: leak of ‘secret’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:246:29: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:255:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:260:1: danger: ‘secret’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1592]
samba-4.23.4/source4/torture/smbtorture.c:260:1: warning[-Wanalyzer-malloc-leak]: leak of ‘userdn’
samba-4.23.4/source4/torture/smbtorture.c:229:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:235:31: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:235:18: acquire_memory: allocated here
samba-4.23.4/source4/torture/smbtorture.c:241:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smbtorture.c:242:17: branch_true: ...to here
samba-4.23.4/source4/torture/smbtorture.c:260:1: danger: ‘userdn’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-479): [#def1593]
samba-4.23.4/source4/torture/smbtorture.c:393:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
samba-4.23.4/source4/torture/smbtorture.c:399:5: enter_function: entry to ‘main’
samba-4.23.4/source4/torture/smbtorture.c:474:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:479:9: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:487:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smbtorture.c:493:14: branch_true: ...to here
samba-4.23.4/source4/torture/smbtorture.c:498:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/torture/smbtorture.c:504:9: branch_false: ...to here
samba-4.23.4/source4/torture/smbtorture.c:622:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/torture/smbtorture.c:628:17: branch_true: ...to here
samba-4.23.4/source4/torture/smbtorture.c:390:24: enter_function: entry to ‘max_runtime_handler’
samba-4.23.4/source4/torture/smbtorture.c:393:9: danger: call to ‘exit’ from within signal handler
Error: CPPCHECK_WARNING (CWE-457): [#def1594]
samba-4.23.4/source4/torture/unix/unix_info2.c:100: error[uninitvar]: Uninitialized variable: params
Error: CPPCHECK_WARNING (CWE-457): [#def1595]
samba-4.23.4/source4/torture/unix/unix_info2.c:101: error[uninitvar]: Uninitialized variable: data
Error: CPPCHECK_WARNING (CWE-457): [#def1596]
samba-4.23.4/source4/torture/unix/whoami.c:170: error[uninitvar]: Uninitialized variable: &info_level
Error: COMPILER_WARNING (CWE-704): [#def1597]
samba-4.23.4/source4/torture/winbind/struct_based.c: scope_hint: In function ‘parse_domain_user’
samba-4.23.4/source4/torture/winbind/struct_based.c:814:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1598]
samba-4.23.4/source4/torture/winbind/struct_based.c:814:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1599]
samba-4.23.4/source4/torture/winbind/struct_based.c:819:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1600]
samba-4.23.4/source4/torture/winbind/struct_based.c:819:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1601]
samba-4.23.4/source4/utils/oLschema2ldif/lib.c: scope_hint: In function ‘check_braces’
samba-4.23.4/source4/utils/oLschema2ldif/lib.c:70:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1602]
samba-4.23.4/source4/utils/oLschema2ldif/lib.c:70:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1603]
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘copt.in’
samba-4.23.4/source4/utils/oLschema2ldif/main.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:77:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:22: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:15: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:102:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:107:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:13: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: acquire_resource: opened here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:115:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:122:28: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:123:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: throw: if ‘perror’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: danger: ‘copt.in’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1604]
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: warning[-Wanalyzer-malloc-leak]: leak of ‘copt.in’
samba-4.23.4/source4/utils/oLschema2ldif/main.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:77:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:22: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:15: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:102:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:107:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:13: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: acquire_memory: allocated here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:115:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:122:28: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:123:20: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: throw: if ‘perror’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:124:25: danger: ‘copt.in’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1605]
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘copt.in’
samba-4.23.4/source4/utils/oLschema2ldif/main.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:77:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:22: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:15: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:102:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:107:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:13: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: acquire_resource: opened here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:115:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: throw: if ‘process_file’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: danger: ‘copt.in’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1606]
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘copt.out’
samba-4.23.4/source4/utils/oLschema2ldif/main.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:77:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:22: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:15: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:102:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:107:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:13: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:122:28: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:122:28: acquire_resource: opened here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:123:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: throw: if ‘process_file’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: danger: ‘copt.out’ leaks here; was opened at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1607]
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: warning[-Wanalyzer-malloc-leak]: leak of ‘copt.in’
samba-4.23.4/source4/utils/oLschema2ldif/main.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:77:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:22: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:15: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:102:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:107:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:13: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:114:27: acquire_memory: allocated here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:115:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: throw: if ‘process_file’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: danger: ‘copt.in’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1608]
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: warning[-Wanalyzer-malloc-leak]: leak of ‘copt.out’
samba-4.23.4/source4/utils/oLschema2ldif/main.c:73:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:77:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:84:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:22: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:90:15: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:96:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:102:9: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:107:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:13: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:113:12: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:13: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:121:12: branch_true: following ‘true’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:122:28: branch_true: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:122:28: acquire_memory: allocated here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:123:20: branch_false: following ‘false’ branch...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: branch_false: ...to here
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: throw: if ‘process_file’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/main.c:130:15: danger: ‘copt.out’ leaks here; was allocated at [(15)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1609]
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘opt.out’
samba-4.23.4/source4/utils/oLschema2ldif/test.c:65:19: acquire_resource: opened here
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: throw: if ‘ldb_init’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: danger: ‘opt.out’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1610]
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opt.in’
samba-4.23.4/source4/utils/oLschema2ldif/test.c:64:18: acquire_memory: allocated here
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: throw: if ‘ldb_init’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: danger: ‘opt.in’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1611]
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opt.out’
samba-4.23.4/source4/utils/oLschema2ldif/test.c:65:19: acquire_memory: allocated here
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: throw: if ‘ldb_init’ throws an exception...
samba-4.23.4/source4/utils/oLschema2ldif/test.c:66:23: danger: ‘opt.out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1612]
samba-4.23.4/third_party/quic/libquic/handshake.c:681:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
samba-4.23.4/third_party/quic/libquic/handshake.c:669:12: branch_false: following ‘false’ branch...
samba-4.23.4/third_party/quic/libquic/handshake.c:672:15: acquire_memory: allocated here
samba-4.23.4/third_party/quic/libquic/handshake.c:673:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
samba-4.23.4/third_party/quic/libquic/handshake.c:677:9: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:681:15: throw: if ‘gnutls_session_ext_register’ throws an exception...
samba-4.23.4/third_party/quic/libquic/handshake.c:681:15: danger: ‘ctx’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1613]
samba-4.23.4/third_party/quic/libquic/handshake.c:690:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
samba-4.23.4/third_party/quic/libquic/handshake.c:669:12: branch_false: following ‘false’ branch...
samba-4.23.4/third_party/quic/libquic/handshake.c:672:15: acquire_memory: allocated here
samba-4.23.4/third_party/quic/libquic/handshake.c:673:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
samba-4.23.4/third_party/quic/libquic/handshake.c:677:9: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:685:12: branch_false: following ‘false’ branch...
samba-4.23.4/third_party/quic/libquic/handshake.c:690:9: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:690:9: throw: if ‘gnutls_ext_set_data’ throws an exception...
samba-4.23.4/third_party/quic/libquic/handshake.c:690:9: danger: ‘ctx’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1614]
samba-4.23.4/third_party/quic/libquic/handshake.c:736:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
samba-4.23.4/third_party/quic/libquic/handshake.c:834:5: enter_function: entry to ‘quic_handshake_step’
samba-4.23.4/third_party/quic/libquic/handshake.c:837:42: call_function: calling ‘quic_handshake_ctx_get’ from ‘quic_handshake_step’
samba-4.23.4/third_party/quic/libquic/handshake.c:837:42: return_function: returning to ‘quic_handshake_step’ from ‘quic_handshake_ctx_get’
samba-4.23.4/third_party/quic/libquic/handshake.c:843:12: branch_false: following ‘false’ branch (when ‘pstep’ is non-NULL)...
samba-4.23.4/third_party/quic/libquic/handshake.c:846:13: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:846:12: branch_false: following ‘false’ branch...
samba-4.23.4/third_party/quic/libquic/handshake.c:852:12: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:852:12: branch_false: following ‘false’ branch (when ‘process_fn’ is non-NULL)...
samba-4.23.4/third_party/quic/libquic/handshake.c:858:15: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:859:12: branch_false: following ‘false’ branch...
samba-4.23.4/third_party/quic/libquic/handshake.c:862:16: branch_false: ...to here
samba-4.23.4/third_party/quic/libquic/handshake.c:862:16: call_function: calling ‘quic_handshake_next_step’ from ‘quic_handshake_step’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-212.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | samba-4.23.4-1.fc44 |
| store-results-to | /tmp/tmpng2ia1qn/samba-4.23.4-1.fc44.tar.xz |
| time-created | 2026-01-08 22:25:33 |
| time-finished | 2026-01-08 23:02:34 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpng2ia1qn/samba-4.23.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpng2ia1qn/samba-4.23.4-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |