389-ds-base-3.1.3-10.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/lib64/dirsrv/bin/jemalloc-config:27:1: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/lib64/dirsrv/bin/jemalloc-config:28:1: warning[SC2034]: exec_prefix appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/lib64/dirsrv/bin/jemalloc.sh:3:1: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/lib64/dirsrv/bin/jemalloc.sh:4:1: warning[SC2034]: exec_prefix appears unused. Verify use (or export if used externally).
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:123:5: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:123:5: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:140:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:140:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: danger: 'fopen(fname, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: danger: 'fopen(fname, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:173:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: return_function: returning to 'collation_read_config' from 'fp_getline'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:170:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:173:9: danger: 'fopen(fname, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:173:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: return_function: returning to 'collation_read_config' from 'fp_getline'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:170:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:173:9: danger: 'fopen(fname, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:177:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: return_function: returning to 'collation_read_config' from 'fp_getline'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:170:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:175:9: call_function: calling 'fp_parse_line' from 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:175:9: return_function: returning to 'collation_read_config' from 'fp_parse_line'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:176:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:177:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:177:13: danger: 'fopen(fname, "r")' leaks here; was opened at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:177:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fname, "r")'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:149:1: enter_function: entry to 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:157:10: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:158:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:165:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: call_function: calling 'fp_getline' from 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:24: return_function: returning to 'collation_read_config' from 'fp_getline'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:168:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:170:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:175:9: call_function: calling 'fp_parse_line' from 'collation_read_config'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:175:9: return_function: returning to 'collation_read_config' from 'fp_parse_line'
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:176:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:177:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/collation/config.c:177:13: danger: 'fopen(fname, "r")' leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-457): [#def15]
389-ds-base-3.1.3/ldap/servers/plugins/deref/deref.c:645: warning[uninitvar]: Uninitialized variable: sv
Error: CPPCHECK_WARNING (CWE-457): [#def16]
389-ds-base-3.1.3/ldap/servers/plugins/deref/deref.c:747: warning[uninitvar]: Uninitialized variable: sv
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_agmt.c:239:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'hash_in'
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_agmt.c:740:1: enter_function: entry to 'agmt_new_from_pblock'
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_agmt.c:745:12: call_function: calling 'agmt_new_from_entry' from 'agmt_new_from_pblock'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:205:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:166:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:167:30: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:168:14: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:177:18: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:177:17: branch_false: following 'false' branch (when the strings are equal)...
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:186:14: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_replica_config.c:205:9: danger: dereference of NULL '_replica_config_get_mtnode_ext(e)'
Error: CPPCHECK_WARNING (CWE-476): [#def19]
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_ruv.c:1025: warning[nullPointer]: Possible null pointer dereference: bv
Error: CPPCHECK_WARNING (CWE-476): [#def20]
389-ds-base-3.1.3/ldap/servers/plugins/replication/repl5_ruv.c:1033: warning[nullPointer]: Possible null pointer dereference: bv
Error: GCC_ANALYZER_WARNING (CWE-126): [#def21]
389-ds-base-3.1.3/ldap/servers/slapd/accesslog.c:27:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.3/ldap/servers/slapd/accesslog.c:1175:1: enter_function: entry to 'slapd_log_access_sort'
389-ds-base-3.1.3/ldap/servers/slapd/accesslog.c:1181:21: call_function: calling 'build_base_obj' from 'slapd_log_access_sort'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:222:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:142:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:156:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:161:5: branch_true: following 'true' branch (when 'mode == 2')...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:194:5: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:196:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:204:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:206:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:214:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:214:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:216:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:216:19: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:217:16: branch_false: following 'false' branch (when 'buf' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:222:17: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:222:17: danger: 'buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:222:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:142:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:156:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:161:5: branch_true: following ‘true’ branch (when ‘mode == 2’)...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:194:5: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:196:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:204:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:206:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:214:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:214:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:216:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:216:19: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:217:16: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:222:17: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/agtmmap.c:222:17: danger: ‘buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING: [#def24]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/cache.c:539:20: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
lto1: note: destination object is likely at address zero
Error: GCC_ANALYZER_WARNING (CWE-404): [#def25]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:226:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:216:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:218:11: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:219:8: branch_false: following 'false' branch (when 'len <= 5115')...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:222:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:225:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:226:5: 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-465): [#def26]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1292:12: warning[-Wanalyzer-deref-before-check]: check of 'key.data' for NULL after already dereferencing it
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1192:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1197:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1198:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1214:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1218:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1218:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1229:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1229:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1237:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1238:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1245:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1245:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1292:21: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c:1292:12: danger: pointer 'key.data' is checked for NULL here but it was already dereferenced at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def27]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:404: error[ctunullpointer]: Null pointer dereference: include
Error: CPPCHECK_WARNING (CWE-476): [#def28]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:404: warning[nullPointer]: Possible null pointer dereference: include
Error: GCC_ANALYZER_WARNING (CWE-121): [#def29]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:89:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:37:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:44:14: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:50:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:56:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:59:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:61:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:64:14: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:64:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:68:12: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:68:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:74:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:76:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:83:18: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:83:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:84:30: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:88:16: branch_true: following 'true' branch (when 'p' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:89:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:89:17: danger: out-of-bounds write on 'dbdir'
Error: GCC_ANALYZER_WARNING (CWE-121): [#def30]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:92:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:37:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:44:14: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:50:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:56:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:59:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:61:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:64:14: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:64:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:68:12: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:68:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:74:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:76:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:83:18: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:83:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:84:30: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:88:16: branch_true: following 'true' branch (when 'p' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:89:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:91:16: branch_true: following 'true' branch (when 'p' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:92:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:92:17: danger: out-of-bounds write on 'dbdir'
Error: GCC_ANALYZER_WARNING (CWE-121): [#def31]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:150:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:158:1: enter_function: entry to 'bdb_verify'
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:178:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:184:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:185:8: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:188:36: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:189:20: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:190:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:191:21: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c:196:30: call_function: calling 'bdb_dbverify_ext' from 'bdb_verify'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def32]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/import.c:51:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/import.c:50:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/import.c:51:5: 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-835): [#def33]
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/index.c:835:12: warning[-Wanalyzer-infinite-loop]: infinite loop
389-ds-base-3.1.3/ldap/servers/slapd/back-ldbm/index.c:2033:1: enter_function: entry to 'index_addordel_values_ext_sv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:50:30: warning[-Wanalyzer-malloc-leak]: leak of 'newmem'
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:96:1: enter_function: entry to 'slapi_ch_malloc'
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:101:8: branch_false: following 'false' branch (when 'size != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:106:27: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:106:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:106:8: branch_false: following 'false' branch (when 'newmem' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:117:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:117:5: call_function: calling 'create_oom_buffer' from 'slapi_ch_malloc'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:347:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:342:8: branch_false: following 'false' branch (when 'fmt' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:346:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:346:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/ch_malloc.c:347:9: 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-563): [#def36]
389-ds-base-3.1.3/ldap/servers/slapd/control.c:177:9: warning[-Wunused-but-set-variable]: variable 'tag' set but not used
Error: COMPILER_WARNING (CWE-704): [#def37]
389-ds-base-3.1.3/ldap/servers/slapd/control.c: scope_hint: In function 'create_sessiontracking_ctrl'
389-ds-base-3.1.3/ldap/servers/slapd/control.c:181:13: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def38]
389-ds-base-3.1.3/ldap/servers/slapd/control.c:181:13: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-476): [#def39]
389-ds-base-3.1.3/ldap/servers/slapd/dn.c:310: warning[nullPointer]: Possible null pointer dereference: L
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:489:5: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:486:1: enter_function: entry to 'dse_new_with_filelist'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:488:26: call_function: calling 'dse_new' from 'dse_new_with_filelist'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:488:26: return_function: returning to 'dse_new_with_filelist' from 'dse_new'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:489:5: danger: dereference of NULL 'dse_new(filename, tmpfilename, backfilename, startokfilename, configdir)'
Error: COMPILER_WARNING (CWE-563): [#def41]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1064:11: warning[-Wunused-variable]: unused variable 'error'
Error: COMPILER_WARNING (CWE-563): [#def42]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c: scope_hint: In function 'is_readonly_set_in_dse'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1065:17: warning[-Wunused-variable]: unused variable 'regexp'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1085:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(dsename, "r")'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1067:8: branch_false: following 'false' branch (when 'dsename' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1073:12: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1074:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1078:12: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1085:13: danger: 'fopen(dsename, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1085:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(dsename, "r")'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1067:8: branch_false: following 'false' branch (when 'dsename' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1073:12: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1074:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1078:12: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1085:13: danger: 'fopen(dsename, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1088:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(dsename, "r")'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1067:8: branch_false: following 'false' branch (when 'dsename' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1073:12: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1074:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1078:12: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1088:13: danger: 'fopen(dsename, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1088:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(dsename, "r")'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1067:8: branch_false: following 'false' branch (when 'dsename' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1073:12: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1074:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1078:12: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1088:13: danger: 'fopen(dsename, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:30: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(dsename, "r")'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1067:8: branch_false: following 'false' branch (when 'dsename' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1073:12: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1074:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1078:12: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:12: branch_true: following 'true' branch (when 'isconfigentry != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:30: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:30: danger: 'fopen(dsename, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:30: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(dsename, "r")'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1067:8: branch_false: following 'false' branch (when 'dsename' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1070:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1073:12: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1074:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1078:12: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:12: branch_true: following 'true' branch (when 'isconfigentry != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:30: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1094:30: danger: 'fopen(dsename, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1206:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(*pdse.dse_configdir, 2162688)'
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1159:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1160:37: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1160:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1166:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1167:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1175:23: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1200:21: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1205:20: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1206:21: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/dse.c:1206:21: danger: 'open(*pdse.dse_configdir, 2162688)' leaks here; was opened at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:100:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/etc/resolv.conf", "r")'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:47:1: enter_function: entry to 'find_localhost_DNS'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:57:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:66:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:69:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:75:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:75:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:81:19: branch_true: following 'true' branch (when 'p' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:82:20: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:82:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:81:30: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:96:9: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:97:8: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:98:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:99:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:99:17: call_function: calling 'strncasecmp_fast' from 'find_localhost_DNS'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:99:17: return_function: returning to 'find_localhost_DNS' from 'strncasecmp_fast'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:100:17: danger: 'fopen("/etc/resolv.conf", "r")' leaks here; was opened at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:100:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/etc/resolv.conf", "r")'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:47:1: enter_function: entry to 'find_localhost_DNS'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:57:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:66:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:69:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:75:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:75:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:81:19: branch_true: following 'true' branch (when 'p' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:82:20: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:82:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:81:30: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:96:9: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:97:8: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:98:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:99:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:99:17: call_function: calling 'strncasecmp_fast' from 'find_localhost_DNS'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:99:17: return_function: returning to 'find_localhost_DNS' from 'strncasecmp_fast'
389-ds-base-3.1.3/ldap/servers/slapd/localhost.c:100:17: danger: 'fopen("/etc/resolv.conf", "r")' leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-457): [#def52]
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3137: warning[uninitvar]: Uninitialized variable: output
Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3246:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3144:1: enter_function: entry to 'plugin_delete_check_dependency'
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3151:25: call_function: calling 'plugin_get_type_str' from 'plugin_delete_check_dependency'
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3151:25: return_function: returning to 'plugin_delete_check_dependency' from 'plugin_get_type_str'
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3176:12: branch_true: following 'true' branch (when 'ep' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3177:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3179:12: branch_false: following 'false' branch (when 'plugin' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3186:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3187:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3188:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3188:17: call_function: calling 'strcmpi_fast' from 'plugin_delete_check_dependency'
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3188:17: return_function: returning to 'plugin_delete_check_dependency' from 'strcmpi_fast'
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3188:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3194:14: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3194:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3198:15: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3200:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3207:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3176:12: branch_false: following 'false' branch (when 'ep' is NULL)...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3215:21: branch_true: following 'true' branch (when 'plugin_index > index')...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3216:29: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3216:12: branch_true: following 'true' branch (when 'plugin' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3220:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3220:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3227:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3243:16: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3245:29: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3246:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/plugin.c:3246:25: danger: argument 2 ('plugin_get_type_str(*plugin_entry.plg_type)') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:103:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&lockfile, 0)'
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:61:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:73:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:73:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:83:21: branch_true: following 'true' branch (when 'x != 20')...
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:84:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:84:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:94:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:83:21: branch_false: following 'false' branch (when 'x == 20')...
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:98:19: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:98:19: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:98:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:101:24: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:103:16: danger: 'open(&lockfile, 0)' leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:301:21: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dir_name)'
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:297:16: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:297:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/protect_db.c:301:21: danger: 'opendir(dir_name)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
389-ds-base-3.1.3/ldap/servers/slapd/rdn.c:62:5: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rdn'
389-ds-base-3.1.3/ldap/servers/slapd/rdn.c:338:1: enter_function: entry to 'slapi_rdn_set_rdn'
389-ds-base-3.1.3/ldap/servers/slapd/rdn.c:340:5: call_function: calling 'slapi_rdn_done' from 'slapi_rdn_set_rdn'
389-ds-base-3.1.3/ldap/servers/slapd/rdn.c:340:5: return_function: returning to 'slapi_rdn_set_rdn' from 'slapi_rdn_done'
389-ds-base-3.1.3/ldap/servers/slapd/rdn.c:341:5: call_function: calling 'slapi_rdn_init_rdn' from 'slapi_rdn_set_rdn'
Error: CPPCHECK_WARNING (CWE-457): [#def57]
389-ds-base-3.1.3/ldap/servers/slapd/slapd_plhash.c:43: error[uninitvar]: Uninitialized variable: *hep
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:118:16: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:119:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:120:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:120:9: 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): [#def59]
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:143:23: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/proc/self/cgroup", "r")'
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:132:9: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:133:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:139:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:139:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:140:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:140:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:142:18: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:142:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:143:23: danger: 'fopen("/proc/self/cgroup", "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:143:23: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/proc/self/cgroup", "r")'
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:132:9: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:133:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:139:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:139:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:140:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:140:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:142:18: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:142:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/slapi_pal.c:143:23: danger: 'fopen("/proc/self/cgroup", "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def61]
389-ds-base-3.1.3/ldap/servers/slapd/ssl.c:193:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/ssl.c:198:1: enter_function: entry to 'slapd_SSL_error'
389-ds-base-3.1.3/ldap/servers/slapd/ssl.c:201:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/ssl.c:202:5: call_function: calling 'slapd_SSL_report' from 'slapd_SSL_error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def62]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:211:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:200:8: branch_false: following 'false' branch (when 'task' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:205:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:205:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:207:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:207:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:210:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:210:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:211:5: danger: missing call to 'va_end' to match 'va_start' at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:286:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:281:8: branch_false: following 'false' branch (when 'task' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:285:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:285:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:286:5: 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-775): [#def64]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2108:18: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2108:18: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2108:18: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2108:18: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2117:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2110:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2117:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2117:13: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2117:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2110:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2117:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2117:13: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2225:25: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2110:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2121:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2126:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2183:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2194:31: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2208:24: branch_false: following 'false' branch (when 'start_value == 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2212:31: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2221:20: branch_true: following 'true' branch (when 'var_index != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2224:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2225:25: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2225:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2110:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2121:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2126:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2183:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2194:31: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2208:24: branch_false: following 'false' branch (when 'start_value == 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2212:31: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2221:20: branch_true: following 'true' branch (when 'var_index != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2224:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2225:25: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2226:25: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2110:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2121:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2126:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2183:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2194:31: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2208:24: branch_false: following 'false' branch (when 'start_value == 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2212:31: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2221:20: branch_true: following 'true' branch (when 'var_index != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2224:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2226:25: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2226:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")'
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2096:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2097:16: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2110:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2116:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2121:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2122:16: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2126:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2183:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2194:31: branch_false: following 'false' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2208:24: branch_false: following 'false' branch (when 'start_value == 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2212:31: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2221:20: branch_true: following 'true' branch (when 'var_index != 0')...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2223:24: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2224:25: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/task.c:2226:25: danger: 'fopen(slapi_entry_attr_get_ref(e, "sysconfigfile"), "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-401): [#def72]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:787: error[memleakOnRealloc]: Common realloc mistake: 'buf' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:845:5: warning[-Wanalyzer-malloc-leak]: leak of ‘indentp’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1487:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1487:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1496:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1496:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1510:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1510:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1515:17: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1528:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1536:11: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1537:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1544:11: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1545:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1550:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1550:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1556:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1556:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1561:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1561:8: branch_false: following ‘false’ branch (when ‘find_key’ is NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1593:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1593:15: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1606:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1606:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1607:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1609:13: call_function: calling ‘display_entryrdn_item’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1105:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1105:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1183:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1183:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1190:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1190:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1196:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1196:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1198:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1198:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1469:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1470:14: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1479:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1484:16: call_function: calling ‘importdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1264:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1264:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1272:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1272:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1274:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1274:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1282:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1282:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1291:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1291:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(dump_name, "w")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1339:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:50: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:17: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1368:16: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1367:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_true: following ‘true’ branch (when ‘c != -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1379:12: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1378:12: branch_false: following ‘false’ branch (when ‘c == -1’)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1460:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1465:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/dbscan.c:1466:16: call_function: calling ‘exportdb’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:120:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirpath)’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:95:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:106:12: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:106:12: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:107:8: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:120:23: danger: ‘opendir(dirpath)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:329:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*dlf.fname, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:315:13: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:316:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:327:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:329:25: danger: ‘fopen(*dlf.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): [#def96]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:329:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*dlf.fname, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:315:13: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:316:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:327:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:329:25: danger: ‘fopen(*dlf.fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:330:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*dlf.fname, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:315:13: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:316:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:327:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:330:9: danger: ‘fopen(*dlf.fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:330:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*dlf.fname, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:315:13: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:316:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:327:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:330:9: danger: ‘fopen(*dlf.fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:331:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*dlf.fname, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:315:13: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:316:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:327:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:330:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:331:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:331:9: danger: ‘fopen(*dlf.fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:331:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*dlf.fname, "r")’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:315:13: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:316:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:327:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:330:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:331:16: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/data.c:331:9: danger: ‘fopen(*dlf.fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:893:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:908:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:926:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:942:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1023:19: warning[-Wanalyzer-malloc-leak]: leak of ‘attr.mod_vals.modv_strvals’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1298:42: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch (when ‘bv’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:9: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1023:19: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1025:13: warning[-Wanalyzer-malloc-leak]: leak of ‘attr.mod_vals.modv_strvals’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1298:42: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch (when ‘bv’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:9: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1025:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1040:15: warning[-Wanalyzer-malloc-leak]: leak of ‘attr.mod_vals.modv_strvals’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1298:42: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch (when ‘bv’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:9: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1040:15: warning[-Wanalyzer-malloc-leak]: leak of ‘bv’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1290:1: enter_function: entry to ‘buildNewModAttribFile’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1297:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1301:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1312:9: call_function: calling ‘buildRandomRdnOrFilter’ from ‘buildNewModAttribFile’
Error: CPPCHECK_WARNING (CWE-476): [#def111]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1204:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1413:1: enter_function: entry to ‘buildVersatileObject’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1440:23: call_function: calling ‘strList1’ from ‘buildVersatileObject’
Error: CPPCHECK_WARNING (CWE-476): [#def113]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1442:16: warning[-Wanalyzer-malloc-leak]: leak of ‘attr.mod_vals.modv_strvals’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1413:1: enter_function: entry to ‘buildVersatileObject’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1440:23: call_function: calling ‘strList1’ from ‘buildVersatileObject’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1440:23: return_function: returning to ‘buildVersatileObject’ from ‘strList1’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1441:9: call_function: calling ‘addAttrib’ from ‘buildVersatileObject’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1441:9: return_function: returning to ‘buildVersatileObject’ from ‘addAttrib’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1441:8: branch_true: following ‘true’ branch...
branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldapfct.c:1442:16: danger: ‘attr.mod_vals.modv_strvals’ leaks here; was allocated at [(4)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1238:42: warning[-Wanalyzer-malloc-leak]: leak of ‘attrF’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:952:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:961:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1072:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1084:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1084:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1103:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1103:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1114:9: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1114:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1147:10: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1178:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1185:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1189:34: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1196:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1201:61: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1212:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1216:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1219:12: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1224:35: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1229:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1229:12: branch_false: following ‘false’ branch (when ‘attrF’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1234:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/ldclt.c:1238:42: danger: ‘attrF’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:363:16: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:345:23: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:346:8: branch_false: following ‘false’ branch (when ‘new’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:353:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:363:16: danger: ‘new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:366:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:345:23: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:346:8: branch_false: following ‘false’ branch (when ‘new’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:353:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:363:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:364:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/tools/ldclt/scalab01.c:366:9: danger: ‘new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:34:26: warning[-Wanalyzer-malloc-leak]: leak of 'dupentry'
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:32:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:34:26: danger: 'dupentry' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:36:18: warning[-Wanalyzer-malloc-leak]: leak of 'dupentry'
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:32:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:36:18: danger: 'dupentry' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:39:9: warning[-Wanalyzer-malloc-leak]: leak of 'dupentry'
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:32:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:38:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:39:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:39:9: danger: 'dupentry' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:42:5: warning[-Wanalyzer-malloc-leak]: leak of 'dupentry'
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:32:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/slapd/upgrade.c:42:5: danger: 'dupentry' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def122]
389-ds-base-3.1.3/ldap/servers/slapd/util.c:421:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/util.c:420:5: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/util.c:421:10: 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): [#def123]
389-ds-base-3.1.3/ldap/servers/slapd/util.c:430:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/util.c:423:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/ldap/servers/slapd/util.c:425:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/util.c:429:9: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/util.c:430:14: 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): [#def124]
389-ds-base-3.1.3/ldap/servers/slapd/util.c:1630:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
389-ds-base-3.1.3/ldap/servers/slapd/util.c:1627:8: branch_true: following 'true' branch (when 'errorbuf' is non-NULL)...
389-ds-base-3.1.3/ldap/servers/slapd/util.c:1629:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/slapd/util.c:1629:9: acquire_resource: 'va_start' called here
389-ds-base-3.1.3/ldap/servers/slapd/util.c:1630: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: CPPCHECK_WARNING (CWE-119): [#def125]
389-ds-base-3.1.3/ldap/servers/slapd/uuid.c:814: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: hash
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:118:19: warning[-Wanalyzer-malloc-leak]: leak of ‘entity_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:115:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:118:19: danger: ‘entity_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:118:19: warning[-Wanalyzer-malloc-leak]: leak of ‘entries_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:114:26: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:118:19: danger: ‘entries_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:118:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ops_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:113:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:118:19: danger: ‘ops_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:123:23: warning[-Wanalyzer-malloc-leak]: leak of ‘entity_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:115:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:123:23: danger: ‘entity_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:123:23: warning[-Wanalyzer-malloc-leak]: leak of ‘entries_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:114:26: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:123:23: danger: ‘entries_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:123:23: warning[-Wanalyzer-malloc-leak]: leak of ‘ops_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:113:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:123:23: danger: ‘ops_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:128:22: warning[-Wanalyzer-malloc-leak]: leak of ‘entity_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:115:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:128:22: danger: ‘entity_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:128:22: warning[-Wanalyzer-malloc-leak]: leak of ‘entries_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:114:26: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:128:22: danger: ‘entries_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:128:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ops_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:113:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:128:22: danger: ‘ops_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entity_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:115:25: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:137:9: danger: ‘entity_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entries_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:114:26: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:137:9: danger: ‘entries_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ops_table_info’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:113:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:137:9: danger: ‘ops_table_info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:203:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:206:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:208:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:208:9: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index_oid’
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:204:29: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:206:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:208:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/ldap-agent.c:208:9: danger: ‘index_oid’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: danger: ‘fopen(conf_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: warning[-Wanalyzer-malloc-leak]: leak of ‘config_file’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:47:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:94:8: branch_false: following ‘false’ branch (when ‘argc == 1’)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:8: branch_false: following ‘false’ branch (when ‘config_file’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: call_function: calling ‘load_config’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: danger: ‘fopen(conf_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: warning[-Wanalyzer-malloc-leak]: leak of ‘instancename’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: danger: ‘instancename’ leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: warning[-Wanalyzer-malloc-leak]: leak of ‘serv_p’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:406:22: danger: ‘serv_p’ leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: danger: ‘fopen(conf_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: warning[-Wanalyzer-malloc-leak]: leak of ‘config_file’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:47:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:94:8: branch_false: following ‘false’ branch (when ‘argc == 1’)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:8: branch_false: following ‘false’ branch (when ‘config_file’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: call_function: calling ‘load_config’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: danger: ‘fopen(conf_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: warning[-Wanalyzer-malloc-leak]: leak of ‘instancename’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: danger: ‘instancename’ leaks here; was allocated at [(23)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: warning[-Wanalyzer-malloc-leak]: leak of ‘serv_p’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: danger: ‘serv_p’ leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def150]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: danger: ‘fopen(conf_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: warning[-Wanalyzer-malloc-leak]: leak of ‘config_file’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:47:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:94:8: branch_false: following ‘false’ branch (when ‘argc == 1’)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:8: branch_false: following ‘false’ branch (when ‘config_file’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: call_function: calling ‘load_config’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: danger: ‘fopen(conf_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: warning[-Wanalyzer-malloc-leak]: leak of ‘instancename’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: danger: ‘instancename’ leaks here; was allocated at [(23)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: warning[-Wanalyzer-malloc-leak]: leak of ‘serv_p’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:21: danger: ‘serv_p’ leaks here; was allocated at [(18)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: danger: ‘fopen(conf_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: warning[-Wanalyzer-malloc-leak]: leak of ‘config_file’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:47:1: enter_function: entry to ‘main’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:94:8: branch_false: following ‘false’ branch (when ‘argc == 1’)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:24: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:99:8: branch_false: following ‘false’ branch (when ‘config_file’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:104:5: call_function: calling ‘load_config’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: danger: ‘fopen(conf_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: warning[-Wanalyzer-malloc-leak]: leak of ‘instancename’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: danger: ‘instancename’ leaks here; was allocated at [(23)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: warning[-Wanalyzer-malloc-leak]: leak of ‘serv_p’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:430:37: danger: ‘serv_p’ leaks here; was allocated at [(18)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: danger: ‘fopen(conf_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: danger: ‘fopen(conf_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: warning[-Wanalyzer-malloc-leak]: leak of ‘instancename’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: danger: ‘instancename’ leaks here; was allocated at [(23)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: warning[-Wanalyzer-malloc-leak]: leak of ‘serv_p’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:40: danger: ‘serv_p’ leaks here; was allocated at [(18)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def164]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_resource: opened here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:28: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: danger: ‘fopen(conf_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_path, "r")’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:28: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: danger: ‘fopen(conf_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: warning[-Wanalyzer-malloc-leak]: leak of ‘instancename’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:28: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: danger: ‘instancename’ leaks here; was allocated at [(23)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: warning[-Wanalyzer-malloc-leak]: leak of ‘serv_p’
389-ds-base-3.1.3/ldap/servers/snmp/main.c:276:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:22: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:284:8: branch_false: following ‘false’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:20: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:291:8: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:293:9: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:321:12: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:323:13: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:336:19: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:25: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:349:19: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:354:19: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:27: acquire_memory: allocated here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:359:16: branch_false: following ‘false’ branch (when ‘serv_p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:366:13: branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:367:16: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:369:32: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:372:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:373:48: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:390:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:391:54: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:408:16: branch_false: following ‘false’ branch...
branch_false: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:423:20: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:425:23: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:443:28: branch_true: following ‘true’ branch...
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: branch_true: ...to here
389-ds-base-3.1.3/ldap/servers/snmp/main.c:444:29: danger: ‘serv_p’ leaks here; was allocated at [(18)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:412:26: warning[-Wanalyzer-malloc-leak]: leak of 'certinfo'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1609:1: enter_function: entry to 'ldapu_certmap_init'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1621:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1624:10: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1624:10: call_function: calling 'certmap_read_certconfig_file' from 'ldapu_certmap_init'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:414:16: warning[-Wanalyzer-malloc-leak]: leak of 'certinfo'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1609:1: enter_function: entry to 'ldapu_certmap_init'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1621:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1624:10: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1624:10: call_function: calling 'certmap_read_certconfig_file' from 'ldapu_certmap_init'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:573:10: warning[-Wanalyzer-malloc-leak]: leak of 'certinfo'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1609:1: enter_function: entry to 'ldapu_certmap_init'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1621:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1624:10: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:1624:10: call_function: calling 'certmap_read_certconfig_file' from 'ldapu_certmap_init'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:13: warning[-Wanalyzer-malloc-leak]: leak of 'ldapu_malloc((int)len)'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:801:1: enter_function: entry to 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:810:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:814:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: call_function: calling 'ldapu_malloc' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: return_function: returning to 'ldapu_cert_searchfn_default' from 'ldapu_malloc'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:822:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:826:28: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:828:14: call_function: calling 'value2filter' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:828:14: return_function: returning to 'ldapu_cert_searchfn_default' from 'value2filter'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:831:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:13: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:13: danger: 'ldapu_malloc((int)len)' leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:837:18: warning[-Wanalyzer-malloc-leak]: leak of 'ldapu_malloc((int)len)'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:801:1: enter_function: entry to 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:810:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:814:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: call_function: calling 'ldapu_malloc' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: return_function: returning to 'ldapu_cert_searchfn_default' from 'ldapu_malloc'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:822:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:826:28: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:828:14: call_function: calling 'value2filter' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:828:14: return_function: returning to 'ldapu_cert_searchfn_default' from 'value2filter'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:831:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:13: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:837:18: branch_true: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:837:18: danger: 'ldapu_malloc((int)len)' leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:841:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*res'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:801:1: enter_function: entry to 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:810:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:814:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: call_function: calling 'ldapu_malloc' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: return_function: returning to 'ldapu_cert_searchfn_default' from 'ldapu_malloc'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:822:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:826:28: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:831:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:13: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:837:18: branch_true: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:838:13: call_function: calling 'ldapu_free' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:838:13: return_function: returning to 'ldapu_cert_searchfn_default' from 'ldapu_free'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:839:16: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:840:40: branch_true: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:840:40: call_function: calling 'ldapu_malloc' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:840:40: return_function: returning to 'ldapu_cert_searchfn_default' from 'ldapu_malloc'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:841:17: danger: 'ldapu_malloc(16)' could be NULL: unchecked value from [(27)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
389-ds-base-3.1.3/lib/ldaputil/certmap.c:849:18: warning[-Wanalyzer-malloc-leak]: leak of 'ldapu_malloc((int)len)'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:801:1: enter_function: entry to 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:810:8: branch_true: following 'true' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:814:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: call_function: calling 'ldapu_malloc' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:821:36: return_function: returning to 'ldapu_cert_searchfn_default' from 'ldapu_malloc'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:822:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:826:28: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:828:14: call_function: calling 'value2filter' from 'ldapu_cert_searchfn_default'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:828:14: return_function: returning to 'ldapu_cert_searchfn_default' from 'value2filter'
389-ds-base-3.1.3/lib/ldaputil/certmap.c:831:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:13: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:836:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/lib/ldaputil/certmap.c:849:18: branch_false: ...to here
389-ds-base-3.1.3/lib/ldaputil/certmap.c:849:18: danger: 'ldapu_malloc((int)len)' leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-682): [#def175]
389-ds-base-3.1.3/lib/ldaputil/dbconf.c:655: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-457): [#def176]
389-ds-base-3.1.3/lib/libaccess/access_plhash.cpp:49: error[uninitvar]: Uninitialized variable: *hep
Error: CPPCHECK_WARNING (CWE-457): [#def177]
389-ds-base-3.1.3/lib/libaccess/acleval.cpp:95: warning[uninitvar]: Uninitialized variable: rv
Error: CPPCHECK_WARNING (CWE-476): [#def178]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:51: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pvalue
Error: CPPCHECK_WARNING (CWE-476): [#def179]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:55: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pvalue
Error: CPPCHECK_WARNING (CWE-476): [#def180]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pvalue
Error: CPPCHECK_WARNING (CWE-476): [#def181]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def182]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vnode
Error: CPPCHECK_WARNING (CWE-476): [#def183]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def184]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:160: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def185]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def186]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def187]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def188]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vnode
Error: CPPCHECK_WARNING (CWE-476): [#def189]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def190]
389-ds-base-3.1.3/lib/libsi18n/reshash.c:179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: node
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
389-ds-base-3.1.3/src/svrcore/src/cache.c:149:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
389-ds-base-3.1.3/src/svrcore/src/cache.c:124:9: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/cache.c:129:11: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:131:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/cache.c:139:21: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:140:10: branch_false: following 'false' branch (when 'node' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/cache.c:143:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:146:27: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/cache.c:147:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/cache.c:149:15: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:149:15: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
389-ds-base-3.1.3/src/svrcore/src/cache.c:149:15: warning[-Wanalyzer-malloc-leak]: leak of 'node'
389-ds-base-3.1.3/src/svrcore/src/cache.c:124:9: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/cache.c:129:11: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:131:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/cache.c:139:21: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:139:21: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/cache.c:140:10: branch_false: following 'false' branch (when 'node' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/cache.c:143:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:147:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/cache.c:149:15: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/cache.c:149:15: danger: 'node' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:98:19: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:98:19: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:126:13: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:124:22: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:126:45: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:126:13: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:138:18: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:138:18: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:21: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:21: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:23: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:23: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:185:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:39: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:185:13: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:185:13: warning[-Wanalyzer-malloc-leak]: leak of 'plain'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:185:13: danger: 'plain' leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:185:13: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:185:13: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:39: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: warning[-Wanalyzer-malloc-leak]: leak of 'plain'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: danger: 'plain' leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:198:14: warning[-Wanalyzer-malloc-leak]: leak of 'plain'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:196:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:198:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:198:14: danger: 'plain' leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:198:14: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:196:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:198:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:198:14: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:201:7: warning[-Wanalyzer-malloc-leak]: leak of 'plain'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:196:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:201:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:201:7: danger: 'plain' leaks here; was allocated at [(17)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:201:7: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:196:12: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:201:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:201:7: danger: 'store' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:229:5: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:78:1: enter_function: entry to 'SVRCORE_CreatePk11PinStore'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:107:15: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:211:5: call_function: calling 'SVRCORE_DestroyPk11PinStore' from 'SVRCORE_CreatePk11PinStore'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:234:5: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:78:1: enter_function: entry to 'SVRCORE_CreatePk11PinStore'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:157:41: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:162:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:167:46: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:168:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:178:32: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:179:10: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:182:7: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:187:10: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:194:14: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:205:10: branch_true: following 'true' branch (when 'rv != 0')...
branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:211:5: call_function: calling 'SVRCORE_DestroyPk11PinStore' from 'SVRCORE_CreatePk11PinStore'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:239:5: warning[-Wanalyzer-malloc-leak]: leak of 'store'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:78:1: enter_function: entry to 'SVRCORE_CreatePk11PinStore'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:88:35: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:89:8: branch_false: following 'false' branch (when 'store' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:92:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:99:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:103:22: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:105:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:123:7: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:133:10: branch_true: following 'true' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:134:9: branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:141:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:148:43: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:149:8: branch_true: following 'true' branch...
branch_true: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:211:5: call_function: calling 'SVRCORE_DestroyPk11PinStore' from 'SVRCORE_CreatePk11PinStore'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:264:11: warning[-Wanalyzer-malloc-leak]: leak of 'plain'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:261:30: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:262:8: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:265:27: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:264:11: danger: 'plain' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
389-ds-base-3.1.3/src/svrcore/src/pk11.c:268:10: warning[-Wanalyzer-malloc-leak]: leak of 'plain'
389-ds-base-3.1.3/src/svrcore/src/pk11.c:261:30: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:262:8: branch_false: following 'false' branch (when 'plain' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:265:27: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:266:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/pk11.c:268:10: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/pk11.c:268:10: danger: 'plain' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
389-ds-base-3.1.3/src/svrcore/src/std-systemd.c:78:15: warning[-Wanalyzer-malloc-leak]: leak of 'obj'
389-ds-base-3.1.3/src/svrcore/src/std-systemd.c:66:42: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/std-systemd.c:67:12: branch_false: following 'false' branch (when 'obj' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/std-systemd.c:69:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/std-systemd.c:78:15: danger: 'obj' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
389-ds-base-3.1.3/src/svrcore/src/std.c:62:11: warning[-Wanalyzer-malloc-leak]: leak of 'obj'
389-ds-base-3.1.3/src/svrcore/src/std.c:52:31: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/std.c:53:8: branch_false: following 'false' branch (when 'obj' is non-NULL)...
389-ds-base-3.1.3/src/svrcore/src/std.c:55:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/std.c:62:11: danger: 'obj' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:357:21: warning[-Wanalyzer-malloc-leak]: leak of 'tbuf'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:169:1: enter_function: entry to 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:173:18: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:185:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:190:17: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:196:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:219:7: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:235:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: call_function: calling '_create_socket' from 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: return_function: returning to 'getPin' from '_create_socket'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:255:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:267:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:270:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:281:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:308:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:330:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:13: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:344:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:357:21: danger: 'tbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:357:21: warning[-Wanalyzer-malloc-leak]: leak of 'token'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:169:1: enter_function: entry to 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:174:19: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:185:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:190:17: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:196:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:219:7: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:235:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: call_function: calling '_create_socket' from 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: return_function: returning to 'getPin' from '_create_socket'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:255:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:267:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:270:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:281:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:308:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:330:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:13: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:344:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:357:21: danger: 'token' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:381:13: warning[-Wanalyzer-malloc-leak]: leak of 'token'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:169:1: enter_function: entry to 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:174:19: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:185:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:190:17: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:196:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:219:7: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:235:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: call_function: calling '_create_socket' from 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: return_function: returning to 'getPin' from '_create_socket'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:255:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:267:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:270:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:281:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:308:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:330:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:13: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:344:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:381:13: danger: 'token' leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:390:13: warning[-Wanalyzer-malloc-leak]: leak of 'token'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:169:1: enter_function: entry to 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:174:19: acquire_memory: allocated here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:185:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:190:17: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:196:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:219:7: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:235:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: call_function: calling '_create_socket' from 'getPin'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:254:11: return_function: returning to 'getPin' from '_create_socket'
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:255:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:267:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:270:8: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:281:5: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:308:8: branch_false: following 'false' branch...
branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:330:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:13: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:336:12: branch_false: following 'false' branch...
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:344:9: branch_false: ...to here
389-ds-base-3.1.3/src/svrcore/src/systemd-ask-pass.c:390:13: danger: 'token' leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def220]
jemalloc-5.3.0/include/jemalloc/internal/emitter.h:93:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
jemalloc-5.3.0/include/jemalloc/internal/emitter.h:305:1: enter_function: entry to ‘emitter_json_array_end’
jemalloc-5.3.0/include/jemalloc/internal/emitter.h:313:17: call_function: calling ‘emitter_printf’ from ‘emitter_json_array_end’
Error: CPPCHECK_WARNING (CWE-786): [#def221]
jemalloc-5.3.0/include/jemalloc/internal/rtree.h:404: error[negativeIndex]: Array 'rtree_ctx->l2_cache[8]' accessed at index -1, which is out of bounds.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
jemalloc-5.3.0/src/extent.c:869:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘coalesced’
jemalloc-5.3.0/src/extent.c:1028:1: enter_function: entry to ‘extent_dalloc_wrapper’
jemalloc-5.3.0/src/extent.c:1035:12: branch_true: following ‘true’ branch...
jemalloc-5.3.0/src/extent.c:1055:14: call_function: inlined call to ‘edata_committed_get’ from ‘extent_dalloc_wrapper’
jemalloc-5.3.0/src/extent.c:1076:9: call_function: calling ‘extent_record’ from ‘extent_dalloc_wrapper’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def223]
jemalloc-5.3.0/src/hook.c:15:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf[i]’
jemalloc-5.3.0/src/hook.c:73:1: enter_function: entry to ‘hook_remove’
jemalloc-5.3.0/src/hook.c:82:9: call_function: calling ‘hook_remove_locked’ from ‘hook_remove’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def224]
jemalloc-5.3.0/src/hook.c:34:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hooks_internal.in_use’
jemalloc-5.3.0/src/hook.c:48:1: enter_function: entry to ‘hook_install’
jemalloc-5.3.0/src/hook.c:49:9: call_function: calling ‘malloc_mutex_lock’ from ‘hook_install’
jemalloc-5.3.0/src/hook.c:49:9: return_function: returning to ‘hook_install’ from ‘malloc_mutex_lock’
jemalloc-5.3.0/src/hook.c:50:21: call_function: calling ‘hook_install_locked’ from ‘hook_install’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def225]
jemalloc-5.3.0/src/log.c:16:35: warning[-Wanalyzer-out-of-bounds]: buffer over-read
jemalloc-5.3.0/src/log.c:44:1: enter_function: entry to ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:55:12: branch_true: following ‘true’ branch...
branch_true: ...to here
jemalloc-5.3.0/src/log.c:60:43: call_function: inlined call to ‘log_var_extract_segment’ from ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:63:21: branch_false: ...to here
jemalloc-5.3.0/src/log.c:63:21: call_function: calling ‘log_var_matches_segment’ from ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:63:21: return_function: returning to ‘log_var_update_state’ from ‘log_var_matches_segment’
jemalloc-5.3.0/src/log.c:63:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/log.c:69:20: branch_false: ...to here
jemalloc-5.3.0/src/log.c:69:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/log.c:76:17: branch_false: ...to here
jemalloc-5.3.0/src/log.c:60:43: call_function: inlined call to ‘log_var_extract_segment’ from ‘log_var_update_state’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def226]
jemalloc-5.3.0/src/log.c:30:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read
jemalloc-5.3.0/src/log.c:44:1: enter_function: entry to ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:55:12: branch_true: following ‘true’ branch...
branch_true: ...to here
jemalloc-5.3.0/src/log.c:60:43: call_function: inlined call to ‘log_var_extract_segment’ from ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:63:21: branch_false: ...to here
jemalloc-5.3.0/src/log.c:63:21: call_function: calling ‘log_var_matches_segment’ from ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:63:21: return_function: returning to ‘log_var_update_state’ from ‘log_var_matches_segment’
jemalloc-5.3.0/src/log.c:63:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/log.c:69:20: branch_false: ...to here
jemalloc-5.3.0/src/log.c:69:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/log.c:76:17: branch_false: ...to here
jemalloc-5.3.0/src/log.c:60:43: call_function: inlined call to ‘log_var_extract_segment’ from ‘log_var_update_state’
jemalloc-5.3.0/src/log.c:63:21: branch_false: ...to here
jemalloc-5.3.0/src/log.c:63:21: call_function: calling ‘log_var_matches_segment’ from ‘log_var_update_state’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def227]
jemalloc-5.3.0/src/malloc_io.c:661:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
jemalloc-5.3.0/src/malloc_io.c:681:1: enter_function: entry to ‘malloc_printf’
jemalloc-5.3.0/src/malloc_io.c:684:9: acquire_resource: ‘va_start’ called here
jemalloc-5.3.0/src/malloc_io.c:685:9: call_function: calling ‘malloc_vcprintf’ from ‘malloc_printf’
Error: CPPCHECK_WARNING (CWE-476): [#def228]
jemalloc-5.3.0/src/prof_data.c:70: error[ctunullpointer]: Null pointer dereference: a
Error: CPPCHECK_WARNING (CWE-476): [#def229]
jemalloc-5.3.0/src/prof_data.c:88: error[ctunullpointer]: Null pointer dereference: node
Error: GCC_ANALYZER_WARNING (CWE-476): [#def230]
jemalloc-5.3.0/src/prof_data.c:88:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nodep’
jemalloc-5.3.0/src/prof_data.c:1346:1: enter_function: entry to ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1376:38: call_function: inlined call to ‘prof_tdata_should_destroy’ from ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1376:38: call_function: inlined call to ‘prof_tdata_should_destroy’ from ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1379:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/prof_data.c:1386:9: branch_false: ...to here
jemalloc-5.3.0/src/prof_data.c:1389:17: call_function: calling ‘tctx_tree_remove’ from ‘prof_tctx_destroy’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def231]
jemalloc-5.3.0/src/prof_data.c:88:1: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
jemalloc-5.3.0/src/prof_data.c:1346:1: enter_function: entry to ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1376:38: call_function: inlined call to ‘prof_tdata_should_destroy’ from ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1376:38: call_function: inlined call to ‘prof_tdata_should_destroy’ from ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1379:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/prof_data.c:1386:9: branch_false: ...to here
jemalloc-5.3.0/src/prof_data.c:1389:17: call_function: calling ‘tctx_tree_remove’ from ‘prof_tctx_destroy’
Error: GCC_ANALYZER_WARNING (CWE-124): [#def232]
jemalloc-5.3.0/src/prof_data.c:88:1: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
jemalloc-5.3.0/src/prof_data.c:1346:1: enter_function: entry to ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1376:38: call_function: inlined call to ‘prof_tdata_should_destroy’ from ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1376:38: call_function: inlined call to ‘prof_tdata_should_destroy’ from ‘prof_tctx_destroy’
jemalloc-5.3.0/src/prof_data.c:1379:20: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/prof_data.c:1386:9: branch_false: ...to here
jemalloc-5.3.0/src/prof_data.c:1389:17: call_function: calling ‘tctx_tree_remove’ from ‘prof_tctx_destroy’
Error: CPPCHECK_WARNING (CWE-476): [#def233]
jemalloc-5.3.0/src/prof_data.c:93: error[ctunullpointer]: Null pointer dereference: a
Error: CPPCHECK_WARNING (CWE-476): [#def234]
jemalloc-5.3.0/src/prof_data.c:103: error[ctunullpointer]: Null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def235]
jemalloc-5.3.0/src/prof_data.c:109: error[ctunullpointer]: Null pointer dereference: a
Error: CPPCHECK_WARNING (CWE-476): [#def236]
jemalloc-5.3.0/src/prof_data.c:122: error[ctunullpointer]: Null pointer dereference: node
Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
jemalloc-5.3.0/src/prof_data.c:122:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nodep’
jemalloc-5.3.0/src/prof_data.c:1243:1: enter_function: entry to ‘prof_tdata_destroy’
jemalloc-5.3.0/src/prof_data.c:1244:9: call_function: calling ‘malloc_mutex_lock’ from ‘prof_tdata_destroy’
jemalloc-5.3.0/src/prof_data.c:1244:9: return_function: returning to ‘prof_tdata_destroy’ from ‘malloc_mutex_lock’
jemalloc-5.3.0/src/prof_data.c:1245:9: call_function: calling ‘prof_tdata_destroy_locked’ from ‘prof_tdata_destroy’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def238]
jemalloc-5.3.0/src/prof_data.c:122:1: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
jemalloc-5.3.0/src/prof_data.c:1243:1: enter_function: entry to ‘prof_tdata_destroy’
jemalloc-5.3.0/src/prof_data.c:1244:9: call_function: calling ‘malloc_mutex_lock’ from ‘prof_tdata_destroy’
jemalloc-5.3.0/src/prof_data.c:1244:9: return_function: returning to ‘prof_tdata_destroy’ from ‘malloc_mutex_lock’
jemalloc-5.3.0/src/prof_data.c:1245:9: call_function: calling ‘prof_tdata_destroy_locked’ from ‘prof_tdata_destroy’
Error: GCC_ANALYZER_WARNING (CWE-124): [#def239]
jemalloc-5.3.0/src/prof_data.c:122:1: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
jemalloc-5.3.0/src/prof_data.c:1243:1: enter_function: entry to ‘prof_tdata_destroy’
jemalloc-5.3.0/src/prof_data.c:1244:9: call_function: calling ‘malloc_mutex_lock’ from ‘prof_tdata_destroy’
jemalloc-5.3.0/src/prof_data.c:1244:9: return_function: returning to ‘prof_tdata_destroy’ from ‘malloc_mutex_lock’
jemalloc-5.3.0/src/prof_data.c:1245:9: call_function: calling ‘prof_tdata_destroy_locked’ from ‘prof_tdata_destroy’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def240]
jemalloc-5.3.0/src/prof_data.c:515:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
jemalloc-5.3.0/src/prof_data.c:942:1: enter_function: entry to ‘prof_tdata_dump_iter’
jemalloc-5.3.0/src/prof_data.c:949:9: call_function: calling ‘prof_dump_printf’ from ‘prof_tdata_dump_iter’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
jemalloc-5.3.0/src/prof_log.c:661:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
jemalloc-5.3.0/src/prof_log.c:614:1: enter_function: entry to ‘prof_log_stop’
jemalloc-5.3.0/src/prof_log.c:616:12: branch_true: following ‘true’ branch...
jemalloc-5.3.0/src/prof_log.c:623:12: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/prof_log.c:633:9: branch_false: ...to here
jemalloc-5.3.0/src/prof_log.c:642:12: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/prof_log.c:645:22: branch_false: ...to here
jemalloc-5.3.0/src/prof_log.c:645:22: acquire_resource: opened here
jemalloc-5.3.0/src/prof_log.c:648:12: branch_false: following ‘false’ branch...
jemalloc-5.3.0/src/prof_log.c:658:9: branch_false: ...to here
jemalloc-5.3.0/src/prof_log.c:661:9: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def242]
jemalloc-5.3.0/src/prof_sys.c:380:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
jemalloc-5.3.0/src/prof_sys.c:406:1: enter_function: entry to ‘prof_dump_flush’
jemalloc-5.3.0/src/prof_sys.c:412:17: call_function: calling ‘prof_dump_check_possible_error’ from ‘prof_dump_flush’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def243]
jemalloc-5.3.0/src/prof_sys.c:433:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
jemalloc-5.3.0/src/prof_sys.c:639:1: enter_function: entry to ‘prof_mdump_impl’
jemalloc-5.3.0/src/prof_sys.c:653:16: call_function: calling ‘prof_dump’ from ‘prof_mdump_impl’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def244]
jemalloc-5.3.0/src/prof_sys.c:485:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘mfd’
jemalloc-5.3.0/src/prof_sys.c:639:1: enter_function: entry to ‘prof_mdump_impl’
jemalloc-5.3.0/src/prof_sys.c:653:16: call_function: calling ‘prof_dump’ from ‘prof_mdump_impl’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
jemalloc-5.3.0/src/prof_sys.c:486:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘mfd’
jemalloc-5.3.0/src/prof_sys.c:639:1: enter_function: entry to ‘prof_mdump_impl’
jemalloc-5.3.0/src/prof_sys.c:653:16: call_function: calling ‘prof_dump’ from ‘prof_mdump_impl’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
jemalloc-5.3.0/src/prof_sys.c:509:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘arg.prof_dump_fd’
jemalloc-5.3.0/src/prof_sys.c:639:1: enter_function: entry to ‘prof_mdump_impl’
jemalloc-5.3.0/src/prof_sys.c:653:16: call_function: calling ‘prof_dump’ from ‘prof_mdump_impl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def247]
jemalloc-5.3.0/src/safety_check.c:27:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
jemalloc-5.3.0/src/safety_check.c:26:9: acquire_resource: ‘va_start’ called here
jemalloc-5.3.0/src/safety_check.c:27:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| 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-247.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-gcc-latest-x86_64 |
| project-name | 389-ds-base-3.1.3-10.fc44 |
| store-results-to | /tmp/tmpzp5ixy6_/389-ds-base-3.1.3-10.fc44.tar.xz |
| time-created | 2025-10-28 17:35:37 |
| time-finished | 2025-10-28 17:51:22 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpzp5ixy6_/389-ds-base-3.1.3-10.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpzp5ixy6_/389-ds-base-3.1.3-10.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |