389-ds-base-3.1.0-10.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/include/netsite.h:144:33: note: expanded from macro 'PERM_REALLOC'
#  142|   NSAPI_PUBLIC void *INTsystem_calloc_perm(int size);
#  143|   
#  144|-> #define PERM_REALLOC(ptr, size) INTsystem_realloc_perm(ptr, size)
#  145|   NSAPI_PUBLIC void *INTsystem_realloc_perm(void *ptr, int size);
#  146|   

Error: CPPCHECK_WARNING: [#def2]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:103:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  101|           rc = ravl_insert(&((*iroot)->avl_right), data, &tallersub,
#  102|                            fcmp, fdup, depth);
#  103|->         if (tallersub)
#  104|               switch ((*iroot)->avl_bf) {
#  105|               case LH: /* left high - balance is restored */

Error: CLANG_WARNING: [#def4]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:157:13: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  155|           rc = ravl_insert(&((*iroot)->avl_left), data, &tallersub,
#  156|                            fcmp, fdup, depth);
#  157|->         if (tallersub)
#  158|               switch ((*iroot)->avl_bf) {
#  159|               case LH: /* left high to start - left balance */

Error: CLANG_WARNING: [#def5]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:260:17: warning[core.NullDereference]: Access to field 'avl_bf' results in a dereference of a null pointer (loaded from variable 'l')
#  258|       case LH: /* was right high - balance */
#  259|           l = (*root)->avl_left;
#  260|->         switch (l->avl_bf) {
#  261|           case RH: /* double rotation left */
#  262|               r = l->avl_right;

Error: CPPCHECK_WARNING (CWE-401): [#def6]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:712: error[memleakOnRealloc]: Common realloc mistake: 'avl_list' nulled but not freed upon failure
#  710|       } else if (avl_maxlist == slots) {
#  711|           slots += AVL_GRABSIZE;
#  712|->         avl_list = (caddr_t *)realloc((char *)avl_list,
#  713|                                         (unsigned)slots * sizeof(caddr_t));
#  714|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c: scope_hint: In function 'avl_buildlist'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:716:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'avl_list'
#  714|       }
#  715|   
#  716|->     avl_list[avl_maxlist++] = data;
#  717|   
#  718|       return (0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c: scope_hint: In function ‘avl_buildlist’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:716:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘avl_list’
#  714|       }
#  715|   
#  716|->     avl_list[avl_maxlist++] = data;
#  717|   
#  718|       return (0);

Error: CLANG_WARNING: [#def9]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/libraries/libavl/avl.c:748:9: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
#  746|       (void)avl_apply(root, avl_buildlist, (caddr_t)0, -1, AVL_INORDER);
#  747|       if (avl_list && avl_list[avl_nextlist++]) {
#  748|->         return avl_list[avl_nextlist];
#  749|       } else {
#  750|           return (NULL);

Error: CPPCHECK_WARNING: [#def10]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acctpolicy/acct_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acctpolicy/acct_plugin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def13]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:1814:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 1812|   
# 1813|           acllist_acicache_WRITE_LOCK();
# 1814|->         rv = acllist_remove_aci_needsLock(e_sdn, NULL);
# 1815|           acllist_acicache_WRITE_UNLOCK();
# 1816|   

Error: CLANG_WARNING: [#def14]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:1861:21: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 1859|                   case LDAP_MOD_REPLACE:
# 1860|                       /* First remove the item */
# 1861|->                     rv = acllist_remove_aci_needsLock(e_sdn, NULL);
# 1862|   
# 1863|                   /* now fall thru to add the new one */

Error: CLANG_WARNING: [#def15]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:1896:29: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 1894|                           bvalue = mods[j]->mod_bvalues;
# 1895|                           if (bvalue == NULL || *bvalue == NULL) {
# 1896|->                             rv = acllist_remove_aci_needsLock(e_sdn, NULL);
# 1897|                           } else {
# 1898|                               for (; *bvalue != NULL; ++bvalue)

Error: CLANG_WARNING: [#def16]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:1922:13: warning[deadcode.DeadStores]: Value stored to 'got_write_lock' is never read
# 1920|           if (got_write_lock) {
# 1921|               acllist_acicache_WRITE_UNLOCK();
# 1922|->             got_write_lock = 0;
# 1923|           }
# 1924|   

Error: CLANG_WARNING: [#def17]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:3139:13: warning[deadcode.DeadStores]: Value stored to 'skip_eval' is never read
# 3137|           }
# 3138|           if (skip_eval) {
# 3139|->             skip_eval = 0;
# 3140|               continue;
# 3141|           }

Error: CLANG_WARNING: [#def18]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:3369:13: warning[deadcode.DeadStores]: Value stored to 'skip_eval' is never read
# 3367|           }
# 3368|           if (skip_eval) {
# 3369|->             skip_eval = 0;
# 3370|               continue;
# 3371|           }

Error: CLANG_WARNING: [#def19]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.c:4204:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 4202|        * we may want to reconsider this is NULL DSE implementation happens
# 4203|        */
# 4204|->     rv = slapi_pblock_get(pb, SLAPI_BACKEND, &be);
# 4205|       if (be == NULL)
# 4206|           return ACL_TRUE;

Error: CPPCHECK_WARNING: [#def20]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c:434:27: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  432|               first_aclpb = aclpb;
#  433|   
#  434|->         aclpb->aclpb_prev = prev_aclpb;
#  435|           if (prev_aclpb)
#  436|               prev_aclpb->aclpb_next = aclpb;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c: scope_hint: In function 'acl_create_aclpb_pool'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c:434:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'prev_aclpb'
#  432|               first_aclpb = aclpb;
#  433|   
#  434|->         aclpb->aclpb_prev = prev_aclpb;
#  435|           if (prev_aclpb)
#  436|               prev_aclpb->aclpb_next = aclpb;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c: scope_hint: In function 'acl__get_aclpb_from_pool'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c:516:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'aclpb'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/csngen.h:20: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slap.h:122: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.h:37: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c:14: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl_ext.c:508:9: note: in expansion of macro 'slapi_log_err'
#  514|       /* Now move it to the FRONT of busy list */
#  515|       t_aclpb = aclQueue->aclq_busy;
#  516|->     aclpb->aclpb_next = t_aclpb;
#  517|       if (t_aclpb)
#  518|           t_aclpb->aclpb_prev = aclpb;

Error: CPPCHECK_WARNING: [#def24]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclanom.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acleffectiverights.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclgroup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclinit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def28]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclinit.c:112:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
#  110|   
#  111|       /* Initialize the anonymous profile i.e., generate it */
#  112|->     rv = aclanom_init();
#  113|   
#  114|       pb = slapi_pblock_new();

Error: CLANG_WARNING: [#def29]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclinit.c:153:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
#  151|   
#  152|       /* Initialize the user-group cache */
#  153|->     rv = aclgroup_init();
#  154|   
#  155|       aclanom_gen_anomProfile(DO_TAKE_ACLCACHE_READLOCK);

Error: CPPCHECK_WARNING: [#def30]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:495:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  493|       int got_undefined = 0;
#  494|   
#  495|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 0, /* Don't allow range comparators */
#  496|                                     attr_pattern, cachable, LAS_cookie,
#  497|                                     subject, resource, auth_info, global_auth,

Error: CLANG_WARNING: [#def32]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:781:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  779|   
#  780|       /* the setup should not fail under normal operation */
#  781|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 0, /* Don't allow range comparators */
#  782|                                     attr_pattern, cachable, LAS_cookie,
#  783|                                     subject, resource, auth_info, global_auth,

Error: CLANG_WARNING: [#def33]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:1002:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 1000|       int got_undefined = 0;
# 1001|   
# 1002|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 0, /* Don't allow range comparators */
# 1003|                                     attr_pattern, cachable, LAS_cookie,
# 1004|                                     subject, resource, auth_info, global_auth,

Error: CLANG_WARNING: [#def34]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:1184:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 1182|       selfdn = (strcmp(DS_LAS_SELFDNATTR, attr_name) == 0) ? PR_TRUE : PR_FALSE;
# 1183|   
# 1184|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 0, /* Don't allow range comparators */
# 1185|                                     attr_pattern, cachable, LAS_cookie,
# 1186|                                     subject, resource, auth_info, global_auth,

Error: CLANG_WARNING: [#def35]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:1756:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 1754|       int aclssf;
# 1755|   
# 1756|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 1, /* Allow range comparators */
# 1757|                                     attr_pattern, cachable, LAS_cookie,
# 1758|                                     subject, resource, auth_info, global_auth,

Error: CLANG_WARNING: [#def36]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:1779:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1777|       aclssf = (int)strtol(attr, &ptr, 10);
# 1778|       if (*ptr != '\0') {
# 1779|->         rc = LAS_EVAL_FAIL;
# 1780|           slapi_log_err(SLAPI_LOG_ACL, plugin_name,
# 1781|                         "DS_LASSSFEval - Error parsing numeric SSF from bind rule.\n");

Error: CLANG_WARNING: [#def37]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:1788:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1786|       /* Check for negative values or a value overflow. */
# 1787|       if ((aclssf < 0) || (((aclssf == INT_MAX) || (aclssf == INT_MIN)) && (errno == ERANGE))) {
# 1788|->         rc = LAS_EVAL_FAIL;
# 1789|           slapi_log_err(SLAPI_LOG_ACL, plugin_name,
# 1790|                         "DS_LASSSFEval - SSF \"%s\" is invalid. Value must range from 0 to %d",

Error: CLANG_WARNING: [#def38]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:2570:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 2568|       int got_undefined = 0;
# 2569|   
# 2570|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 0, /* Don't allow range comparators */
# 2571|                                     attr_pattern, cachable, LAS_cookie,
# 2572|                                     subject, resource, auth_info, global_auth,

Error: CLANG_WARNING: [#def39]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:2858:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 2856|           LDAP_UTF8INC(str);
# 2857|       str += 8;
# 2858|->     s = strchr(str, '?');
# 2859|       if (s) {
# 2860|           p = s;

Error: CLANG_WARNING: [#def40]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:3446:13: warning[core.NullDereference]: Access to field 'aclpb_client_entry' results in a dereference of a null pointer (loaded from field 'aclpb')
# 3444|       if (rc) {
# 3445|           rc = slapi_entry_attr_has_syntax_value(
# 3446|->             lasinfo.aclpb->aclpb_client_entry,
# 3447|               attrName, &v);
# 3448|           if (rc)

Error: CLANG_WARNING: [#def41]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:3893:15: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 3891|       int got_undefined = 0;
# 3892|   
# 3893|->     if (0 != (rc = __acllas_setup(errp, attr_name, comparator, 0, /* Don't allow range comparators */
# 3894|                                     attr_pattern, cachable, LAS_cookie,
# 3895|                                     subject, resource, auth_info, global_auth,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c: scope_hint: In function 'aclutil_evaluate_macro'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:4070:12: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sptr'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/csngen.h:20: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slap.h:122: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acl.h:37: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:16: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllas.c:4050:13: note: in expansion of macro 'slapi_log_err'
# 4068|   
# 4069|       sptr = candidate_list;
# 4070|->     while (*sptr != NULL && !matched) {
# 4071|   
# 4072|           s = *sptr;

Error: CPPCHECK_WARNING: [#def43]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/acllist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclparse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def45]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclparse.c:1292:13: warning[deadcode.DeadStores]: Value stored to 'got_rule' is never read
# 1290|                   */
# 1291|               start = ruleStart;
# 1292|->             got_rule = 0;
# 1293|           } else {
# 1294|               /*

Error: CPPCHECK_WARNING: [#def46]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclplugin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def47]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclplugin.c:71:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#   69|   
#   70|       /* save plugin identity to later pass to internal operations */
#   71|->     rc = slapi_pblock_get(pb, SLAPI_PLUGIN_IDENTITY, &g_acl_preop_plugin_identity);
#   72|   
#   73|       /* Declare plugin version */

Error: CLANG_WARNING: [#def48]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclplugin.c:298:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  296|   
#  297|       /* save plugin identity to later pass to internal operations */
#  298|->     rc = slapi_pblock_get(pb, SLAPI_PLUGIN_IDENTITY, &g_acl_plugin_identity);
#  299|   
#  300|       rc = slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION,

Error: CLANG_WARNING: [#def49]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclplugin.c:305:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  303|                              (void *)&pdesc);
#  304|   
#  305|->     rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_START_FN, (void *)aclplugin_init);
#  306|       rc = slapi_pblock_set(pb, SLAPI_PLUGIN_CLOSE_FN, (void *)aclplugin_stop);
#  307|       rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_ACL_SYNTAX_CHECK,

Error: CPPCHECK_WARNING: [#def50]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def51]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/acl/aclutil.c:543:5: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  541|       }
#  542|   
#  543|->     i = 0;
#  544|       ncomponents = 0;
#  545|       while (a_dns[ncomponents])

Error: CPPCHECK_WARNING: [#def52]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/alias_entries/alias-entries.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/automember/automember.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/bitwise/bitwise.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def55]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_abandon.c:44:14: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#   42|       if (slapi_op_abandoned(pb)) {
#   43|   
#   44|->         if ((rc = cb_forward_operation(pb)) != LDAP_SUCCESS) {
#   45|               return 0;
#   46|           }

Error: CLANG_WARNING: [#def56]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_abandon.c:48:14: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#   46|           }
#   47|   
#   48|->         if ((rc = cb_update_controls(pb, ld, &ctrls, CB_UPDATE_CONTROLS_ISABANDON)) != LDAP_SUCCESS) {
#   49|               if (NULL != ctrls)
#   50|                   ldap_controls_free(ctrls);

Error: CPPCHECK_WARNING: [#def57]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_add.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_compare.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_conn_stateless.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def62]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_conn_stateless.c:343:17: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  341|                   int ret = -1;
#  342|   
#  343|->                 rc = LDAP_SUCCESS;
#  344|   
#  345|                   if (cb_debug_on()) {

Error: CPPCHECK_WARNING: [#def63]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_controls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_instance.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_modify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_modrdn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def68]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def69]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_search.c:62:26: warning[deadcode.DeadStores]: Although the value stored to 'parse_rc' is used in the enclosing expression, the value is never actually read from 'parse_rc'
#   60|       target = slapi_sdn_get_dn(target_sdn);
#   61|   
#   62|->     if (LDAP_SUCCESS != (parse_rc = cb_forward_operation(pb))) {
#   63|           /* Don't return errors */
#   64|           if (cb_debug_on()) {

Error: CLANG_WARNING: [#def70]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_search.c:581:17: warning[deadcode.DeadStores]: Value stored to 'endtime' is never read
#  579|               /* heart-beat management */
#  580|               if (cb->max_idle_time > 0) {
#  581|->                 endtime = slapi_current_rel_time_t() + cb->max_idle_time;
#  582|               }
#  583|   

Error: CLANG_WARNING: [#def71]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_search.c:613:17: warning[deadcode.DeadStores]: Value stored to 'endtime' is never read
#  611|               /* heart-beat management */
#  612|               if (cb->max_idle_time > 0) {
#  613|->                 endtime = slapi_current_rel_time_t() + cb->max_idle_time;
#  614|               }
#  615|   

Error: CPPCHECK_WARNING: [#def72]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/chainingdb/cb_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/collation/collate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/collation/config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def75]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/collation/config.c:32:12: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'next')
#   30|           next = line;
#   31|       }
#   32|->     while (*next && strchr(sep, *next)) {
#   33|           next++;
#   34|       }

Error: CPPCHECK_WARNING: [#def76]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/collation/orfilter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def77]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/collation/orfilter.c:555:25: warning[deadcode.DeadStores]: Value stored to 'reusable' is never read
#  553|                       if (ix != NULL) {
#  554|                           memcpy(&bv, mrVALUE, sizeof(struct berval));
#  555|->                         reusable |= MRF_ANY_VALUE;
#  556|                       }
#  557|                       slapi_ch_free((void **)&or_oid);

Error: CPPCHECK_WARNING: [#def78]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/cos/cos_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def79]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/cos/cos_cache.c:781:9: warning[deadcode.DeadStores]: Value stored to 'valIndex' is never read
#  779|               continue;
#  780|           }
#  781|->         valIndex = 0;
#  782|           if (!dnVals) {
#  783|               continue;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def80]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/cos/cos_cache.c: scope_hint: In function 'cos_cache_release'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/cos/cos_cache.c:1687:12: warning[-Wanalyzer-deref-before-check]: check of 'pOldCache' for NULL after already dereferencing it
# 1685|            * vattr caching can be turned on
# 1686|            */
# 1687|->         if (pCache && pCache->vattr_cacheable) {
# 1688|               slapi_vattrcache_cache_all();
# 1689|           }

Error: CPPCHECK_WARNING: [#def81]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/deref/deref.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def82]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/deref/deref.c:645: warning[uninitvar]: Uninitialized variable: sv
#  643|                               idx = slapi_valueset_first_value(results, &sv);
#  644|                           }
#  645|->                         for (; results && sv; idx = slapi_valueset_next_value(results, idx, &sv)) {
#  646|                               const struct berval *bv = slapi_value_get_berval(sv);
#  647|                               if (needattrvals) {

Error: CPPCHECK_WARNING (CWE-457): [#def83]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/deref/deref.c:747: warning[uninitvar]: Uninitialized variable: sv
#  745|               idx = slapi_valueset_first_value(results, &sv);
#  746|           }
#  747|->         for (; results && sv; idx = slapi_valueset_next_value(results, idx, &sv)) {
#  748|               const char *derefdn = slapi_value_get_string(sv);
#  749|   

Error: CPPCHECK_WARNING: [#def84]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/dna/dna.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def85]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/dna/dna.c:2428:9: warning[deadcode.DeadStores]: Value stored to 'sval' is never read
# 2426|            * be a single-type range, so we can just use the first (only)
# 2427|            * type from the list of types directly. */
# 2428|->         sval = 0;
# 2429|           for (i = 0; NULL != entries[i]; i++) {
# 2430|               strval = slapi_entry_attr_get_charptr(entries[i], config_entry->types[0]);

Error: CPPCHECK_WARNING: [#def86]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/linkedattrs/fixup_task.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def87]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/linkedattrs/linked_attrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def88]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/memberof/memberof.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def89]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/memberof/memberof_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def90]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/mep/mep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def91]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/pam_passthru/pam_ptconfig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def92]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/pam_passthru/pam_ptimpl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def93]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/passthru/ptpreop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def94]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/posix-winsync/posix-group-func.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def95]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/posix-winsync/posix-group-task.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def96]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/posix-winsync/posix-winsync-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def97]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/posix-winsync/posix-winsync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def98]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/pwdstorage/crypt_pwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/pwdstorage/pbkdf2_pwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/referint/referint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def102]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slap.h:118: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:29: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c: scope_hint: In function '_cl5Operation2LDIF'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3405:54: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
# 3403|   
# 3404|       /* find length of the buffer */
# 3405|->     len += LDIF_SIZE_NEEDED(strlen(T_CHANGETYPESTR), strlen(strType));
# 3406|       len += LDIF_SIZE_NEEDED(strlen(T_REPLGEN), strlen(replGen));
# 3407|       len += LDIF_SIZE_NEEDED(strlen(T_CSNSTR), strlen(strCSN));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3408:52: warning[-Wanalyzer-null-argument]: use of NULL 'rawDN' where non-null expected
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:21: included_from: Included from here.
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
# 3406|       len += LDIF_SIZE_NEEDED(strlen(T_REPLGEN), strlen(replGen));
# 3407|       len += LDIF_SIZE_NEEDED(strlen(T_CSNSTR), strlen(strCSN));
# 3408|->     len += LDIF_SIZE_NEEDED(strlen(T_UNIQUEIDSTR), strlen(op->target_address.uniqueid));
# 3409|   
# 3410|       switch (op->operation_type) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3494:75: warning[-Wanalyzer-null-argument]: use of NULL 'rawDN' where non-null expected
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3464:50: note: in expansion of macro 'REPL_GET_DN_LEN'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
# 3492|               slapi_ldif_put_type_and_value_with_options(&buff, T_PARENTIDSTR,
# 3493|                                                          op->p.p_add.parentuniqueid, strlen(op->p.p_add.parentuniqueid), 0);
# 3494|->         slapi_ldif_put_type_and_value_with_options(&buff, T_DNSTR, rawDN, strlen(rawDN), 0);
# 3495|           slapi_ldif_put_type_and_value_with_options(&buff, T_CHANGESTR, l->ls_buf, l->ls_len, 0);
# 3496|           slapi_ch_free((void **)&rawDN);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3502:84: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3464:50: note: in expansion of macro 'REPL_GET_DN_LEN'
# 3500|           slapi_ldif_put_type_and_value_with_options(&buff, T_DNSTR, REPL_GET_DN(&op->target_address),
# 3501|                                                      REPL_GET_DN_LEN(&op->target_address), 0);
# 3502|->         slapi_ldif_put_type_and_value_with_options(&buff, T_CHANGESTR, l->ls_buf, l->ls_len, 0);
# 3503|           break;
# 3504|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3520:84: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_api.c:3464:50: note: in expansion of macro 'REPL_GET_DN_LEN'
# 3518|                                                          op->p.p_modrdn.modrdn_newsuperior_address.uniqueid,
# 3519|                                                          strlen(op->p.p_modrdn.modrdn_newsuperior_address.uniqueid), 0);
# 3520|->         slapi_ldif_put_type_and_value_with_options(&buff, T_CHANGESTR, l->ls_buf, l->ls_len, 0);
# 3521|           break;
# 3522|   

Error: CPPCHECK_WARNING: [#def107]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_clcache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def108]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/cl5_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def109]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_agmt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def110]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_agmtlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def111]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def112]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_connection.c:442:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  440|       if (0 == rc) {
#  441|           /* Timeout */
#  442|->         rc = slapi_ldap_get_lderrno(conn->ld, NULL, NULL);
#  443|           conn->last_ldap_error = LDAP_TIMEOUT;
#  444|           return_value = CONN_TIMEOUT;

Error: CLANG_WARNING: [#def113]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_connection.c:1765:21: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1763|                       atmod.mod_bvalues[numvalues] = NULL;
# 1764|   
# 1765|->                     result = conn_send_modify(conn, "cn=schema", attrs, NULL, NULL); /* DBDB: this needs to be fixed to use async */
# 1766|                       result = conn_read_result(conn, NULL);
# 1767|                       switch (result) {

Error: CPPCHECK_WARNING: [#def114]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c: scope_hint: In function 'repl5_inc_create_async_result_thread'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c:433:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rd'
#  431|           retval = -1;
#  432|       } else {
#  433|->         rd->result_tid = tid;
#  434|       }
#  435|       return retval;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c: scope_hint: In function 'repl5_inc_destroy_async_result_thread'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c:442:15: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rd'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl_shared.h:21: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5.h:27: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c:34: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slapi-private.h:43:80: note: in definition of macro 'slapi_log_err'
#  440|   {
#  441|       int retval = 0;
#  442|->     PRThread *tid = rd->result_tid;
#  443|       if (tid) {
#  444|           PR_Lock(rd->lock);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c: scope_hint: In function 'send_updates'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c:1861:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rd'
# 1859|                   finished = 1;
# 1860|               }
# 1861|->             PR_Lock(rd->lock);
# 1862|               /* See if the result thread has hit a problem */
# 1863|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_inc_protocol.c:1913:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rd'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slapi-private.h:43:80: note: in definition of macro 'slapi_log_err'
# 1911|               *num_changes_sent = rd->num_changes_sent;
# 1912|           }
# 1913|->         PR_Lock(rd->lock);
# 1914|           if (rd->flowcontrol_detection) {
# 1915|               slapi_log_err(SLAPI_LOG_REPL, repl_plugin_name,

Error: CLANG_WARNING: [#def119]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:902:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  900|           repl_sup_init_ext();
#  901|   
#  902|->         rc = slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_VERSION_01);
#  903|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&multisupplierdesc);
#  904|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_START_FN, (void *)multisupplier_start);

Error: CLANG_WARNING: [#def120]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:903:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  901|   
#  902|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_VERSION_01);
#  903|->         rc = slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&multisupplierdesc);
#  904|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_START_FN, (void *)multisupplier_start);
#  905|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_CLOSE_FN, (void *)multisupplier_stop);

Error: CLANG_WARNING: [#def121]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:904:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  902|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_VERSION_01);
#  903|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&multisupplierdesc);
#  904|->         rc = slapi_pblock_set(pb, SLAPI_PLUGIN_START_FN, (void *)multisupplier_start);
#  905|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_CLOSE_FN, (void *)multisupplier_stop);
#  906|   

Error: CLANG_WARNING: [#def122]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:905:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  903|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *)&multisupplierdesc);
#  904|           rc = slapi_pblock_set(pb, SLAPI_PLUGIN_START_FN, (void *)multisupplier_start);
#  905|->         rc = slapi_pblock_set(pb, SLAPI_PLUGIN_CLOSE_FN, (void *)multisupplier_stop);
#  906|   
#  907|           /* Register the plugin interfaces we implement */

Error: CLANG_WARNING: [#def123]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:909:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  907|           /* Register the plugin interfaces we implement */
#  908|           /* preop acquires csn generator handle */
#  909|->         rc = slapi_register_plugin("preoperation", 1 /* Enabled */,
#  910|                                      "multisupplier_preop_init",
#  911|                                      multisupplier_preop_init,

Error: CLANG_WARNING: [#def124]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:915:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  913|                                      NULL, identity);
#  914|           /* Register the main mmr backend plugins */
#  915|->         rc = slapi_register_plugin("mmr", 1 /* Enabled */,
#  916|                                      "multisupplier_mmr_init",
#  917|                                      multisupplier_mmr_init,

Error: CLANG_WARNING: [#def125]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:923:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  921|            * -- should be done before transaction */
#  922|           /* if betxn is off, urp is called at bepreop. */
#  923|->         rc = slapi_register_plugin("bepreoperation", 1 /* Enabled */,
#  924|                                      "multisupplier_bepreop_init",
#  925|                                      multisupplier_bepreop_init,

Error: CLANG_WARNING: [#def126]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:930:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  928|           /* is_betxn: be post ops (add/del/mod/mdn) are combined into betxn ops.
#  929|            * no betxn: be post ops are regsitered at bepostoperation. */
#  930|->         rc = slapi_register_plugin("betxnpostoperation", 1 /* Enabled */,
#  931|                                      "multisupplier_betxnpostop_init",
#  932|                                      multisupplier_betxnpostop_init,

Error: CLANG_WARNING: [#def127]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:937:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  935|           if (repl5_is_betxn) {
#  936|               /* if betxn is on, urp is called at betxnpreop. */
#  937|->             rc = slapi_register_plugin("betxnpreoperation", 1 /* Enabled */,
#  938|                                          "multisupplier_betxnpreop_init",
#  939|                                          multisupplier_betxnpreop_init,

Error: CLANG_WARNING: [#def128]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:943:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  941|                                          NULL, identity);
#  942|               /* bepostop configures open and backup only (no betxn) */
#  943|->             rc = slapi_register_plugin("bepostoperation", 1 /* Enabled */,
#  944|                                          "multisupplier_betxn_bepostop_init",
#  945|                                          multisupplier_betxn_bepostop_init,

Error: CLANG_WARNING: [#def129]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:951:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  949|               /* bepostop configures open and backup only as well as add/del/
#  950|                * mod/mdn bepost ops */
#  951|->             rc = slapi_register_plugin("bepostoperation", 1 /* Enabled */,
#  952|                                          "multisupplier_bepostop_init",
#  953|                                          multisupplier_bepostop_init,

Error: CLANG_WARNING: [#def130]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:959:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  957|           /* process_postop (core op of post op) frees CSN,
#  958|            * which should wait until betxn is done. */
#  959|->         rc = slapi_register_plugin("postoperation", 1 /* Enabled */,
#  960|                                      "multisupplier_postop_init",
#  961|                                      multisupplier_postop_init,

Error: CLANG_WARNING: [#def131]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:964:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  962|                                      "Multisupplier replication postoperation plugin",
#  963|                                      NULL, identity);
#  964|->         rc = slapi_register_plugin("internalpreoperation", 1 /* Enabled */,
#  965|                                      "multisupplier_internalpreop_init",
#  966|                                      multisupplier_internalpreop_init,

Error: CLANG_WARNING: [#def132]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:969:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  967|                                      "Multisupplier replication internal preoperation plugin",
#  968|                                      NULL, identity);
#  969|->         rc = slapi_register_plugin("internalpostoperation", 1 /* Enabled */,
#  970|                                      "multisupplier_internalpostop_init",
#  971|                                      multisupplier_internalpostop_init,

Error: CLANG_WARNING: [#def133]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:974:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  972|                                      "Multisupplier replication internal postoperation plugin",
#  973|                                      NULL, identity);
#  974|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_start_extop_init", multisupplier_start_extop_init, "Multisupplier replication start extended operation plugin", NULL, identity);
#  975|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_end_extop_init", multisupplier_end_extop_init, "Multisupplier replication end extended operation plugin", NULL, identity);
#  976|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_total_extop_init", multisupplier_total_extop_init, "Multisupplier replication total update extended operation plugin", NULL, identity);

Error: CLANG_WARNING: [#def134]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:975:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  973|                                      NULL, identity);
#  974|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_start_extop_init", multisupplier_start_extop_init, "Multisupplier replication start extended operation plugin", NULL, identity);
#  975|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_end_extop_init", multisupplier_end_extop_init, "Multisupplier replication end extended operation plugin", NULL, identity);
#  976|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_total_extop_init", multisupplier_total_extop_init, "Multisupplier replication total update extended operation plugin", NULL, identity);
#  977|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_response_extop_init", multisupplier_response_extop_init, "Multisupplier replication extended response plugin", NULL, identity);

Error: CLANG_WARNING: [#def135]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:976:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  974|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_start_extop_init", multisupplier_start_extop_init, "Multisupplier replication start extended operation plugin", NULL, identity);
#  975|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_end_extop_init", multisupplier_end_extop_init, "Multisupplier replication end extended operation plugin", NULL, identity);
#  976|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_total_extop_init", multisupplier_total_extop_init, "Multisupplier replication total update extended operation plugin", NULL, identity);
#  977|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_response_extop_init", multisupplier_response_extop_init, "Multisupplier replication extended response plugin", NULL, identity);
#  978|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_extop_init", multisupplier_cleanruv_extop_init, "Multisupplier replication cleanruv extended operation plugin", NULL, identity);

Error: CLANG_WARNING: [#def136]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:977:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  975|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_end_extop_init", multisupplier_end_extop_init, "Multisupplier replication end extended operation plugin", NULL, identity);
#  976|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_total_extop_init", multisupplier_total_extop_init, "Multisupplier replication total update extended operation plugin", NULL, identity);
#  977|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_response_extop_init", multisupplier_response_extop_init, "Multisupplier replication extended response plugin", NULL, identity);
#  978|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_extop_init", multisupplier_cleanruv_extop_init, "Multisupplier replication cleanruv extended operation plugin", NULL, identity);
#  979|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_abort_extop_init", multisupplier_cleanruv_abort_extop_init, "Multisupplier replication cleanruv abort extended operation plugin", NULL, identity);

Error: CLANG_WARNING: [#def137]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:978:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  976|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_total_extop_init", multisupplier_total_extop_init, "Multisupplier replication total update extended operation plugin", NULL, identity);
#  977|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_response_extop_init", multisupplier_response_extop_init, "Multisupplier replication extended response plugin", NULL, identity);
#  978|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_extop_init", multisupplier_cleanruv_extop_init, "Multisupplier replication cleanruv extended operation plugin", NULL, identity);
#  979|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_abort_extop_init", multisupplier_cleanruv_abort_extop_init, "Multisupplier replication cleanruv abort extended operation plugin", NULL, identity);
#  980|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_maxcsn_extop_init", multisupplier_cleanruv_maxcsn_extop_init, "Multisupplier replication cleanruv maxcsn extended operation plugin", NULL, identity);

Error: CLANG_WARNING: [#def138]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:979:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  977|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_response_extop_init", multisupplier_response_extop_init, "Multisupplier replication extended response plugin", NULL, identity);
#  978|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_extop_init", multisupplier_cleanruv_extop_init, "Multisupplier replication cleanruv extended operation plugin", NULL, identity);
#  979|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_abort_extop_init", multisupplier_cleanruv_abort_extop_init, "Multisupplier replication cleanruv abort extended operation plugin", NULL, identity);
#  980|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_maxcsn_extop_init", multisupplier_cleanruv_maxcsn_extop_init, "Multisupplier replication cleanruv maxcsn extended operation plugin", NULL, identity);
#  981|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_status_extop_init", multisupplier_cleanruv_status_extop_init, "Multisupplier replication cleanruv status extended operation plugin", NULL, identity);

Error: CLANG_WARNING: [#def139]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_init.c:980:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  978|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_extop_init", multisupplier_cleanruv_extop_init, "Multisupplier replication cleanruv extended operation plugin", NULL, identity);
#  979|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_abort_extop_init", multisupplier_cleanruv_abort_extop_init, "Multisupplier replication cleanruv abort extended operation plugin", NULL, identity);
#  980|->         rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_maxcsn_extop_init", multisupplier_cleanruv_maxcsn_extop_init, "Multisupplier replication cleanruv maxcsn extended operation plugin", NULL, identity);
#  981|           rc = slapi_register_plugin("extendedop", 1 /* Enabled */, "multisupplier_cleanruv_status_extop_init", multisupplier_cleanruv_status_extop_init, "Multisupplier replication cleanruv status extended operation plugin", NULL, identity);
#  982|           if (0 == rc) {

Error: CPPCHECK_WARNING: [#def140]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_plugins.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def141]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_protocol_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def142]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_protocol_util.c:93:9: warning[deadcode.DeadStores]: Value stored to 'return_value' is never read
#   91|                         "acquire_replica - %s: Remote replica already acquired\n",
#   92|                         agmt_get_long_name(prp->agmt));
#   93|->         return_value = ACQUIRE_FATAL_ERROR;
#   94|           return ACQUIRE_SUCCESS;
#   95|       }

Error: CLANG_WARNING: [#def143]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_protocol_util.c:144:13: warning[deadcode.DeadStores]: Value stored to 'return_value' is never read
#  142|           crc = conn_replica_supports_ds5_repl(conn);
#  143|           if (CONN_DOES_NOT_SUPPORT_DS5_REPL == crc) {
#  144|->             return_value = ACQUIRE_FATAL_ERROR;
#  145|           } else if (CONN_NOT_CONNECTED == crc || CONN_OPERATION_FAILED == crc) {
#  146|               /* We don't know anything about the remote replica. Try again later. */

Error: CLANG_WARNING: [#def144]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_protocol_util.c:227:17: warning[deadcode.DeadStores]: Value stored to 'return_value' is never read
#  225|   
#  226|                   /* Couldn't send the extended operation */
#  227|->                 return_value = ACQUIRE_TRANSIENT_ERROR; /* XXX right return value? */
#  228|                   slapi_log_err(SLAPI_LOG_WARNING, repl_plugin_name, "acquire_replica - "
#  229|                                                                      "%s: Unable to send a startReplication "

Error: CPPCHECK_WARNING: [#def145]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def146]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c: scope_hint: In function 'replica_config_modify'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c:287:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  285|       PR_ASSERT(mtnode_ext);
#  286|   
#  287|->     if (mtnode_ext->replica == NULL) {
#  288|           PR_snprintf(errortext, SLAPI_DSE_RETURNTEXT_SIZE, "Replica does not exist for %s", replica_root);
#  289|           slapi_log_err(SLAPI_LOG_ERR, repl_plugin_name, "replica_config_modify - %s\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c: scope_hint: In function 'replica_config_post_modify'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c:619:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  617|       PR_ASSERT(mtnode_ext);
#  618|   
#  619|->     if (mtnode_ext->replica == NULL) {
#  620|           PR_snprintf(errortext, SLAPI_DSE_RETURNTEXT_SIZE,
#  621|                       "Replica does not exist for %s", replica_root);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c: scope_hint: In function 'replica_config_delete'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c:713:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  711|       PR_ASSERT(mtnode_ext);
#  712|   
#  713|->     if (mtnode_ext->replica) {
#  714|           /* remove object from the hash */
#  715|           Object *r_obj = mtnode_ext->replica;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c: scope_hint: In function 'replica_config_search'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_replica_config.c:845:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  843|       PR_ASSERT(mtnode_ext);
#  844|   
#  845|->     if (mtnode_ext->replica) {
#  846|           Replica *replica = (Replica *)object_get_data(mtnode_ext->replica);
#  847|           if (cldb_is_open(replica)) {

Error: CPPCHECK_WARNING: [#def151]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_ruv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def152]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_ruv.c:1021: warning[nullPointer]: Possible null pointer dereference: bv
# 1019|                       ruvelem->csn == NULL ? "" : csn_as_string(ruvelem->csn, PR_FALSE, csnStr2));
# 1020|       } else {
# 1021|->         bv->bv_val = slapi_ch_smprintf(fmtstr,
# 1022|                                          prefix_ruvcsn, ruvelem->rid,
# 1023|                                          ruvelem->replica_purl == NULL ? "" : " ",

Error: CPPCHECK_WARNING (CWE-476): [#def153]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_ruv.c:1029: warning[nullPointer]: Possible null pointer dereference: bv
# 1027|                                          ruvelem->csn == NULL ? "" : " ",
# 1028|                                          ruvelem->csn == NULL ? "" : csn_as_string(ruvelem->csn, PR_FALSE, csnStr2));
# 1029|->         bv->bv_len = strlen(bv->bv_val);
# 1030|       }
# 1031|   }

Error: CPPCHECK_WARNING: [#def154]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_tot_protocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def155]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_tot_protocol.c:464:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  462|           goto done;
#  463|       }
#  464|->     rc = slapi_back_get_info(be, BACK_INFO_IS_ENTRYRDN, (void **)&is_entryrdn);
#  465|       if (is_entryrdn) {
#  466|           /*

Error: CPPCHECK_WARNING: [#def156]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl5_updatedn_list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def157]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl_cleanallruv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def158]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl_controls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def159]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/repl_extop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def160]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/replutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def161]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/urp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def162]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def163]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_connection.c:910:11: warning[deadcode.DeadStores]: Value stored to 'dn' during its initialization is never read
#  908|       Slapi_Entry *e = NULL;
#  909|       LDAPMessage *lm = NULL;
#  910|->     char *dn = "";
#  911|   
#  912|       slapi_log_err(SLAPI_LOG_TRACE, windows_repl_plugin_name, "=> windows_conn_get_search_result\n");

Error: CPPCHECK_WARNING: [#def164]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_inc_protocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def165]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_private.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def166]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_private.c:1236:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1234|   
# 1235|       if (rc == 0) {
# 1236|->         rc = slapi_entry_attr_find(entry, type_nsds7DirsyncCookie, &attr);
# 1237|           if (attr) {
# 1238|               struct berval **vals;

Error: CPPCHECK_WARNING: [#def167]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_protocol_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def168]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_protocol_util.c:5690:25: warning[deadcode.DeadStores]: Value stored to 'cres' is never read
# 5688|                            * If we stop supporting 2008R2, this windows_search_entry_ext call can be removed.
# 5689|                            */
# 5690|->                         cres = windows_search_entry_ext(prp->conn, (char *)searchbase,
# 5691|                                                           filter, &found_entry, NULL, LDAP_SCOPE_BASE);
# 5692|                           if (found_entry) {

Error: CPPCHECK_WARNING: [#def169]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/replication/windows_tot_protocol.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def170]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/retrocl/retrocl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def171]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/retrocl/retrocl_cn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def172]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/retrocl/retrocl_po.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def173]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/retrocl/retrocl_trim.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def174]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rever/pbe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def175]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/roles/roles_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def176]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-121): [#def177]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c: scope_hint: In function 'strToLower'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:765:16: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.h:21: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:16: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:765:16: note: write of 1 byte to beyond the end of 'day'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:765:16: note: valid subscripts for 'day' are '[0]' to '[3]'
#  763|   {
#  764|       for (size_t i = 0; str && i < strlen(str); i++) {
#  765|->         str[i] = tolower(str[i]);
#  766|       }
#  767|       return str;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def178]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:765:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:765:29: note: read of 1 byte from after the end of 'day'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/rootdn_access/rootdn_access.c:765:29: note: valid subscripts for 'day' are '[0]' to '[3]'
#                                                 └───────────────────────┘
#                                                             ^
#  763|   {
#  764|       for (size_t i = 0; str && i < strlen(str); i++) {
#  765|->         str[i] = tolower(str[i]);
#  766|       }
#  767|       return str;

Error: CPPCHECK_WARNING: [#def179]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/statechange/statechange.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def180]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def181]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_persist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def182]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_refresh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def183]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_refresh.c:342:46: warning[core.NullDereference]: Access to field 'cookie_change_info' results in a dereference of a null pointer (loaded from variable 'client_cookie')
#  340|        */
#  341|       PR_ASSERT(server_cookie->cookie_change_info >= client_cookie->cookie_change_info);
#  342|->     if (server_cookie->cookie_change_info == client_cookie->cookie_change_info) {
#  343|           return rc;
#  344|       }

Error: CPPCHECK_WARNING: [#def184]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_util.c: scope_hint: In function 'sync_result_msg'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_util.c:336:15: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cookie'
#  334|       LDAPControl **ctrl = (LDAPControl **)slapi_ch_calloc(2, sizeof(LDAPControl *));
#  335|   
#  336|->     if (cookie->openldap_compat) {
#  337|           sync_create_sync_done_control(&ctrl[0], 1, cookiestr);
#  338|       } else {

Error: CLANG_WARNING: [#def186]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/sync/sync_util.c:682:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#  680|   
#  681|       /* get ready to parse. */
#  682|->     p = q = cookie;
#  683|   
#  684|       sc = (Sync_Cookie *)slapi_ch_calloc(1, sizeof(Sync_Cookie));

Error: CPPCHECK_WARNING: [#def187]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/cis.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def188]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/deliverymethod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def189]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/guide.c:325:9: warning[deadcode.DeadStores]: Although the value stored to 'start' is used in the enclosing expression, the value is never actually read from 'start'
#  323|       /* Reset start and end to validate the subset.  We're
#  324|        * guaranteed to have a character after sharp. */
#  325|->     p = start = sharp + 1;
#  326|       end = &(val->bv_val[val->bv_len - 1]);
#  327|   

Error: CLANG_WARNING: [#def190]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/guide.c:494:43: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p')
#  492|            * character is a BAR and that there is at
#  493|            * least another character after the BAR. */
#  494|->         if ((p <= end) && ((p == end) || (*p != '|'))) {
#  495|               rc = 1;
#  496|               goto exit;

Error: CPPCHECK_WARNING: [#def191]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/inchain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def192]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/csngen.h:20: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slap.h:122: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/syntax.h:19: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/inchain.c:20: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/inchain.c: scope_hint: In function 'inchain_values2keys'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/inchain.c:280:49: warning[-Wformat=]: format '%s' expects a matching 'char *' argument
#  280 |         slapi_log_err(SLAPI_LOG_ERR, "inchain", "Requires distinguishedName syntax. AttributeDescription %s is not distinguishedName\n");
#      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slapi-private.h:43:80: note: in definition of macro 'slapi_log_err'
#   43 | #define slapi_log_err(level, subsystem, ...) slapi_log_error(level, subsystem, __VA_ARGS__)
#      |                                                                                ^~~~~~~~~~~
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/inchain.c:280:57: note: format string is defined here
#  280 |         slapi_log_err(SLAPI_LOG_ERR, "inchain", "Requires distinguishedName syntax. AttributeDescription %s is not distinguishedName\n");
#      |                                                        ~^
#      |                                                         |
#      |                                                         char *
#  278|   
#  279|       if (! slapi_attr_is_dn_syntax_type(mrTYPE)) {
#  280|->         slapi_log_err(SLAPI_LOG_ERR, "inchain", "Requires distinguishedName syntax. AttributeDescription %s is not distinguishedName\n");
#  281|           result = (Slapi_Value **)slapi_ch_calloc(1, sizeof(Slapi_Value *));
#  282|           *ivals = result;

Error: CLANG_WARNING: [#def193]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/inchain.c:354:39: warning[core.NullDereference]: Access to field 'va' results in a dereference of a null pointer (loaded from variable 'groupdn_vals')
#  352|           char value[1000];
#  353|   
#  354|->         result[idx] = slapi_value_dup(groupdn_vals->va[idx]);
#  355|           strncpy(value, result[idx]->bv.bv_val, result[idx]->bv.bv_len);
#  356|           value[result[idx]->bv.bv_len] = '\0';

Error: CLANG_WARNING: [#def194]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/nameoptuid.c:255:14: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  253|            * BitString, just validate the entire value as
#  254|            * a distinguishedName. */
#  255|->         if ((rc = bitstring_validate_internal(p + 1, end)) != 0) {
#  256|               rc = distinguishedname_validate(start, end);
#  257|           } else {

Error: CPPCHECK_WARNING: [#def195]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def196]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/string.c:469:9: warning[deadcode.DeadStores]: Value stored to 'n' is never read
#  467|           nbvals = (Slapi_Value **)slapi_ch_calloc((numbvals + 1), sizeof(Slapi_Value *));
#  468|   
#  469|->         n = 0;
#  470|           nbvlp = nbvals;
#  471|           for (bvlp = bvals; bvlp && *bvlp; bvlp++) {

Error: CPPCHECK_WARNING: [#def197]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/validate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def198]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/value.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def199]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/value.c:328:13: warning[deadcode.DeadStores]: Value stored to 'buffer_space' is never read
#  326|           }
#  327|           if (!free_v2) {
#  328|->             buffer_space -= v2->bv_len + 1;
#  329|               buffer_offset += v2->bv_len + 1;
#  330|           }

Error: CLANG_WARNING: [#def200]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/syntaxes/value.c:329:13: warning[deadcode.DeadStores]: Value stored to 'buffer_offset' is never read
#  327|           if (!free_v2) {
#  328|               buffer_space -= v2->bv_len + 1;
#  329|->             buffer_offset += v2->bv_len + 1;
#  330|           }
#  331|       }

Error: CPPCHECK_WARNING: [#def201]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/uiduniq/7bit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def202]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/uiduniq/uid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def203]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/usn/usn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def204]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/views/views.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/views/views.c: scope_hint: In function 'views_update_views_cache.part.0'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/views/views.c:1370:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'theView'
# 1368|   
# 1369|                   /* the parent of this node needs to know about its children */
# 1370|->                 if (theView->pParent)
# 1371|                       views_cache_discover_children((viewEntry *)theView->pParent);
# 1372|                   /* each child of the deleted node will need to discover a new parent */

Error: CPPCHECK_WARNING: [#def206]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/plugins/whoami/whoami.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def207]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/abandon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def208]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/add.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def209]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/agtmmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def210]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/apibroker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def211]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/attr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def212]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/attrlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def213]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/attrsyntax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def214]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/auditlog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def215]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def216]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ancestorid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def217]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/archive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def218]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def219]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/cache.c:536:20: warning[-Warray-bounds=]: array subscript 0 is outside array bounds of 'char[0:]'
#  536 |         *(char*)23 = 1;   /* abort() somehow corrupt gdb stack backtrace so lets generate a SIGSEGV */
#      |         ~~~~~~~~~~~^~~
cc1: note: source object is likely at address zero
#  534|           slapi_log_err(SLAPI_LOG_FATAL, "dbgec_test_if_entry_pointer_is_valid", "cache.c[%d]: Wrong entry address: %p Previous entry address is: %p hash table slot is %d\n", line, e, prev, slot);
#  535|           slapi_log_backtrace(SLAPI_LOG_FATAL);
#  536|->         *(char*)23 = 1;   /* abort() somehow corrupt gdb stack backtrace so lets generate a SIGSEGV */
#  537|           abort();
#  538|       }

Error: COMPILER_WARNING: [#def220]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/cache.c:536:20: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
cc1: note: destination object is likely at address zero
#  534|           slapi_log_err(SLAPI_LOG_FATAL, "dbgec_test_if_entry_pointer_is_valid", "cache.c[%d]: Wrong entry address: %p Previous entry address is: %p hash table slot is %d\n", line, e, prev, slot);
#  535|           slapi_log_backtrace(SLAPI_LOG_FATAL);
#  536|->         *(char*)23 = 1;   /* abort() somehow corrupt gdb stack backtrace so lets generate a SIGSEGV */
#  537|           abort();
#  538|       }

Error: CPPCHECK_WARNING: [#def221]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def222]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def223]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def224]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c: scope_hint: In function 'bdb_upgradedn_producer'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c:1731:24: warning[-Wanalyzer-file-leak]: leak of FILE '*job.upgradefd'
# 1729|                   if (is_dryrun) {
# 1730|                       job->upgradefd = fopen(path, "w");
# 1731|->                     if (NULL == job->upgradefd) {
# 1732|                           if (job->task) {
# 1733|                               slapi_task_log_notice(job->task,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c:1731:24: warning[-Wanalyzer-malloc-leak]: leak of '*job.upgradefd'
# 1729|                   if (is_dryrun) {
# 1730|                       job->upgradefd = fopen(path, "w");
# 1731|->                     if (NULL == job->upgradefd) {
# 1732|                           if (job->task) {
# 1733|                               slapi_task_log_notice(job->task,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def226]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c:1743:24: warning[-Wanalyzer-file-leak]: leak of FILE '*job.upgradefd'
# 1741|                   } else {
# 1742|                       job->upgradefd = fopen(path, "r");
# 1743|->                     if (NULL == job->upgradefd) {
# 1744|                           if (job->task) {
# 1745|                               slapi_task_log_notice(job->task,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_import_threads.c:1743:24: warning[-Wanalyzer-malloc-leak]: leak of '*job.upgradefd'
# 1741|                   } else {
# 1742|                       job->upgradefd = fopen(path, "r");
# 1743|->                     if (NULL == job->upgradefd) {
# 1744|                           if (job->task) {
# 1745|                               slapi_task_log_notice(job->task,

Error: CPPCHECK_WARNING: [#def228]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_instance_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def229]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def230]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def231]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:425: error[ctunullpointer]: Null pointer dereference: include
#  423|       slapi_sdn_init(&sdn);
#  424|       /* for each subtree spec... */
#  425|->     for (i = 0; include[i]; i++) {
#  426|           IDList *idl = NULL;
#  427|           const char *suffix = slapi_sdn_get_ndn(slapi_be_getsuffix(be, 0));

Error: CPPCHECK_WARNING (CWE-476): [#def232]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:425: warning[nullPointer]: Possible null pointer dereference: include
#  423|       slapi_sdn_init(&sdn);
#  424|       /* for each subtree spec... */
#  425|->     for (i = 0; include[i]; i++) {
#  426|           IDList *idl = NULL;
#  427|           const char *suffix = slapi_sdn_get_ndn(slapi_be_getsuffix(be, 0));

Error: CLANG_WARNING: [#def233]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:648:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  646|   
#  647|           sprintf(idstr, "# entry-id: %lu\n", (u_long)expargs->ep->ep_id);
#  648|->         rc = write(expargs->fd, idstr, strlen(idstr));
#  649|           PR_ASSERT(rc > 0);
#  650|       }

Error: CLANG_WARNING: [#def234]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:651:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  649|           PR_ASSERT(rc > 0);
#  650|       }
#  651|->     rc = write(expargs->fd, data.data, len);
#  652|       PR_ASSERT(rc > 0);
#  653|       rc = write(expargs->fd, "\n", 1);

Error: CLANG_WARNING: [#def235]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:653:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  651|       rc = write(expargs->fd, data.data, len);
#  652|       PR_ASSERT(rc > 0);
#  653|->     rc = write(expargs->fd, "\n", 1);
#  654|       PR_ASSERT(rc > 0);
#  655|       rc = 0;

Error: CLANG_WARNING: [#def236]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:973:13: warning[deadcode.DeadStores]: Value stored to 'ok_index' is never read
#  971|                                 "bdb_db2ldif", "Attempting direct unindexed export instead.\n");
#  972|               }
#  973|->             ok_index = 0;
#  974|               idl = NULL;
#  975|           } else if (ALLIDS(idl)) {

Error: CLANG_WARNING: [#def237]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:978:13: warning[deadcode.DeadStores]: Value stored to 'ok_index' is never read
#  976|               /* allids list is no help at all -- revert to trawling
#  977|                * the whole list. */
#  978|->             ok_index = 0;
#  979|               idl_free(&idl);
#  980|           }

Error: CLANG_WARNING: [#def238]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:996:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  994|   
#  995|           sprintf(vstr, "version: %d\n\n", myversion);
#  996|->         rc = write(fd, vstr, strlen(vstr));
#  997|           PR_ASSERT(rc > 0);
#  998|           rc = 0;

Error: CLANG_WARNING: [#def239]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:998:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  996|           rc = write(fd, vstr, strlen(vstr));
#  997|           PR_ASSERT(rc > 0);
#  998|->         rc = 0;
#  999|       }
# 1000|   

Error: CLANG_WARNING: [#def240]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:1076:21: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1074|                       eargs.cnt = &cnt;
# 1075|                       eargs.lastcnt = &lastcnt;
# 1076|->                     rc = bdb_export_one_entry(li, inst, &eargs);
# 1077|                       backentry_free(&pending_ruv);
# 1078|                   }

Error: CLANG_WARNING: [#def241]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:1134:25: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1132|                       if (suffix_written) {
# 1133|                           /* this must be the RUV, just continue and write it */
# 1134|->                         rc = 0;
# 1135|                       } else if (0 == strcasecmp(rdn, RUVRDN)) {
# 1136|                           /* this is the RUV and the suffix is not yet written

Error: CLANG_WARNING: [#def242]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:1140:25: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1138|                            */
# 1139|                           skip_ruv = 1;
# 1140|->                         rc = 0;
# 1141|                       } else {
# 1142|                           /* this has to be the suffix */

Error: CLANG_WARNING: [#def243]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:1144:25: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1142|                           /* this has to be the suffix */
# 1143|                           suffix_written = 1;
# 1144|->                         rc = 0;
# 1145|                       }
# 1146|                   } else {

Error: CLANG_WARNING: [#def244]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:1272:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1270|           eargs.cnt = &cnt;
# 1271|           eargs.lastcnt = &lastcnt;
# 1272|->         rc = bdb_export_one_entry(li, inst, &eargs);
# 1273|           backentry_free(&ep);
# 1274|       }

Error: CLANG_WARNING: [#def245]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_ldif2db.c:1724:25: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1722|                       slapi_sdn_init_dn_byref(&sufdn, rdn);
# 1723|                       if (slapi_be_issuffix(be, &sufdn)) {
# 1724|->                         rc = 0;             /* is a suffix */
# 1725|                           suffixid = temp_id; /* this is the ID of a suffix entry */
# 1726|                       } else {

Error: CPPCHECK_WARNING: [#def246]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def247]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_misc.c:159:11: warning[deadcode.DeadStores]: Value stored to 'msg' during its initialization is never read
#  157|       int_fast32_t import_percentage = 0;
#  158|       util_cachesize_result issane;
#  159|->     char *msg = "";       /* This will be set by one of the two cache sizing paths below. */
#  160|       char size_to_str[32]; /* big enough to hold %ld */
#  161|   

Error: CPPCHECK_WARNING: [#def248]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_monitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def249]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_perfctrs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def250]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_upgrade.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def251]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def252]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def253]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def254]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_import.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def255]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_import_threads.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def256]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_instance.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def257]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_layer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def258]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_layer.c:1833:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1831|               bulkdata->v.ulen = bulkdata->v.size = newsz;
# 1832|               dbg_log(__FILE__,__LINE__,__FUNCTION__, DBGMDB_LEVEL_BULKOP, "dbmdb_fill_bulkop_records buffer too small: current size is %ld bytes while %ld are needed.", oldsz, newsz);
# 1833|->             rc = MDB_BULKOP_CURSOR_GET(mcursor, &mkey, &mdata, MDB_PREV);
# 1834|               return DBI_RC_BUFFER_SMALL;
# 1835|           }

Error: CLANG_WARNING: [#def259]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_layer.c:2389:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 2387|       if (rc == 0 && dbmdb_data->mv_size == rce->data.mv_size) {
# 2388|           /* Should always be the case */
# 2389|->         memcpy(dbmdb_data->mv_data , rce->data.mv_data, dbmdb_data->mv_size);
# 2390|       }
# 2391|   

Error: CPPCHECK_WARNING: [#def260]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_ldif2db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def261]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_monitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def262]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-mdb/mdb_txn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def263]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/dbimpl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def264]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/dblayer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def265]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/filterindex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def266]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/findentry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def267]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/id2entry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def268]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/id2entry.c:42:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#   40|                     (u_long)e->ep_id, backentry_get_ndn(e));
#   41|   
#   42|->     if ((rc = dblayer_get_id2entry(be, &db)) != 0) {
#   43|           slapi_log_err(SLAPI_LOG_ERR, "id2entry_add_ext",
#   44|                         "Could not open/create id2entry\n");

Error: CLANG_WARNING: [#def269]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/id2entry.c:227:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  225|                     (u_long)e->ep_id, backentry_get_ndn(e));
#  226|   
#  227|->     if ((rc = dblayer_get_id2entry(be, &db)) != 0) {
#  228|           slapi_log_err(SLAPI_LOG_ERR, "id2entry_delete",
#  229|                         "Could not open/create id2entry\n");

Error: CPPCHECK_WARNING: [#def270]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/idl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def271]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/idl_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def272]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/idl_new.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def273]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/idl_new.c:430:18: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
#  428|               bck_info.key = "0";
#  429|   
#  430|->             if ((rc = slapi_back_get_info(be, BACK_INFO_INDEX_KEY, (void **)&bck_info))) {
#  431|                   slapi_log_err(SLAPI_LOG_WARNING, "idl_new_range_fetch", "Total update: fail to retrieve suffix entryID, continue assuming it is the first entry\n");
#  432|               }

Error: CPPCHECK_WARNING: [#def274]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/idl_set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def275]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/index.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def276]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/index.c:448:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  446|       } else { /* NOT a tombstone or delete a tombstone */
#  447|           /* add each attribute to the indexes */
#  448|->         rc = 0, result = 0;
#  449|           int entryrdn_done = 0;
#  450|           for (rc = slapi_entry_first_attr(e->ep_entry, &attr); rc == 0;

Error: CLANG_WARNING: [#def277]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/index.c:677:17: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  675|               if ((mods[i]->mod_bvalues == NULL) ||
#  676|                   (mods[i]->mod_bvalues[0] == NULL)) {
#  677|->                 rc = 0;
#  678|                   flags = BE_INDEX_DEL;
#  679|   

Error: CLANG_WARNING: [#def278]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/index.c:1740:21: warning[core.NullDereference]: Access to field 'b_nmax' results in a dereference of a null pointer (loaded from variable 'idl')
# 1738|                       idl_free(&tmp);
# 1739|                   }
# 1740|->                 if (ALLIDS(idl)) {
# 1741|                       slapi_log_err(SLAPI_LOG_TRACE,
# 1742|                                     "index_range_read_ext", "Hit an allids value\n");

Error: CLANG_WARNING: [#def279]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/index.c:1860:13: warning[deadcode.DeadStores]: Value stored to 'db_txn' is never read
# 1858|           dblayer_value_protect_data(be, &key);                      /* But the prefix buffer should not be freed */
# 1859|           if (NULL != txn) {
# 1860|->             db_txn = txn->back_txn_txn;
# 1861|           }
# 1862|   

Error: CPPCHECK_WARNING: [#def280]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_add.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def281]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_add.c:1261:5: warning[deadcode.DeadStores]: Value stored to 'noabort' is never read
# 1259|           goto error_return;
# 1260|       }
# 1261|->     noabort = 1;
# 1262|   
# 1263|       rc = 0;

Error: CPPCHECK_WARNING: [#def282]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_attr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def283]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def284]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_attrcrypt_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def285]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def286]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_delete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def287]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_delete.c:353:25: warning[deadcode.DeadStores]: Value stored to 'ep_id' is never read
#  351|                       done_with_pblock_entry(pb,SLAPI_DELETE_EXISTING_ENTRY); /* Could be through this multiple times */
#  352|                       if (cache_is_in_cache(&inst->inst_cache, e)) {
#  353|->                         ep_id = e->ep_id; /* Otherwise, e might have been freed. */
#  354|                           CACHE_REMOVE(&inst->inst_cache, e);
#  355|                       }

Error: CLANG_WARNING: [#def288]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_delete.c:471:63: warning[core.NullDereference]: Access to field 'o_csngen_handler' results in a dereference of a null pointer (loaded from variable 'operation')
#  469|               opcsn = operation_get_csn (operation);
#  470|               if (!delete_tombstone_entry) {
#  471|->                 if ((opcsn == NULL) && !is_fixup_operation && operation->o_csngen_handler) {
#  472|                       /*
#  473|                        * Current op is a user request. Opcsn will be assigned

Error: CLANG_WARNING: [#def289]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_delete.c:1538:5: warning[deadcode.DeadStores]: Value stored to 'myrc' is never read
# 1536|                     conn_id, op_id, parent_modify_c.old_entry, parent_modify_c.new_entry,
# 1537|                     inst ? cache_is_in_cache(&inst->inst_cache, parent_modify_c.new_entry):-1);
# 1538|->     myrc = modify_term(&parent_modify_c, be);
# 1539|       if (free_delete_existing_entry) {
# 1540|           done_with_pblock_entry(pb, SLAPI_DELETE_EXISTING_ENTRY);

Error: CPPCHECK_WARNING: [#def290]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def291]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c:1090:9: warning[deadcode.DeadStores]: Value stored to 'workid' is never read
# 1088|   
# 1089|           /* Iterate over the duplicates to get the direct child's ID */
# 1090|->         workid = 0;
# 1091|           if (maybesuffix) {
# 1092|               /* it is a suffix, indeed.  done. */

Error: CPPCHECK_WARNING: [#def292]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_index_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def293]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def294]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c:1024:5: warning[deadcode.DeadStores]: Value stored to 'rval' is never read
# 1022|   
# 1023|       parse_ldbm_instance_entry(entryBefore, &instance_name);
# 1024|->     rval = ldbm_instance_generate(li, instance_name, &be);
# 1025|   
# 1026|       inst = ldbm_instance_find_by_name(li, instance_name);

Error: CPPCHECK_WARNING: [#def295]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def296]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c:1535:5: warning[deadcode.DeadStores]: Value stored to 'myrc' is never read
# 1533|                     "conn=%" PRIu64 " op=%d modify_term: old_entry=0x%p, new_entry=0x%p\n",
# 1534|                     conn_id, op_id, newparent_modify_context.old_entry, newparent_modify_context.new_entry);
# 1535|->     myrc = modify_term(&newparent_modify_context, be);
# 1536|       if (free_modrdn_existing_entry) {
# 1537|           done_with_pblock_entry(pb, SLAPI_MODRDN_EXISTING_ENTRY);

Error: CPPCHECK_WARNING: [#def297]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def298]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldbm_search.c:1813:21: warning[deadcode.DeadStores]: Value stored to 'filter_test' is never read
# 1811|                   /* If any of the ... "logic" above failed, leave the failure in place. */
# 1812|                   if (filter_test == 0) {
# 1813|->                     filter_test = -1;
# 1814|                       if (0 == (sr->sr_flags & SR_FLAG_MUST_APPLY_FILTER_TEST)) {
# 1815|                           /* BYPASS - it's a regular entry, check if it passes the ACL check */

Error: CPPCHECK_WARNING: [#def299]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/ldif2ldbm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def300]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/matchrule.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def301]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def302]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/nextid.c:127:10: warning[deadcode.DeadStores]: Although the value stored to 'return_value' is used in the enclosing expression, the value is never actually read from 'return_value'
#  125|   
#  126|       /*Get a copy of the id2entry database*/
#  127|->     if ((return_value = dblayer_get_id2entry(be, &id2entrydb)) != 0) {
#  128|           id2entrydb = NULL;
#  129|       }

Error: CPPCHECK_WARNING: [#def303]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/parents.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def304]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/seq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def305]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/seq.c:101:10: warning[deadcode.DeadStores]: Although the value stored to 'return_value' is used in the enclosing expression, the value is never actually read from 'return_value'
#   99|       }
#  100|   
#  101|->     if ((return_value = dblayer_get_index_file(be, ai, &db, DBOPEN_CREATE)) != 0) {
#  102|           slapi_log_err(SLAPI_LOG_ERR,
#  103|                         "ldbm_back_seq", "Could not open index file for attribute %s\n",

Error: CPPCHECK_WARNING: [#def306]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def307]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/sort.c:299:9: warning[deadcode.DeadStores]: Value stored to 'next_tag' is never read
#  297|   
#  298|           len = -1; /* reset - not used here */
#  299|->         next_tag = ber_first_element(ber, &len, &inner_last);
#  300|   
#  301|           /* The type is not optional */

Error: CPPCHECK_WARNING: [#def308]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/start.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def309]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/vlv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def310]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/vlv.c:1892:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 1890|       }
# 1891|       /* Now the response info */
# 1892|->     p += sprintf(p, " %d:%d (%d)",
# 1893|                    vlvo->targetPosition,
# 1894|                    vlvo->contentCount,

Error: CPPCHECK_WARNING: [#def311]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/vlv_srch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def312]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/backend_manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def313]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def314]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bulk_import.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def315]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/charray.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def316]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def317]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/configdse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def318]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def319]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/connection.c:341:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  339|               PR_NetAddrFamily(conn->cin_addr) = AF_INET6;
#  340|               /* note: IPv4-mapped IPv6 addr does not work on Windows */
#  341|->             PR_ConvertIPv4AddrToIPv6(((struct sockaddr_in *)&addr)->sin_addr.s_addr, &(conn->cin_addr->ipv6.ip));
#  342|               PRLDAP_SET_PORT(conn->cin_addr, ((struct sockaddr_in *)&addr)->sin_port);
#  343|               str_ip = get_ip_str(&addr, buf_ip);

Error: CLANG_WARNING: [#def320]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/connection.c:396:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  394|               PRLDAP_SET_PORT(conn->cin_destaddr, ((struct sockaddr_in *)&destaddr)->sin_port);
#  395|               /* note: IPv4-mapped IPv6 addr does not work on Windows */
#  396|->             PR_ConvertIPv4AddrToIPv6(((struct sockaddr_in *)&destaddr)->sin_addr.s_addr, &(conn->cin_destaddr->ipv6.ip));
#  397|               str_destip = get_ip_str(&destaddr, buf_destip);
#  398|           } else {

Error: CLANG_WARNING: [#def321]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/connection.c:2021:25: warning[deadcode.DeadStores]: Value stored to 'need_wakeup' is never read
# 2019|                       if (need_wakeup) {
# 2020|                           signal_listner(conn->c_ct_list);
# 2021|->                         need_wakeup = 0;
# 2022|                       }
# 2023|                   }

Error: CPPCHECK_WARNING: [#def322]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/conntable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def323]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def324]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/csn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def325]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/csngen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def326]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/daemon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def327]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/daemon.c:722:21: warning[deadcode.DeadStores]: Value stored to 'start' is never read
#  720|                       previous_mark = 0;
#  721|                       ok_now = 1;
#  722|->                     start = 0;
#  723|                       now = 0;
#  724|                       be_list_count = 0;

Error: CLANG_WARNING: [#def328]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/daemon.c:723:21: warning[deadcode.DeadStores]: Value stored to 'now' is never read
#  721|                       ok_now = 1;
#  722|                       start = 0;
#  723|->                     now = 0;
#  724|                       be_list_count = 0;
#  725|                       break;

Error: CPPCHECK_WARNING: [#def329]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/detach.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def330]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def331]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dn.c:310: warning[nullPointer]: Possible null pointer dereference: L
#  308|                           } /* if ( SEPARATOR( R[1] )) */
#  309|                       }     /* for */
#  310|->                     memmove(value, L, d - L + escape_skips);
#  311|                       *d++ = '"'; /* closing quote */
#  312|                   }               /* if (value_separator == dn) */

Error: CPPCHECK_WARNING: [#def332]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def333]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dse.c:625:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  623|               slapi_log_err(SLAPI_LOG_INFO, "dse_check_file",
#  624|                             "The config %s has zero length. Attempting restore ... \n", filename);
#  625|->             rc = PR_Delete(filename);
#  626|           }
#  627|       } else {

Error: CLANG_WARNING: [#def334]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dse.c:682:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  680|           rc = dse_check_file((char *)filename, pdse->dse_tmpfile);
#  681|           if (!rc) {
#  682|->             rc = dse_check_file((char *)filename, pdse->dse_fileback);
#  683|           }
#  684|   

Error: CLANG_WARNING: [#def335]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dse.c:1276:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1274|           if (type) {
# 1275|               /* insure there are no duplicate values in e1 */
# 1276|->             rc = slapi_entry_merge_values_sv(e1, type,
# 1277|                                                attr_get_present_values(newattr));
# 1278|           }

Error: CLANG_WARNING: [#def336]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dse.c:1959:26: warning[deadcode.DeadStores]: Although the value stored to 'plugin_started' is used in the enclosing expression, the value is never actually read from 'plugin_started'
# 1957|               if (slapi_entry_attr_hasvalue(ec, SLAPI_ATTR_OBJECTCLASS, "nsSlapdPlugin")) {
# 1958|                   if (config_get_dynamic_plugins() || fixup_op) {
# 1959|->                     if ((plugin_started = dse_modify_plugin(ec, ecc, returntext)) == -1) {
# 1960|                           returncode = LDAP_UNWILLING_TO_PERFORM;
# 1961|                           rc = SLAPI_DSE_CALLBACK_ERROR;

Error: CPPCHECK_WARNING: [#def337]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/dynalib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def338]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/entry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def339]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/entry.c:517:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'a')
#  515|                   /* consumes the value */
#  516|                   slapi_valueset_add_attr_value_ext(
#  517|->                     *a,
#  518|                       &(*a)->a_deleted_values,
#  519|                       svalue,

Error: CLANG_WARNING: [#def340]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/entry.c:525:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'a')
#  523|                   /* consumes the value */
#  524|                   slapi_valueset_add_attr_value_ext(
#  525|->                     *a,
#  526|                       &(*a)->a_present_values,
#  527|                       svalue,

Error: CLANG_WARNING: [#def341]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/entry.c:3892:20: warning[core.NullDereference]: Array access (from variable 'url') results in a null pointer dereference
# 3890|           for (i = slapi_attr_first_value(attr, &val); i != -1;
# 3891|                i = slapi_attr_next_value(attr, i, &val)) {
# 3892|->             url[i] = (struct berval *)slapi_value_get_berval(val);
# 3893|           }
# 3894|           url[numValues] = NULL;

Error: CLANG_WARNING: [#def342]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/entry.c:3894:24: warning[core.NullDereference]: Array access (from variable 'url') results in a null pointer dereference
# 3892|               url[i] = (struct berval *)slapi_value_get_berval(val);
# 3893|           }
# 3894|->         url[numValues] = NULL;
# 3895|       }
# 3896|       refscopy = ref_adjust(pb, url, slapi_entry_get_sdn(referral), 0);

Error: CPPCHECK_WARNING: [#def343]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/entrywsi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def344]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/errormap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def345]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/eventq-deprecated.c:480:19: warning[core.NullDereference]: Access to field 'eq_lock' results in a dereference of a null pointer (loaded from variable 'eq')
#  478|               }
#  479|           }
#  480|->         PR_Unlock(eq->eq_lock);
#  481|       }
#  482|       return NULL;

Error: CPPCHECK_WARNING: [#def346]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/extendop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def347]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/filter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def348]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/filter.c:229:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  227|       f = (struct slapi_filter *)slapi_ch_calloc(1, sizeof(struct slapi_filter));
#  228|   
#  229|->     err = 0;
#  230|       *fstr = NULL;
#  231|       f->f_choice = ber_peek_tag(ber, &len);

Error: CLANG_WARNING: [#def349]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/filter.c:790:17: warning[deadcode.DeadStores]: Value stored to 'fl' is never read
#  788|                   fl->f_next = NULL;
#  789|                   slapi_filter_free(fl, recurse);
#  790|->                 fl = next;
#  791|               }
#  792|           }

Error: CPPCHECK_WARNING: [#def350]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/filtercmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def351]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/filterentry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def352]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/getfilelist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def353]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/getopt_ext.c:72:9: warning[deadcode.DeadStores]: Value stored to '_endIndex' during its initialization is never read
#   70|       char *_optPtr = NULL;
#   71|       char *_optArgPtr = NULL;
#   72|->     int _endIndex = optind_last;
#   73|       int _nextDest = optind_ext;
#   74|       int _nextSource = optind_ext;

Error: CLANG_WARNING: [#def354]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/getopt_ext.c:74:9: warning[deadcode.DeadStores]: Value stored to '_nextSource' during its initialization is never read
#   72|       int _endIndex = optind_last;
#   73|       int _nextDest = optind_ext;
#   74|->     int _nextSource = optind_ext;
#   75|   
#   76|       _optPtr = argv[optind_ext];

Error: GCC_ANALYZER_WARNING (CWE-688): [#def355]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slap.h:2847: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c:38: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c: scope_hint: In function ‘do_bind’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/intrinsics.h:40:26: warning[-Wanalyzer-null-argument]: use of NULL ‘saslmech’ where non-null expected
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c:252:15: note: in expansion of macro ‘strcasecmp’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c:252:15: note: in expansion of macro ‘strcasecmp’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c:252:15: note: in expansion of macro ‘strcasecmp’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/bind.c:252:15: note: in expansion of macro ‘strcasecmp’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/intrinsics.h:26:1: note: argument 1 of ‘strcmpi_fast’ must be non-null
#   38|   #undef strcasecmp
#   39|   #endif
#   40|-> #define strcasecmp(x, y) strcmpi_fast(x, y)
#   41|   #ifdef strcmpi
#   42|   #undef strcmpi

Error: CPPCHECK_WARNING: [#def356]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/ldapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def357]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/ldaputil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def358]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/ldaputil.c:1655:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 1653|                       }
# 1654|   
# 1655|->                     if ((*(p - 1) == '"') && startquote) {
# 1656|                           endquote = 1;
# 1657|                           --p;

Error: CPPCHECK_WARNING: [#def359]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def360]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:6897:12: warning[deadcode.DeadStores]: Although the value stored to 'retVal' is used in the enclosing expression, the value is never actually read from 'retVal'
# 6895|       CFG_UNLOCK_READ(slapdFrontendConfig);
# 6896|   
# 6897|->     return retVal |= SLAPD_DEFAULT_ERRORLOG_LEVEL;
# 6898|   }
# 6899|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def361]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c: scope_hint: In function 'config_set_value'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9068:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9068:13: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9066|       case CONFIG_LONG:
# 9067|           if (value)
# 9068|->             slapi_entry_attr_set_long(e, cgas->attr_name, *((long *)value));
# 9069|           else
# 9070|               slapi_entry_attr_set_charptr(e, cgas->attr_name, "");

Error: GCC_ANALYZER_WARNING (CWE-126): [#def362]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9074:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9074:13: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9072|       case CONFIG_LONG_LONG:
# 9073|           if (value)
# 9074|->             slapi_entry_attr_set_longlong(e, cgas->attr_name, *((long long *)value));
# 9075|           else
# 9076|               slapi_entry_attr_set_charptr(e, cgas->attr_name, "");

Error: GCC_ANALYZER_WARNING (CWE-126): [#def363]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9080:48: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9080:48: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9078|       case CONFIG_STRING:
# 9079|           slapi_entry_attr_set_charptr(e, cgas->attr_name,
# 9080|->                                      (value && *((char **)value)) ? *((char **)value) : "");
# 9081|           break;
# 9082|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def364]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9085:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:126: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9085:9: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9083|       case CONFIG_STRING_GENERATED:
# 9084|           assert(value);
# 9085|->         slapi_entry_attr_set_charptr(e, cgas->attr_name, *((char **)value));
# 9086|           break;
# 9087|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def365]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9090:22: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9090:22: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9088|       case CONFIG_CHARRAY:
# 9089|           if (value) {
# 9090|->             values = strarray2bervalarray((const char **)*((char ***)value));
# 9091|               if (!values) {
# 9092|                   slapi_entry_attr_set_charptr(e, cgas->attr_name, "");

Error: GCC_ANALYZER_WARNING (CWE-126): [#def366]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9105:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9105:13: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9103|           /* referral list is already an array of berval* */
# 9104|           if (value)
# 9105|->             slapi_entry_attr_replace(e, cgas->attr_name, (struct berval **)*value);
# 9106|           else
# 9107|               slapi_entry_attr_set_charptr(e, cgas->attr_name, "");

Error: GCC_ANALYZER_WARNING (CWE-126): [#def367]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9113:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9113:13: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9111|           /* trusted IP list is already an array of berval* */
# 9112|           if (value)
# 9113|->             slapi_entry_attr_replace(e, cgas->attr_name, (struct berval **)*value);
# 9114|           else
# 9115|               slapi_entry_attr_set_charptr(e, cgas->attr_name, "");

Error: GCC_ANALYZER_WARNING (CWE-126): [#def368]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9165:48: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9165:48: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9163|       case CONFIG_STRING_OR_OFF:
# 9164|           slapi_entry_attr_set_charptr(e, cgas->attr_name,
# 9165|->                                      (value && *((char **)value)) ? *((char **)value) : "off");
# 9166|           break;
# 9167|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def369]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9170:48: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9170:48: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9168|       case CONFIG_STRING_OR_EMPTY:
# 9169|           slapi_entry_attr_set_charptr(e, cgas->attr_name,
# 9170|->                                      (value && *((char **)value)) ? *((char **)value) : "");
# 9171|           break;
# 9172|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def370]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9175:48: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/libglobs.c:9175:48: note: read of 4 bytes from after the end of 'ival'
#  └──────────────────────────────────────────────────────────────────────┘
#                   ^                                   ^
# 9173|       case CONFIG_STRING_OR_UNKNOWN:
# 9174|           slapi_entry_attr_set_charptr(e, cgas->attr_name,
# 9175|->                                      (value && *((char **)value)) ? *((char **)value) : "unknown");
# 9176|           break;
# 9177|   

Error: CPPCHECK_WARNING: [#def371]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/localhost.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def372]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def373]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/log.c:4978:5: warning[deadcode.DeadStores]: Value stored to 's' is never read
# 4976|       }
# 4977|   
# 4978|->     s = p;
# 4979|       if ((p = strchr(p, '(')) == NULL) {
# 4980|           return LOG_CONTINUE;

Error: CLANG_WARNING: [#def374]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/log.c:6154:10: warning[deadcode.DeadStores]: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc'
# 6152|        * at startup, it will create the logfile as root!
# 6153|        */
# 6154|->     if ((rc = slapd_chown_if_not_owner(loginfo.log_error_file, pw->pw_uid, -1)) != 0) {
# 6155|           PR_snprintf(buffer, sizeof(buffer),
# 6156|                       "Failed to chown log file %s: error %d (%s); Exiting...",

Error: CPPCHECK_WARNING: [#def375]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def376]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/mapping_tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def377]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/mapping_tree.c: scope_hint: In function 'mtn_get_be'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/mapping_tree.c:2542:20: warning[-Wanalyzer-null-dereference]: dereference of NULL 'target_node'
# 2540|       target_sdn = operation_get_target_spec(op);
# 2541|   
# 2542|->     if (target_node->mtn_state == MTN_DISABLED) {
# 2543|           slapi_create_errormsg(errorbuf, ebuflen,
# 2544|                                 "Warning: Operation attempted on a disabled node : %s\n",

Error: CPPCHECK_WARNING: [#def378]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/match.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def379]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/modify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def380]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/modrdn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def381]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/modutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def382]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/opshared.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def383]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/opshared.c:848:21: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  846|                   if (op_is_pagedresults(operation)) {
#  847|                       /* cleanup the slot */
#  848|->                     pthread_mutex_lock(pagedresults_mutex);
#  849|                       pagedresults_set_search_result(pb_conn, operation, NULL, 1, pr_idx);
#  850|                       rc = pagedresults_set_current_be(pb_conn, NULL, pr_idx, 1);

Error: CLANG_WARNING: [#def384]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/opshared.c:892:25: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  890|                       if ((PAGEDRESULTS_SEARCH_END == pr_stat) || (0 == pnentries)) {
#  891|                           /* no more entries, but at least another backend */
#  892|->                         pthread_mutex_lock(pagedresults_mutex);
#  893|                           pagedresults_set_search_result(pb_conn, operation, NULL, 1, pr_idx);
#  894|                           be->be_search_results_release(&sr);

Error: CPPCHECK_WARNING: [#def385]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/pagedresults.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def386]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/passwd_extop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def387]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/plugin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def388]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/plugin.c:3142: warning[uninitvar]: Uninitialized variable: output
# 3140|       }
# 3141|   
# 3142|->     return slapi_ch_strdup(output);
# 3143|   }
# 3144|   

Error: CPPCHECK_WARNING: [#def389]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/plugin_syntax.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def390]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/protect_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def391]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/protect_db.c: scope_hint: In function 'grab_lockfile'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/protect_db.c:102:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&lockfile, 0)'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/protect_db.c:31: included_from: Included from here.
#  100|   
#  101|               nb_bytes = read(fd, (void *)&owning_pid, sizeof(pid_t));
#  102|->             if ((nb_bytes != (size_t)(sizeof(pid_t))) || (owning_pid == 0) || (kill(owning_pid, 0) != 0 && errno == ESRCH)) {
#  103|                   /* The process that owns the lock is dead. Try to remove the old lockfile. */
#  104|                   if (unlink(lockfile) != 0) {

Error: CPPCHECK_WARNING: [#def392]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/proxyauth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def393]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/psearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def394]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/psearch.c:620:5: warning[core.NullDereference]: Access to field 'pl_rwlock' results in a dereference of a null pointer (loaded from variable 'psearch_list')
#  618|       }
#  619|   
#  620|->     PSL_UNLOCK_READ();
#  621|   
#  622|       /* Were there any matches? */

Error: CPPCHECK_WARNING: [#def395]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/pw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def396]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/pw.c:1141:37: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'old_pw')
# 1139|                               *old_pw = slapi_ch_strdup(slapi_value_get_string(va[0]));
# 1140|                           } else {
# 1141|->                             *old_pw = NULL;
# 1142|                           }
# 1143|                       }

Error: CPPCHECK_WARNING: [#def397]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/pw_mgmt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def398]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/rdn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def399]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/rdn.c:1028:35: warning[core.NullDereference]: Array access (via field 'all_nrdns') results in a null pointer dereference
# 1026|   
# 1027|       (*to)->rdn = slapi_ch_strdup(from->all_rdns[rdnidx]);
# 1028|->     (*to)->nrdn = slapi_ch_strdup(from->all_nrdns[rdnidx]);
# 1029|       (*to)->all_rdns = charray_dup(&(from->all_rdns[rdnidx]));
# 1030|       (*to)->all_nrdns = charray_dup(&(from->all_nrdns[rdnidx]));

Error: CPPCHECK_WARNING: [#def400]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/referral.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def401]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/regex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def402]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/resourcelimit.c:554:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  552|                     "=> conn=0x%p, handle=%d\n", conn, handle);
#  553|   
#  554|->     rc = SLAPI_RESLIMIT_STATUS_SUCCESS; /* optimistic */
#  555|   
#  556|       /* sanity check parameters */

Error: CPPCHECK_WARNING: [#def403]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/result.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def404]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/result.c:306:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  304|       }
#  305|       /* add the intermediate message */
#  306|->     rc = ber_printf(ber, "{it{", operation->o_msgid, tag);
#  307|       /* print responsename */
#  308|       rc = ber_printf(ber, "ts", LDAP_TAG_IM_RES_OID, responseName);

Error: CLANG_WARNING: [#def405]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/result.c:308:5: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  306|       rc = ber_printf(ber, "{it{", operation->o_msgid, tag);
#  307|       /* print responsename */
#  308|->     rc = ber_printf(ber, "ts", LDAP_TAG_IM_RES_OID, responseName);
#  309|       /* print responsevalue */
#  310|       rc = ber_printf(ber, "tO", LDAP_TAG_IM_RES_VALUE, responseValue);

Error: CLANG_WARNING: [#def406]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/result.c:585:13: warning[deadcode.DeadStores]: Value stored to 'text' is never read
#  583|               }
#  584|               save = text;
#  585|->             text = buf;
#  586|           }
#  587|   

Error: CLANG_WARNING: [#def407]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/result.c:620:13: warning[deadcode.DeadStores]: Value stored to 'text' is never read
#  618|   
#  619|           if (buf != NULL) {
#  620|->             text = save;
#  621|               slapi_ch_free((void **)&buf);
#  622|           }

Error: CLANG_WARNING: [#def408]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/result.c:1464:13: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1462|               return rc;
# 1463|           } else {
# 1464|->             rc = 0; /* Means that we just didn't recognize this as a computed attr */
# 1465|           }
# 1466|   

Error: CPPCHECK_WARNING: [#def409]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/rootdse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def410]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/sasl_io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def411]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/sasl_map.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def412]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/sasl_map.c:462:9: warning[deadcode.DeadStores]: Value stored to 'returntext' is never read
#  460|           ret = SLAPI_DSE_CALLBACK_OK;
#  461|       } else {
#  462|->         returntext = "sasl map entry rejected";
#  463|           *returncode = LDAP_UNWILLING_TO_PERFORM;
#  464|           ret = SLAPI_DSE_CALLBACK_ERROR;

Error: CLANG_WARNING: [#def413]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/sasl_map.c:523:9: warning[deadcode.DeadStores]: Value stored to 'returntext' is never read
#  521|       if (ret) {
#  522|           ret = SLAPI_DSE_CALLBACK_ERROR;
#  523|->         returntext = "can't delete sasl map entry";
#  524|           *returncode = LDAP_OPERATIONS_ERROR;
#  525|       } else {

Error: CPPCHECK_WARNING: [#def414]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/saslbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def415]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/schema.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def416]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slapi-memberof.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def417]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/csngen.h:20: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slap.h:122: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/back-ldbm.h:78: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.h:10: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:13: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c: scope_hint: In function 'bdb_restore'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slapi-private.h:43:46: warning[-Wanalyzer-null-dereference]: dereference of NULL 'inst'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:5713:9: note: in expansion of macro 'slapi_log_err'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/back-ldbm.h:43: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:5713:9: note: in expansion of macro 'slapi_log_err'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:5713:9: note: in expansion of macro 'slapi_log_err'
#   41|   #ifdef LDAP_ERROR_LOGGING
#   42|   #undef slapi_log_err
#   43|-> #define slapi_log_err(level, subsystem, ...) slapi_log_error(level, subsystem, __VA_ARGS__)
#   44|   #endif
#   45|   

Error: CPPCHECK_WARNING: [#def418]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/slapi_pal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def419]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/snmp_collator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def420]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def421]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/ssl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def422]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/ssl.c:2803:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 2801|           }
# 2802|   
# 2803|->         rv = PK11_CipherOp(ctx,
# 2804|                              derPKI->data,                  /* out     */
# 2805|                              (int *)(&derPKI->len),         /* out len */

Error: CPPCHECK_WARNING: [#def423]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/str2filter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def424]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/task.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def425]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def426]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:265:13: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  263|               }
#  264|               strcpy((char *)o, " ...");
#  265|->             i = len;
#  266|               o += 4;
#  267|               break;

Error: CPPCHECK_WARNING (CWE-401): [#def427]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:741: error[memleakOnRealloc]: Common realloc mistake: 'buf' nulled but not freed upon failure
#  739|       if (buflen < tmpbuflen) {
#  740|           buflen = tmpbuflen;
#  741|->         buf = (unsigned char *)realloc(buf, buflen);
#  742|       }
#  743|       if (!buf) {

Error: CLANG_WARNING: [#def428]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:816:17: warning[deadcode.DeadStores]: Value stored to 'keyval' during its initialization is never read
#  814|       dbi_op_t op = DBI_OP_MOVE_TO_FIRST;
#  815|       int find_key_flag = 0;
#  816|->     const char *keyval = "";
#  817|   
#  818|       /* Setting the bulk fetch buffer */

Error: CPPCHECK_WARNING (CWE-476): [#def429]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:1130: error[nullPointer]: Null pointer dereference
# 1128|       if (!dump) {
# 1129|           printf("Failed to open dump file %s. Error %d: %s\n", dump_name, errno, strerror(errno));
# 1130|->         fclose(dump);
# 1131|           return 1;
# 1132|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def430]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c: scope_hint: In function ‘importdb’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:1130:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:28: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:21: included_from: Included from here.
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
# 1128|       if (!dump) {
# 1129|           printf("Failed to open dump file %s. Error %d: %s\n", dump_name, errno, strerror(errno));
# 1130|->         fclose(dump);
# 1131|           return 1;
# 1132|       }

Error: COMPILER_WARNING (CWE-476): [#def431]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c: scope_hint: In function ‘importdb’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:1130:9: warning[-Wnonnull]: argument 1 null where non-null expected
# 1130 |         fclose(dump);
#      |         ^~~~~~~~~~~~
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:21: included_from: Included from here.
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
#  184 | extern int fclose (FILE *__stream) __nonnull ((1));
#      |            ^~~~~~
# 1128|       if (!dump) {
# 1129|           printf("Failed to open dump file %s. Error %d: %s\n", dump_name, errno, strerror(errno));
# 1130|->         fclose(dump);
# 1131|           return 1;
# 1132|       }

Error: CLANG_WARNING: [#def432]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/dbscan.c:1130:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1128|       if (!dump) {
# 1129|           printf("Failed to open dump file %s. Error %d: %s\n", dump_name, errno, strerror(errno));
# 1130|->         fclose(dump);
# 1131|           return 1;
# 1132|       }

Error: CPPCHECK_WARNING: [#def433]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldaptool-sasl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def434]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def435]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/data.c: scope_hint: In function ‘loadImages’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/data.c:217:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
#  215|      */
#  216|       if (fd != -1)
#  217|->         close(fd);
#  218|   
#  219|       return rc;

Error: CPPCHECK_WARNING: [#def436]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def437]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:697:31: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  695|               if (passwd) {
#  696|                   cred.bv_val = (char *)pwd;
#  697|->                 cred.bv_len = strlen(pwd);
#  698|               }
#  699|               if (mode & VERY_VERBOSE)

Error: CLANG_WARNING: [#def438]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1204:10: warning[core.NullDereference]: Array access (from variable 'p') results in a null pointer dereference
# 1202|           ldcltExit(EXIT_RESSOURCE); /*JLS 18-12-00*/
# 1203|       }                              /*JLS 06-03-00*/
# 1204|->     p[0] = str1;
# 1205|       p[1] = NULL;
# 1206|       return (p);

Error: CLANG_WARNING: [#def439]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1393:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1391|       attr.mod_values = strList1(tttctx->bufAttrpl);
# 1392|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1393|->         return (-1);
# 1394|   
# 1395|       /*

Error: CLANG_WARNING: [#def440]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1442:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1440|       attr.mod_values = strList1(&(tttctx->bufFilter[i + 1]));
# 1441|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1442|->         return (-1);
# 1443|   
# 1444|       /*

Error: CLANG_WARNING: [#def441]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1457:22: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1455|           attr.mod_values = strList1(newValue);
# 1456|           if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1457|->             return (-1);
# 1458|       }
# 1459|   

Error: CLANG_WARNING: [#def442]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1538:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1536|           attr.mod_values = strList1("emailPerson");
# 1537|       }
# 1538|->     if (mctx.mode & OC_INETORGPRSON) {
# 1539|           attr.mod_values = strList1("inetOrgPerson");
# 1540|       }

Error: CLANG_WARNING: [#def443]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1541:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1539|           attr.mod_values = strList1("inetOrgPerson");
# 1540|       }
# 1541|->     if (attr.mod_values == NULL) {
# 1542|           printf("ldclt[%d]: T%03d: attribute objectclass not defined (supported values are person/emailPerson/inetOrgPerson)\n",
# 1543|                  mctx.pid, tttctx->thrdNum);

Error: CLANG_WARNING: [#def444]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1547:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1545|       }
# 1546|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1547|->         return (-1);
# 1548|   
# 1549|       /*

Error: CLANG_WARNING: [#def445]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1561:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1559|       attr.mod_values = strList1(&(tttctx->bufFilter[i + 1]));
# 1560|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1561|->         return (-1);
# 1562|   
# 1563|       /*

Error: CLANG_WARNING: [#def446]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1573:26: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1571|               attr.mod_values = strList1("toto cn");
# 1572|               if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1573|->                 return (-1);
# 1574|           }
# 1575|           if (strcmp(tttctx->buf2, "sn")) {

Error: CLANG_WARNING: [#def447]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1580:26: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1578|               attr.mod_values = strList1("toto sn");
# 1579|               if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1580|->                 return (-1);
# 1581|           }
# 1582|           if ((mctx.mode & OC_INETORGPRSON) && (mctx.mod2 & M2_DEREF)) {

Error: CLANG_WARNING: [#def448]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1588:26: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1586|               attr.mod_values = strList1(newDn);
# 1587|               if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1588|->                 return (-1);
# 1589|           }
# 1590|       }

Error: CLANG_WARNING: [#def449]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1759:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1757|       attr.mod_values = strList1(objClass);
# 1758|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1759|->         return (-1);
# 1760|       attr.mod_op = LDAP_MOD_ADD;
# 1761|       attr.mod_type = attrName;

Error: CLANG_WARNING: [#def450]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1764:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'attr.mod_vals.modv_strvals'
# 1762|       attr.mod_values = strList1(attrVal);
# 1763|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1764|->         return (-1);
# 1765|   
# 1766|       /*

Error: CLANG_WARNING: [#def451]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1764:18: warning[unix.Malloc]: Potential memory leak
# 1762|       attr.mod_values = strList1(attrVal);
# 1763|       if (addAttrib(attrs, nbAttribs++, &attr) < 0)
# 1764|->         return (-1);
# 1765|   
# 1766|       /*

Error: CLANG_WARNING: [#def452]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:1918:21: warning[deadcode.DeadStores]: Value stored to 'msgOk' is never read
# 1916|                   msgid = ldap_msgid(res);
# 1917|                   if (type != expected) {
# 1918|->                     msgOk = 0;
# 1919|                       printf("ldclt[%d]: T%03d: bad result type 0x%02x\n",
# 1920|                              mctx.pid, tttctx->thrdNum, type);

Error: CLANG_WARNING: [#def453]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:2193:25: warning[deadcode.DeadStores]: Value stored to 'retry' is never read
# 2191|                   else {
# 2192|                       if (createMissingNodes(tttctx, tttctx->bufBaseDN, NULL) < 0) {
# 2193|->                         retry = 0;
# 2194|                           printf("ldclt[%d]: T%03d: Cannot create the intermediate nodes for %s\n",
# 2195|                                  mctx.pid, tttctx->thrdNum, tttctx->bufBaseDN);

Error: CLANG_WARNING: [#def454]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:2476:22: warning[unix.Malloc]: Potential memory leak
# 2474|        */
# 2475|           if (buildNewEntry(tttctx, newDn, attrs) < 0)
# 2476|->             return (-1);
# 2477|   
# 2478|           /*

Error: CLANG_WARNING: [#def455]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:2506:25: warning[deadcode.DeadStores]: Value stored to 'retry' is never read
# 2504|                   } else {
# 2505|                       if (createMissingNodes(tttctx, newDn, NULL) < 0) {
# 2506|->                         retry = 0;
# 2507|                           printf("ldclt[%d]: T%03d: Cannot create the intermediate nodes for %s\n",
# 2508|                                  mctx.pid, tttctx->thrdNum, newDn);

Error: CLANG_WARNING: [#def456]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldapfct.c:2581:22: warning[unix.Malloc]: Potential memory leak
# 2579|        */
# 2580|           if (buildNewEntry(tttctx, newDn, attrs) < 0)
# 2581|->             return (-1);
# 2582|   
# 2583|           ret = ldap_add_ext(tttctx->ldapCtx, newDn, attrs, NULL, NULL, &msgid);

Error: CPPCHECK_WARNING: [#def457]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def458]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c: scope_hint: In function ‘copyVersAttribute’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c:145:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dst’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  143|       dst = dstattr->field;
#  144|       while (src != NULL) {
#  145|->         memcpy(dst, src, sizeof(vers_field));
#  146|           dst->commonField = src; /*JLS 28-03-01*/
#  147|           if ((src = src->next) != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def459]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c: scope_hint: In function ‘copyVersObject’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c:186:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newobj’
#  184|      */
#  185|       newobj = (vers_object *)malloc(sizeof(vers_object));
#  186|->     newobj->attribsNb = srcobj->attribsNb;
#  187|       newobj->fname = srcobj->fname;
#  188|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def460]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c: scope_hint: In function ‘basicInit’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c:1239:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mctx.attrplFileContent’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1237|           i = 0;
# 1238|           while ((ret = fread(buffer, BUFFERSIZE, 1, attrF))) {
# 1239|->             memcpy(mctx.attrplFileContent + i, buffer, ret);
# 1240|               memset(buffer, '\0', BUFFERSIZE);
# 1241|               i += ret;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def461]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/ldclt.c:1249:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mctx.attrplFileContent’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1247|        */
# 1248|           if (i < mctx.attrplFileSize) {
# 1249|->             memcpy(mctx.attrplFileContent + i, buffer, (mctx.attrplFileSize - 1 - i));
# 1250|               memset(buffer, '\0', BUFFERSIZE); /* clear the buffer */
# 1251|           }

Error: CPPCHECK_WARNING: [#def462]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def463]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c:127:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  125|      * Maybe a variable ?
#  126|      */
#  127|->     if (variant[1] == '\0') {
#  128|           if ((variant[0] < VAR_MIN) || (variant[0] > VAR_MAX)) {
#  129|               fprintf(stderr, "Error: bad variable in %s : \"%s\"\n", fname, line);

Error: CLANG_WARNING: [#def464]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c:328:11: warning[deadcode.DeadStores]: Although the value stored to 'start' is used in the enclosing expression, the value is never actually read from 'start'
#  326|      */
#  327|       field = NULL;
#  328|->     end = start = 0;
#  329|       while (line[end] != '\0') {
#  330|           /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def465]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c: scope_hint: In function ‘parseAttribValue’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c:335:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘field’
#  333|           if (field == NULL) {
#  334|               field = (vers_field *)malloc(sizeof(vers_field));
#  335|->             field->next = NULL;
#  336|               attrib->field = field;
#  337|           } else {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def466]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c:379:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)(end + 1 - end))’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  377|               field->how = HOW_CONSTANT;
#  378|               field->cst = (char *)malloc(1 + end - start);
#  379|->             strncpy(field->cst, line + start, end - start);
#  380|               field->cst[end - start] = '\0';
#  381|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def467]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c: scope_hint: In function ‘parseLine’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/parser.c:441:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)(end + 1))’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  439|       obj->attribs[obj->attribsNb].src = strdup(line);
#  440|       obj->attribs[obj->attribsNb].name = (char *)malloc(1 + end);
#  441|->     strncpy(obj->attribs[obj->attribsNb].name, line, end);
#  442|       obj->attribs[obj->attribsNb].name[end] = '\0';
#  443|       for (end++; line[end] == ' '; end++)

Error: CPPCHECK_WARNING: [#def468]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/scalab01.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/scalab01.c: scope_hint: In function ‘scalab01_addLogin’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/scalab01.c:416:8: warning[-Wanalyzer-malloc-leak]: leak of ‘new’
#  414|      * Free mutex
#  415|      */
#  416|->     if ((ret = ldclt_mutex_unlock(&(s1ctx.list_mutex))) != 0) {
#  417|           fprintf(stderr, "ldclt[%d]: %s: cannot mutex_unlock(), error=%d (%s)\n",
#  418|                   mctx.pid, tttctx->thrdId, ret, strerror(ret));

Error: CPPCHECK_WARNING: [#def470]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def471]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:861:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  859|       }                         /*JLS 06-03-00*/
#  860|       if (!(mctx.mode & RANDOM_BASE))
#  861|->         strcpy(tttctx->bufBaseDN, mctx.baseDN);
#  862|       else {
#  863|           tttctx->startBaseDN = strlen(mctx.baseDNHead);

Error: CLANG_WARNING: [#def472]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:864:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  862|       else {
#  863|           tttctx->startBaseDN = strlen(mctx.baseDNHead);
#  864|->         strcpy(tttctx->bufBaseDN, mctx.baseDNHead);
#  865|           strcpy(&(tttctx->bufBaseDN[tttctx->startBaseDN + mctx.baseDNNbDigit]),
#  866|                  mctx.baseDNTail);

Error: CLANG_WARNING: [#def473]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:883:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  881|           }
#  882|           if (!(mctx.mode & RANDOM_BINDDN))
#  883|->             strcpy(tttctx->bufBindDN, mctx.bindDN);
#  884|           else {
#  885|               tttctx->startBindDN = strlen(mctx.bindDNHead);

Error: CLANG_WARNING: [#def474]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:886:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  884|           else {
#  885|               tttctx->startBindDN = strlen(mctx.bindDNHead);
#  886|->             strcpy(tttctx->bufBindDN, mctx.bindDNHead);
#  887|               strcpy(&(tttctx->bufBindDN[tttctx->startBindDN + mctx.bindDNNbDigit]),
#  888|                      mctx.bindDNTail);

Error: CLANG_WARNING: [#def475]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:907:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  905|           }
#  906|           if (!(mctx.mode & RANDOM_BINDDN))
#  907|->             strcpy(tttctx->bufPasswd, mctx.passwd);
#  908|           else {
#  909|               tttctx->startPasswd = strlen(mctx.passwdHead);

Error: CLANG_WARNING: [#def476]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:910:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  908|           else {
#  909|               tttctx->startPasswd = strlen(mctx.passwdHead);
#  910|->             strcpy(tttctx->bufPasswd, mctx.passwdHead);
#  911|               strcpy(&(tttctx->bufPasswd[tttctx->startPasswd + mctx.passwdNbDigit]),
#  912|                      mctx.passwdTail);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c: scope_hint: In function ‘threadMain’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:924:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  922|       if (mctx.mod2 & M2_RNDBINDFILE)                        /*JLS 03-05-01*/
#  923|       {                                                      /*JLS 03-05-01*/
#  924|->         tttctx->bufBindDN = (char *)malloc(MAX_DN_LENGTH); /*JLS 03-05-01*/
#  925|           tttctx->bufPasswd = (char *)malloc(MAX_DN_LENGTH); /*JLS 03-05-01*/
#  926|           mctx.passwd = "foo bar"; /* trick... */            /*JLS 03-05-01*/

Error: CLANG_WARNING: [#def478]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:940:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  938|           }
#  939|           if (!(mctx.mod2 & M2_RANDOM_SASLAUTHID))
#  940|->             strcpy(tttctx->bufSaslAuthid, mctx.sasl_authid);
#  941|           else {
#  942|               tttctx->startSaslAuthid = strlen(mctx.sasl_authid_head);

Error: CLANG_WARNING: [#def479]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:943:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  941|           else {
#  942|               tttctx->startSaslAuthid = strlen(mctx.sasl_authid_head);
#  943|->             strcpy(tttctx->bufSaslAuthid, mctx.sasl_authid_head);
#  944|               strcpy(&(tttctx->bufSaslAuthid[tttctx->startSaslAuthid + mctx.sasl_authid_nbdigit]),
#  945|                      mctx.sasl_authid_tail);

Error: CLANG_WARNING: [#def480]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/threadMain.c:961:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  959|           }
#  960|           tttctx->startAttrpl = strlen(mctx.attrplHead);
#  961|->         strcpy(tttctx->bufAttrpl, mctx.attrplHead);
#  962|           strcpy(&(tttctx->bufAttrpl[tttctx->startAttrpl + mctx.attrplNbDigit]),
#  963|                  mctx.attrplTail);

Error: CPPCHECK_WARNING: [#def481]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/ldclt/utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def482]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/tools/pwenc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def483]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def484]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/utf8compare.c:2125:5: warning[deadcode.DeadStores]: Value stored to 'rval' is never read
# 2123|       t1 = d1 + strlen((char *)d1);
# 2124|   
# 2125|->     rval = 0;
# 2126|       while (1) {
# 2127|           n0 = (unsigned char *)ldap_utf8next((char *)p0);

Error: CLANG_WARNING: [#def485]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/utf8compare.c:2244:5: warning[deadcode.DeadStores]: Value stored to 'rval' is never read
# 2242|       t1 = d1 + strlen((char *)d1);
# 2243|   
# 2244|->     rval = 0;
# 2245|       cnt = 0;
# 2246|       while (1) {

Error: CPPCHECK_WARNING: [#def486]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def487]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/util.c:582:17: warning[deadcode.DeadStores]: Value stored to 'gotesc' is never read
#  580|                   s++;
#  581|                   *d++ = *s;
#  582|->                 gotesc = 0;
#  583|               }
#  584|               break;

Error: CPPCHECK_WARNING: [#def488]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/uuid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-119): [#def489]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/uuid.c:814: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: hash
#  812|       * plus a few constants. */
#  813|   
#  814|->     memcpy(uuid, hash, sizeof(guid_t));
#  815|   
#  816|       /* when migrating, we skip the ntohl in order to read in old,

Error: CPPCHECK_WARNING: [#def490]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/valueset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def491]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/valueset.c:983:14: warning[deadcode.DeadStores]: Although the value stored to 'cmp' is used in the enclosing expression, the value is never actually read from 'cmp'
#  981|       while (top - bot > 1) {
#  982|           int mid = (top + bot) / 2;
#  983|->         if ((cmp = valueset_value_cmp(a, v, vs->va[vs->sorted[mid]])) > 0) {
#  984|               bot = mid;
#  985|           } else {

Error: CPPCHECK_WARNING: [#def492]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/vattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def493]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/vattr.c:459:13: warning[core.NullDereference]: Access to field 'pb' results in a dereference of a null pointer
#  457|       if (0 == vattr_context_unmark(*c)) {
#  458|           /* If necessary, delete the structure */
#  459|->         if ((*c)->pb) {
#  460|               slapi_pblock_set_vattr_context((*c)->pb, NULL);
#  461|           }

Error: CLANG_WARNING: [#def494]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/vattr.c:1435:5: warning[deadcode.DeadStores]: Value stored to 'flags' is never read
# 1433|       */
# 1434|   
# 1435|->     flags = type_context.flags;
# 1436|       list_is_copies = type_context.list_is_copies;
# 1437|       result_array = type_context.types;

Error: CLANG_WARNING: [#def495]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/slapd/vattr.c:1439:5: warning[deadcode.DeadStores]: Value stored to 'block_length' is never read
# 1437|       result_array = type_context.types;
# 1438|       list_length = type_context.list_length;
# 1439|->     block_length = type_context.block_length;
# 1440|   
# 1441|       if (list_is_copies) {

Error: CPPCHECK_WARNING: [#def496]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.c: scope_hint: In function ‘init_ldap_agent’
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.c:202:9: warning[-Wanalyzer-malloc-leak]: leak of ‘stats_table_create_row((long unsigned int)*serv_p.port)’
/usr/include/net-snmp/utilities.h:37: included_from: Included from here.
/usr/include/net-snmp/net-snmp-includes.h:28: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.h:42: included_from: Included from here.
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.c:16: included_from: Included from here.
#  200|       oid *index_oid = (oid *)malloc(sizeof(oid) * MAX_OID_LEN);
#  201|   
#  202|->     if (!ctx || !index_oid) {
#  203|           /* Error during malloc */
#  204|           snmp_log(LOG_ERR, "malloc failed in stats_table_create_row\n");

Error: CPPCHECK_WARNING (CWE-562): [#def498]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.c:241: error[returnDanglingLifetime]: Returning pointer to local variable 'index' that will be invalid when returning.
#  239|       index.len = 1;
#  240|   
#  241|->     return (stats_table_context *)
#  242|           CONTAINER_FIND(ops_cb.container, &index);
#  243|   }

Error: CLANG_WARNING: [#def499]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/ldap-agent.c:242:9: warning[core.NullDereference]: Access to field 'find' results in a dereference of a null pointer (loaded from field 'container')
#  240|   
#  241|       return (stats_table_context *)
#  242|->         CONTAINER_FIND(ops_cb.container, &index);
#  243|   }
#  244|   

Error: CPPCHECK_WARNING: [#def500]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def501]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/main.c:132:17: warning[unix.Malloc]: Use of memory after it is freed
#  130|           if (agent_logdir != NULL) {
#  131|               /* Verify agent-logdir setting */
#  132|->             if (stat(agent_logdir, &logdir_s) < 0) {
#  133|                   printf("ldap-agent: Error reading logdir: %s\n", agent_logdir);
#  134|                   exit(1);

Error: CLANG_WARNING: [#def502]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/main.c:339:17: warning[unix.Malloc]: Attempt to free released memory
#  337|               /* free the default logdir setting */
#  338|               if (agent_logdir != NULL) {
#  339|->                 free(agent_logdir);
#  340|               }
#  341|   

Error: CLANG_WARNING: [#def503]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/ldap/servers/snmp/main.c:399:17: warning[unix.Malloc]: Potential leak of memory pointed to by 'serv_p'
#  397|                   }
#  398|               } else {
#  399|->                 printf("ldap-agent: missing instance name\n");
#  400|                   error = 1;
#  401|                   goto close_and_exit;

Error: CPPCHECK_WARNING: [#def504]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/dnsdmain.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def505]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/plist.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def506]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/plist.cpp:711:32: warning[core.NullDereference]: Access to field 'pt_sizendx' results in a dereference of a null pointer (loaded from variable 'symtab')
#  709|       }
#  710|   
#  711|->     return hashval % PLSIZENDX(symtab->pt_sizendx);
#  712|   }
#  713|   

Error: CLANG_WARNING: [#def507]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/plist.cpp:764:22: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'pvp')
#  762|                   /* Seach hash collision list for this property */
#  763|                   for (pvp = &pt->pt_hash[i];
#  764|->                      *pvp; pvp = &(*pvp)->pv_next) {
#  765|   
#  766|                       if (*pvp == pv) {

Error: CPPCHECK_WARNING: [#def508]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/pool.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def509]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/shexp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def510]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/base/shexp.cpp:168:25: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  166|                           continue;
#  167|                       case ABORTED:
#  168|->                         ret = ABORTED;
#  169|                           break;
#  170|                       default:

Error: CPPCHECK_WARNING: [#def511]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/cert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/cert.c: scope_hint: In function 'ldapu_get_cert_ava_val'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/cert.c:207:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  205|           rv = LDAPU_SUCCESS;
#  206|       } else {
#  207|->         free(val);
#  208|           rv = LDAPU_FAILED;
#  209|       }

Error: CPPCHECK_WARNING: [#def513]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def514]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c: scope_hint: In function 'parse_into_bitmask'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c:483:20: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c:483:20: note: read of 1 byte from after the end of the region
#                                      └──────────────────────────────────┘
#                                                       ^
#  481|           while (*name) {
#  482|               /* advance ptr to delimeter */
#  483|->             while (*ptr && !isspace(*ptr) && *ptr != ',')
#  484|                   ptr++;
#  485|   

Error: CLANG_WARNING: [#def515]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c:540:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
#  538|       } else if (rv == LDAPU_FAILED) {
#  539|           certinfo->dncompsState = COMPS_COMMENTED_OUT;
#  540|->         rv = LDAPU_SUCCESS;
#  541|       } else if (rv == LDAPU_SUCCESS && !dncomps) {
#  542|           certinfo->dncompsState = COMPS_EMPTY;

Error: CLANG_WARNING: [#def516]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c:563:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
#  561|       } else if (rv == LDAPU_FAILED) {
#  562|           certinfo->filtercompsState = COMPS_COMMENTED_OUT;
#  563|->         rv = LDAPU_SUCCESS;
#  564|       } else if (rv == LDAPU_SUCCESS && !filtercomps) {
#  565|           certinfo->filtercompsState = COMPS_EMPTY;

Error: CLANG_WARNING: [#def517]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c:984:9: warning[deadcode.DeadStores]: Value stored to 'dn' is never read
#  982|       if (*dnlen) {
#  983|           strcat(dn, ", ");
#  984|->         dn += 2;
#  985|           *dnlen += 2;
#  986|       }

Error: CLANG_WARNING: [#def518]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/certmap.c:1323:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 1321|   
# 1322|       /* don't free the certmap_info -- its a pointer to an internal structure */
# 1323|->     rv = ldapu_issuer_certinfo(issuerDN, (void **)&certmap_info);
# 1324|   
# 1325|       if (!certmap_info)

Error: CPPCHECK_WARNING: [#def519]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/dbconf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def520]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/dbconf.c:488:21: warning[core.NullDereference]: Access to field 'dbname' results in a dereference of a null pointer (loaded from variable 'db_info')
#  486|       while (!eof &&
#  487|              ((rv = read_db_info(fp, buf, &db_info, directive, directive_len, &eof)) == LDAPU_SUCCESS)) {
#  488|->         if (!strcmp(db_info->dbname, DBCONF_DEFAULT_DBNAME))
#  489|               break;
#  490|           dbconf_free_dbinfo(db_info);

Error: GCC_ANALYZER_WARNING (CWE-124): [#def521]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/encode.c: scope_hint: In function 'do_uuencode'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/encode.c:76:14: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
#   74|   
#   75|       for (; i != srclen; i--)
#   76|->         *--p = '=';
#   77|   
#   78|       return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def522]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/encode.c: scope_hint: In function '_uudecode'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/encode.c:115:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'bufout'
#  113|   
#  114|       while (nprbytes > 0) {
#  115|->         *(bufout++) = (unsigned char)(pr2six[(int)(*bufin)] << 2 | pr2six[(int)bufin[1]] >> 4);
#  116|           *(bufout++) = (unsigned char)(pr2six[(int)bufin[1]] << 4 | pr2six[(int)bufin[2]] >> 2);
#  117|           *(bufout++) = (unsigned char)(pr2six[(int)bufin[2]] << 6 | pr2six[(int)bufin[3]]);

Error: CPPCHECK_WARNING: [#def523]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def524]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/ldapauth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def525]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/ldapauth.c: scope_hint: In function 'ldapu_find_entire_tree'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/ldapauth.c:165:30: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/ldapauth.c:165:30: note: read of 8 bytes from after the end of 'private_suffix_list'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/ldaputil/ldapauth.c:165:30: note: valid subscripts for 'private_suffix_list' are '[0]' to '[1]'
#                                                   └────────────────────────────────┘
#                                                                   ^
#  163|           }
#  164|           for (i = num_namingcontexts; i < (num_namingcontexts + num_private_suffix); ++i) {
#  165|->             suffix_list[i] = strdup(private_suffix_list[i - num_namingcontexts]);
#  166|           }
#  167|           suffix_list[i] = NULL;

Error: CPPCHECK_WARNING: [#def526]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/acl.tab.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def527]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/acl.yy.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def528]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/acleval.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def529]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/acleval.cpp:95: warning[uninitvar]: Uninitialized variable: rv
#   93|   
#   94|       /* One more possibility if nothing found yet... */
#   95|->     if (rv) {
#   96|   	rv = symTableFindSym(table, "*", 0, (void **)&sym);
#   97|       }

Error: CPPCHECK_WARNING: [#def530]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/acltools.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def531]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/aclutil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def532]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/lasdns.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def533]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/lasgroup.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def534]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/lasip.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def535]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/lastod.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def536]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/lasuser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def537]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/method.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def538]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/nsautherr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def539]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/nseframe.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def540]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/oneeval.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def541]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/register.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def542]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/usi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def543]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/usi.cpp:198:5: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  196|   
#  197|       /* Binary search for specified group id */
#  198|->     i = 0;
#  199|       for (ilow = 0, ihigh = uilptr->uil_count; ilow != ihigh; ) {
#  200|   

Error: CPPCHECK_WARNING: [#def544]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/usrcache.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def545]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libaccess/usrcache.cpp:402:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
#  400|       }
#  401|   
#  402|->     rv = usr_cache_table_get(dbname, &usrtable);
#  403|       if (!usrtable) return LAS_EVAL_FALSE;
#  404|   

Error: CPPCHECK_WARNING: [#def546]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libadmin/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def547]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libadmin/util.c:40:11: warning[deadcode.DeadStores]: Value stored to 'result' during its initialization is never read
#   38|   get_flock_path(void)
#   39|   {
#   40|->     char *result = "";
#   41|       char *port = getenv("SERVER_PORT");
#   42|       result = (char *)MALLOC(strlen("/tmp/lock.%%s.") + strlen(port) + 4);

Error: CLANG_WARNING: [#def548]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libadmin/util.c:42:56: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   40|       char *result = "";
#   41|       char *port = getenv("SERVER_PORT");
#   42|->     result = (char *)MALLOC(strlen("/tmp/lock.%%s.") + strlen(port) + 4);
#   43|       sprintf(result, "/tmp/lock.%%s.%s", port);
#   44|       return result;

Error: CPPCHECK_WARNING: [#def549]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libsi18n/reshash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def550]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libsi18n/txtfile.c: scope_hint: In function 'OpenTextFile'
389-ds-base-3.1.0-build/389-ds-base-3.1.0/lib/libsi18n/txtfile.c:49:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'txtfile' where non-null expected
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
#   47|   
#   48|       txtfile = (TEXTFILE *)malloc(sizeof(TEXTFILE));
#   49|->     memset(txtfile, 0, sizeof(TEXTFILE));
#   50|   
#   51|       txtfile->file = file;

Error: CPPCHECK_WARNING: [#def551]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/rewriters/adfilter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def552]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def553]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def554]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/pk11.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def555]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/std-systemd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def556]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/std.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def557]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:186:9: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  184|   
#  185|       if (token == NULL || tbuf == NULL) {
#  186|->         err = SVRCORE_NoMemory_Error;
#  187|           goto out;
#  188|       }

Error: CLANG_WARNING: [#def558]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:197:9: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  195|   
#  196|       if (socket_path == NULL || ask_path == NULL || tmp_path == NULL) {
#  197|->         err = SVRCORE_NoMemory_Error;
#  198|           if (socket_path) {
#  199|               *socket_path = '\0';

Error: CLANG_WARNING: [#def559]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:237:13: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  235|       if (mkdir(path, 0755) != 0) {
#  236|           if (errno != EEXIST) {
#  237|->             err = SVRCORE_IOOperationError;
#  238|               free(token);
#  239|               token = NULL;

Error: CLANG_WARNING: [#def560]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:272:9: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  270|       if (tmp_fd == NULL) {
#  271|           fprintf(stderr, "SVRCORE systemd:getPin() -> opening ask file FAILED\n");
#  272|->         err = SVRCORE_IOOperationError;
#  273|           free(token);
#  274|           token = NULL;

Error: CLANG_WARNING: [#def561]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:310:9: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  308|       if (rename(tmp_path, ask_path) != 0) {
#  309|           fprintf(stderr, "SVRCORE systemd:getPin() -> renaming ask file FAILED %d\n", err);
#  310|->         err = SVRCORE_IOOperationError;
#  311|           free(token);
#  312|           token = NULL;

Error: CLANG_WARNING: [#def562]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:337:13: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  335|   
#  336|           if (now >= until) {
#  337|->             err = SVRCORE_TimeoutError;
#  338|               free(token);
#  339|               token = NULL;

Error: CLANG_WARNING: [#def563]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:361:17: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  359|           if (data_size < 0) {
#  360|               if (errno != EAGAIN && errno != EINTR) {
#  361|->                 err = SVRCORE_SocketError;
#  362|                   free(token);
#  363|                   token = NULL;

Error: CLANG_WARNING: [#def564]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/systemd-ask-pass.c:411:13: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  409|           // Else, if a -, the input was canceled
#  410|           if  (tbuf[0] == '-') {
#  411|->             err = SVRCORE_NoSuchToken_Error;
#  412|               free(token);
#  413|               token = NULL;

Error: CPPCHECK_WARNING: [#def565]
389-ds-base-3.1.0-build/389-ds-base-3.1.0/src/svrcore/src/user.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def566]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_inlines_a.h:6:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/san.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/ecache.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/pa.h:6: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_stats.h:8: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_structs.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:52: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emap.h: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:344:1: note: in expansion of macro ‘TSD_DATA_SLOW’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:323:1: note: in expansion of macro ‘TSD_DATA_SLOW’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emap.h: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:344:1: note: in expansion of macro ‘TSD_DATA_SLOW’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:323:1: note: in expansion of macro ‘TSD_DATA_SLOW’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:71: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_inlines_a.h: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_stashed’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:77: included_from: Included from here.
#    4|   static inline unsigned
#    5|   arena_ind_get(const arena_t *arena) {
#    6|-> 	return arena->ind;
#    7|   }
#    8|   

Error: CLANG_WARNING: [#def567]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/bin_info.c:2: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:51: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/prof_structs.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/ckh.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tsd.h:14: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tcache_structs.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/cache_bin.h:479:17: warning[deadcode.DeadStores]: Value stored to 'ncached_max' during its initialization is never read
#  477|   cache_bin_nstashed_get_internal(cache_bin_t *bin, cache_bin_info_t *info,
#  478|       bool racy) {
#  479|-> 	cache_bin_sz_t ncached_max = cache_bin_info_ncached_max(info);
#  480|   	uint16_t low_bits_low_bound = cache_bin_low_bits_low_bound_get(bin,
#  481|   	    info);

Error: CLANG_WARNING: [#def568]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/cache_bin.h:493:8: warning[deadcode.DeadStores]: Value stored to 'aligned' during its initialization is never read
#  491|   		assert((uint16_t)(uintptr_t)low_bound == low_bits_low_bound);
#  492|   		void *stashed = *(low_bound + n - 1);
#  493|-> 		bool aligned = cache_bin_nonfast_aligned(stashed);
#  494|   #ifdef JEMALLOC_JET
#  495|   		/* Allow arbitrary pointers to be stashed in tests. */

Error: CLANG_WARNING: [#def569]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/jemalloc_cpp.cpp:10: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:52: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_structs.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_stats.h:8: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/pa.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/base.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/ehooks.h:193:7: warning[deadcode.DeadStores]: Value stored to 'orig_zero' during its initialization is never read
#  191|   ehooks_alloc(tsdn_t *tsdn, ehooks_t *ehooks, void *new_addr, size_t size,
#  192|       size_t alignment, bool *zero, bool *commit) {
#  193|-> 	bool orig_zero = *zero;
#  194|   	void *ret;
#  195|   	extent_hooks_t *extent_hooks = ehooks_get_extent_hooks_ptr(ehooks);

Error: CLANG_WARNING: [#def570]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_log.c:7: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emitter.h:103:3: warning[deadcode.DeadStores]: Value stored to 'written' is never read
#  101|   	fmt_specifier++;
#  102|   	if (justify == emitter_justify_none) {
#  103|-> 		written = malloc_snprintf(out_fmt, out_size,
#  104|   		    "%%%s", fmt_specifier);
#  105|   	} else if (justify == emitter_justify_left) {

Error: CLANG_WARNING: [#def571]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emitter.h:106:3: warning[deadcode.DeadStores]: Value stored to 'written' is never read
#  104|   		    "%%%s", fmt_specifier);
#  105|   	} else if (justify == emitter_justify_left) {
#  106|-> 		written = malloc_snprintf(out_fmt, out_size,
#  107|   		    "%%-%d%s", width, fmt_specifier);
#  108|   	} else {

Error: CLANG_WARNING: [#def572]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emitter.h:109:3: warning[deadcode.DeadStores]: Value stored to 'written' is never read
#  107|   		    "%%-%d%s", width, fmt_specifier);
#  108|   	} else {
#  109|-> 		written = malloc_snprintf(out_fmt, out_size,
#  110|   		    "%%%d%s", width, fmt_specifier);
#  111|   	}

Error: CLANG_WARNING: [#def573]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emitter.h:166:3: warning[deadcode.DeadStores]: Value stored to 'str_written' is never read
#  164|   		break;
#  165|   	case emitter_type_string:
#  166|-> 		str_written = malloc_snprintf(buf, BUF_SIZE, "\"%s\"",
#  167|   		    *(const char *const *)value);
#  168|   		/*

Error: CLANG_WARNING: [#def574]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/bin_info.c:2: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:52: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_structs.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_stats.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/lockedint.h:83:11: warning[deadcode.DeadStores]: Value stored to 'r' during its initialization is never read
#   81|   	LOCKEDINT_MTX_ASSERT_INTERNAL(tsdn, mtx);
#   82|   #ifdef JEMALLOC_ATOMIC_U64
#   83|-> 	uint64_t r = atomic_fetch_sub_u64(&p->val, x, ATOMIC_RELAXED);
#   84|   	assert(r - x <= r);
#   85|   #else

Error: CLANG_WARNING: [#def575]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/lockedint.h:181:9: warning[deadcode.DeadStores]: Value stored to 'r' during its initialization is never read
#  179|   	LOCKEDINT_MTX_ASSERT_INTERNAL(tsdn, mtx);
#  180|   #ifdef JEMALLOC_ATOMIC_U64
#  181|-> 	size_t r = atomic_fetch_sub_zu(&p->val, x, ATOMIC_RELAXED);
#  182|   	assert(r - x <= r);
#  183|   #else

Error: CLANG_WARNING: [#def576]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/bin_info.c:2: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:80: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_inlines_c.h:6: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/log.h:99:2: warning[deadcode.DeadStores]: Value stored to 'dst_offset' is never read
#   97|   	dst_offset += malloc_vsnprintf(buf + dst_offset,
#   98|   	    JEMALLOC_LOG_BUFSIZE - dst_offset, format, ap);
#   99|-> 	dst_offset += malloc_snprintf(buf + dst_offset,
#  100|   	    JEMALLOC_LOG_BUFSIZE - dst_offset, "\n");
#  101|   	va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def577]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/prof_structs.h:8: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:51: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:2: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c: scope_hint: In function ‘tctx_tree_remove’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:857:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:857:14: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
#  855|       assert(nodep->node == node);					\
#  856|       pathp--;								\
#  857|->     if (pathp->node != node) {						\
#  858|   	/* Swap node with its successor. */				\
#  859|   	swap_loc = nodep;						\

Error: GCC_ANALYZER_WARNING (CWE-476): [#def578]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:874:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nodep’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:860:21: note: in expansion of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  872|   	/* The pruned leaf node's child pointers are never accessed   */\
#  873|   	/* again, so don't bother setting them to nil.                */\
#  874|-> 	nodep->node = pathp->node;					\
#  875|   	pathp->node = node;						\
#  876|   	if (nodep == path) {						\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def579]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:922:44: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:79:28: note: in definition of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:79:28: note: in definition of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:79:28: note: in definition of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:922:44: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:79:28: note: in definition of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
#  920|       /* swapped it with its successor), and that the only nodes with   */\
#  921|       /* out-of-date summaries live in path[0], path[1], ..., pathp[-1].*/\
#  922|->     if (rbtn_red_get(a_type, a_field, pathp->node)) {			\
#  923|   	/* Prune red node, which requires no fixup. */			\
#  924|   	assert(pathp[-1].cmp < 0);					\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def580]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:925:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:79:28: note: in definition of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:925:49: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
#  923|   	/* Prune red node, which requires no fixup. */			\
#  924|   	assert(pathp[-1].cmp < 0);					\
#  925|-> 	rbtn_left_set(a_type, a_field, pathp[-1].node, NULL);		\
#  926|   	a_prefix##summarize_swapped_range(path, &pathp[-1], swap_loc);	\
#  927|   	return;								\

Error: GCC_ANALYZER_WARNING (CWE-124): [#def581]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:931:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:931:17: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  929|       /* The node to be pruned is black, so unwind until balance is     */\
#  930|       /* restored.                                                      */\
#  931|->     pathp->node = NULL;							\
#  932|       for (pathp--; (uintptr_t)pathp >= (uintptr_t)path; pathp--) {	\
#  933|   	assert(pathp->cmp != 0);					\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def582]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:934:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:934:18: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └───────────────────────┘
#              ^
#  932|       for (pathp--; (uintptr_t)pathp >= (uintptr_t)path; pathp--) {	\
#  933|   	assert(pathp->cmp != 0);					\
#  934|-> 	if (pathp->cmp < 0) {						\
#  935|   	    rbtn_left_set(a_type, a_field, pathp->node,			\
#  936|   	      pathp[1].node);						\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def583]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:935:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:935:49: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
#  933|   	assert(pathp->cmp != 0);					\
#  934|   	if (pathp->cmp < 0) {						\
#  935|-> 	    rbtn_left_set(a_type, a_field, pathp->node,			\
#  936|   	      pathp[1].node);						\
#  937|   	    if (rbtn_red_get(a_type, a_field, pathp->node)) {		\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def584]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:936:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:34: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:34: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:936:23: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:34: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
#  934|   	if (pathp->cmp < 0) {						\
#  935|   	    rbtn_left_set(a_type, a_field, pathp->node,			\
#  936|-> 	      pathp[1].node);						\
#  937|   	    if (rbtn_red_get(a_type, a_field, pathp->node)) {		\
#  938|   		a_type *right = rbtn_right_get(a_type, a_field,		\

Error: GCC_ANALYZER_WARNING (CWE-124): [#def585]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1058:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:996:33: note: in expansion of macro ‘rbtn_right_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1058:33: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
# 1056|   			rbtn_left_get(a_type, a_field, tnode),		\
# 1057|   			rbtn_right_get(a_type, a_field, tnode));	\
# 1058|-> 		    pathp->node = tnode;				\
# 1059|   		}							\
# 1060|   	    }								\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def586]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1063:50: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:73:64: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1063:50: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
# 1061|   	} else {							\
# 1062|   	    a_type *left;						\
# 1063|-> 	    rbtn_right_set(a_type, a_field, pathp->node,		\
# 1064|   	      pathp[1].node);						\
# 1065|   	    left = rbtn_left_get(a_type, a_field, pathp->node);		\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def587]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1064:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:73:64: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:73:64: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:73:64: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1064:23: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:73:64: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
# 1062|   	    a_type *left;						\
# 1063|   	    rbtn_right_set(a_type, a_field, pathp->node,		\
# 1064|-> 	      pathp[1].node);						\
# 1065|   	    left = rbtn_left_get(a_type, a_field, pathp->node);		\
# 1066|   	    if (rbtn_red_get(a_type, a_field, left)) {			\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def588]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1159:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1134:24: note: in expansion of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1145:21: note: in expansion of macro ‘rbtn_black_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1159:34: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └───────────────────────┘
#              ^
# 1157|   		    /* subtree root.                                  */\
# 1158|   		    assert((uintptr_t)pathp > (uintptr_t)path);		\
# 1159|-> 		    if (pathp[-1].cmp < 0) {				\
# 1160|   			rbtn_left_set(a_type, a_field, pathp[-1].node,	\
# 1161|   			  tnode);					\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def589]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1160:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1134:24: note: in expansion of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1160:65: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
# 1158|   		    assert((uintptr_t)pathp > (uintptr_t)path);		\
# 1159|   		    if (pathp[-1].cmp < 0) {				\
# 1160|-> 			rbtn_left_set(a_type, a_field, pathp[-1].node,	\
# 1161|   			  tnode);					\
# 1162|   		    } else {						\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def590]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1163:66: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1134:24: note: in expansion of macro ‘rbtn_red_get’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1145:21: note: in expansion of macro ‘rbtn_black_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1163:66: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
# 1161|   			  tnode);					\
# 1162|   		    } else {						\
# 1163|-> 			rbtn_right_set(a_type, a_field, pathp[-1].node,	\
# 1164|   			  tnode);					\
# 1165|   		    }							\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def591]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1210:38: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1194:21: note: in expansion of macro ‘rbtn_black_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1210:38: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └───────────────────────┘
#              ^
# 1208|   			rbtree->rbt_root = tnode;			\
# 1209|   		    } else {						\
# 1210|-> 			if (pathp[-1].cmp < 0) {			\
# 1211|   			    rbtn_left_set(a_type, a_field,		\
# 1212|   			      pathp[-1].node, tnode);			\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def592]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1212:40: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1194:21: note: in expansion of macro ‘rbtn_black_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1212:40: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:64:6: note: in definition of macro ‘rbtn_left_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
# 1210|   			if (pathp[-1].cmp < 0) {			\
# 1211|   			    rbtn_left_set(a_type, a_field,		\
# 1212|-> 			      pathp[-1].node, tnode);			\
# 1213|   			} else {					\
# 1214|   			    rbtn_right_set(a_type, a_field,		\

Error: GCC_ANALYZER_WARNING (CWE-127): [#def593]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1215:40: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:820:1: note: in definition of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1194:21: note: in expansion of macro ‘rbtn_black_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:1215:40: note: valid subscripts for ‘path’ are ‘[0]’ to ‘[127]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:74:24: note: in definition of macro ‘rbtn_right_set’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rb.h:564:5: note: in expansion of macro ‘rb_gen_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88:1: note: in expansion of macro ‘rb_gen’
#  └────────────────────────────────────────┘
#                      ^
# 1213|   			} else {					\
# 1214|   			    rbtn_right_set(a_type, a_field,		\
# 1215|-> 			      pathp[-1].node, tnode);			\
# 1216|   			}						\
# 1217|   		        a_prefix##summarize_swapped_range(path,		\

Error: CLANG_WARNING: [#def594]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/emap.c:2: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:52: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_structs.h:4: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/arena_stats.h:8: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/pa.h:6: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/ecache.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/san.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/emap.h:5: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rtree.h:304:2: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value
#  302|   
#  303|   	rtree_contents_encode(contents, &bits, &additional);
#  304|-> 	rtree_leaf_elm_write_commit(tsdn, rtree, elm, bits, additional);
#  305|   }
#  306|   

Error: CPPCHECK_WARNING (CWE-786): [#def595]
389-ds-base-3.1.0-build/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.
#  402|   } while (0)
#  403|   	/* Check the first cache entry. */
#  404|-> 	RTREE_CACHE_CHECK_L2(0);
#  405|   	/* Search the remaining cache elements. */
#  406|   	for (unsigned i = 1; i < RTREE_CTX_NCACHE_L2; i++) {

Error: CLANG_WARNING: [#def596]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/rtree.h:498:3: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value
#  496|   		assert(!clearing || rtree_leaf_elm_read(tsdn, rtree, elm,
#  497|   		    /* dependent */ true).edata != NULL);
#  498|-> 		rtree_leaf_elm_write_commit(tsdn, rtree, elm, bits, additional);
#  499|   		elm++;
#  500|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def597]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:7: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c: scope_hint: In function ‘seq_store_hooks’
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/seq.h:30:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf[i]’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
#   28|   	atomic_fence(ATOMIC_RELEASE);					\
#   29|   	for (size_t i = 0; i < sizeof(buf) / sizeof(size_t); i++) {	\
#   30|-> 		atomic_store_zu(&dst->data[i], buf[i], ATOMIC_RELAXED);	\
#   31|   	}								\
#   32|   	atomic_store_zu(&dst->seq, old_seq + 2, ATOMIC_RELEASE);	\

Error: CLANG_WARNING: [#def598]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/jemalloc_cpp.cpp:10: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_includes.h:78: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tcache_inlines.h:158:8: warning[deadcode.DeadStores]: Value stored to 'ret' during its initialization is never read
#  156|   		unsigned remain = max >> opt_lg_tcache_flush_small_div;
#  157|   		tcache_bin_flush_small(tsd, tcache, bin, binind, remain);
#  158|-> 		bool ret = cache_bin_dalloc_easy(bin, ptr);
#  159|   		assert(ret);
#  160|   	}

Error: CLANG_WARNING: [#def599]
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/tcache_inlines.h:176:8: warning[deadcode.DeadStores]: Value stored to 'ret' during its initialization is never read
#  174|   		    &tcache_bin_info[binind]) >> opt_lg_tcache_flush_large_div;
#  175|   		tcache_bin_flush_large(tsd, tcache, bin, binind, remain);
#  176|-> 		bool ret = cache_bin_dalloc_easy(bin, ptr);
#  177|   		assert(ret);
#  178|   	}

Error: CPPCHECK_WARNING: [#def600]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/arena.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def601]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/arena.c:1276:9: warning[deadcode.DeadStores]: Value stored to 'usize' during its initialization is never read
# 1274|   
# 1275|   	edata_t *edata = emap_edata_lookup(tsdn, &arena_emap_global, ptr);
# 1276|-> 	size_t usize = edata_usize_get(edata);
# 1277|   	size_t bumped_usize = arena_prof_demote(tsdn, edata, ptr);
# 1278|   	if (config_opt_safety_checks && usize < SC_LARGE_MINCLASS) {

Error: CPPCHECK_WARNING: [#def602]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/background_thread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def603]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/background_thread.c:137:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  135|   		background_thread_wakeup_time_set(tsdn, info,
#  136|   		    BACKGROUND_THREAD_INDEFINITE_SLEEP);
#  137|-> 		ret = pthread_cond_wait(&info->cond, &info->mtx.lock);
#  138|   		assert(ret == 0);
#  139|   	} else {

Error: CLANG_WARNING: [#def604]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/background_thread.c:159:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  157|   
#  158|   		assert(!background_thread_indefinite_sleep(info));
#  159|-> 		ret = pthread_cond_timedwait(&info->cond, &info->mtx.lock, &ts);
#  160|   		assert(ret == ETIMEDOUT || ret == 0);
#  161|   	}

Error: CLANG_WARNING: [#def605]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/background_thread.c:316:7: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  314|   	malloc_mutex_unlock(tsdn, &background_thread_info[0].mtx);
#  315|   	for (unsigned i = 1; i < max_background_threads; i++) {
#  316|-> 		if (created_threads[i]) {
#  317|   			continue;
#  318|   		}

Error: CLANG_WARNING: [#def606]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/background_thread.c:386:7: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  384|   		background_thread_info_t *info = &background_thread_info[i];
#  385|   		assert(info->state != background_thread_paused);
#  386|-> 		if (created_threads[i]) {
#  387|   			background_threads_disable_single(tsd, info);
#  388|   		} else {

Error: CLANG_WARNING: [#def607]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/background_thread.c:657:7: warning[deadcode.DeadStores]: Value stored to 'ret' during its initialization is never read
#  655|   		malloc_mutex_lock(tsdn, &info->mtx);
#  656|   		info->state = background_thread_stopped;
#  657|-> 		int ret = pthread_cond_init(&info->cond, NULL);
#  658|   		assert(ret == 0);
#  659|   		background_thread_info_init(tsdn, info);

Error: CPPCHECK_WARNING: [#def608]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/base.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def609]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/bin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def610]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/bin_info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def611]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/bitmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def612]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/buf_writer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def613]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/cache_bin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def614]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/cache_bin.c:12:9: warning[deadcode.DeadStores]: Value stored to 'stack_size' during its initialization is never read
#   10|       cache_bin_sz_t ncached_max) {
#   11|   	assert(ncached_max <= CACHE_BIN_NCACHED_MAX);
#   12|-> 	size_t stack_size = (size_t)ncached_max * sizeof(void *);
#   13|   	assert(stack_size < ((size_t)1 << (sizeof(cache_bin_sz_t) * 8)));
#   14|   	info->ncached_max = (cache_bin_sz_t)ncached_max;

Error: CLANG_WARNING: [#def615]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/cache_bin.c:86:17: warning[deadcode.DeadStores]: Value stored to 'free_spots' during its initialization is never read
#   84|   	bin->low_bits_full = (uint16_t)(uintptr_t)full_position;
#   85|   	bin->low_bits_empty = (uint16_t)(uintptr_t)empty_position;
#   86|-> 	cache_bin_sz_t free_spots = cache_bin_diff(bin,
#   87|   	    bin->low_bits_full, (uint16_t)(uintptr_t)bin->stack_head,
#   88|   	    /* racy */ false);

Error: CPPCHECK_WARNING: [#def616]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ckh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def617]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/counter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def618]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def619]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:1322:34: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1320|   	for (i = 0; i < ctl_arenas->narenas; i++) {
# 1321|   		ctl_arena_t *ctl_arena = arenas_i(i);
# 1322|-> 		bool initialized = (tarenas[i] != NULL);
# 1323|   
# 1324|   		ctl_arena->initialized = initialized;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def620]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c: scope_hint: In function ‘experimental_thread_activity_callback_ctl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:1819:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&t_old’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:3905:9: note: in expansion of macro ‘READ’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:3905:9: note: in expansion of macro ‘READ’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:3905:9: note: in expansion of macro ‘READ’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:3905:9: note: in expansion of macro ‘READ’
# 1817|   			size_t	copylen = (sizeof(t) <= *oldlenp)	\
# 1818|   			    ? sizeof(t) : *oldlenp;			\
# 1819|-> 			memcpy(oldp, (void *)&(v), copylen);		\
# 1820|   			*oldlenp = copylen;				\
# 1821|   			ret = EINVAL;					\

Error: CLANG_WARNING: [#def621]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:2467:2: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'oldlenp')
# 2465|   
# 2466|   	READONLY();
# 2467|-> 	VERIFY_READ(unsigned);
# 2468|   	if (tcaches_create(tsd, b0get(), &tcache_ind)) {
# 2469|   		ret = EFAULT;

Error: CLANG_WARNING: [#def622]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:3101:2: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'oldlenp')
# 3099|   	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
# 3100|   
# 3101|-> 	VERIFY_READ(unsigned);
# 3102|   	arena_config_t config = arena_config_default;
# 3103|   	WRITE(config.extent_hooks, extent_hooks_t *);

Error: CLANG_WARNING: [#def623]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:3126:2: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'oldlenp')
# 3124|   
# 3125|   	arena_config_t config = arena_config_default;
# 3126|-> 	VERIFY_READ(unsigned);
# 3127|   	WRITE(config, arena_config_t);
# 3128|   

Error: CLANG_WARNING: [#def624]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ctl.c:4273:2: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'oldlenp')
# 4271|   	int ret;
# 4272|   
# 4273|-> 	VERIFY_READ(size_t);
# 4274|   
# 4275|   	batch_alloc_packet_t batch_alloc_packet;

Error: CPPCHECK_WARNING: [#def625]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/decay.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def626]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ecache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def627]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/edata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def628]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/edata_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def629]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ehooks.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def630]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/emap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def631]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/emap.c:368:19: warning[deadcode.DeadStores]: Value stored to 'contents' during its initialization is never read
#  366|   	EMAP_DECLARE_RTREE_CTX;
#  367|   
#  368|-> 	rtree_contents_t contents = rtree_read(tsdn, &emap->rtree, rtree_ctx,
#  369|   	    (uintptr_t)edata_base_get(edata));
#  370|   	assert(contents.edata == edata);

Error: CPPCHECK_WARNING: [#def632]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/eset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def633]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/eset.c:146:9: warning[deadcode.DeadStores]: Value stored to 'npages' during its initialization is never read
#  144|   	}
#  145|   	edata_list_inactive_remove(&eset->lru, edata);
#  146|-> 	size_t npages = size >> LG_PAGE;
#  147|   	/*
#  148|   	 * As in eset_insert, we hold eset->mtx and so don't need atomic

Error: CPPCHECK_WARNING: [#def634]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/exp_grow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def635]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def636]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c:844:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'coalesced')
#  842|   				if (ecache->delay_coalesce) {
#  843|   					/* Do minimal coalescing. */
#  844|-> 					*coalesced = true;
#  845|   					return edata;
#  846|   				}

Error: CLANG_WARNING: [#def637]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c:860:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'coalesced')
#  858|   				if (ecache->delay_coalesce) {
#  859|   					/* Do minimal coalescing. */
#  860|-> 					*coalesced = true;
#  861|   					return edata;
#  862|   				}

Error: CLANG_WARNING: [#def638]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c:869:14: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'coalesced')
#  867|   
#  868|   	if (ecache->delay_coalesce) {
#  869|-> 		*coalesced = false;
#  870|   	}
#  871|   	return edata;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def639]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c: scope_hint: In function ‘extent_try_coalesce_impl’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c:869:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘coalesced’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c: scope_hint: In function ‘extent_try_coalesce_impl’
#  867|   
#  868|   	if (ecache->delay_coalesce) {
#  869|-> 		*coalesced = false;
#  870|   	}
#  871|   	return edata;

Error: CLANG_WARNING: [#def640]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c:939:12: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  937|   			edata = extent_try_coalesce_large(tsdn, pac, ehooks,
#  938|   			    ecache, edata, &coalesced);
#  939|-> 		} while (coalesced);
#  940|   		if (edata_size_get(edata) >=
#  941|   		    atomic_load_zu(&pac->oversize_threshold, ATOMIC_RELAXED)

Error: CLANG_WARNING: [#def641]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent.c:1084:17: warning[deadcode.DeadStores]: Value stored to 'state' during its initialization is never read
# 1082|   	assert(edata_base_get(edata) != NULL);
# 1083|   	assert(edata_size_get(edata) != 0);
# 1084|-> 	extent_state_t state = edata_state_get(edata);
# 1085|   	assert(state == extent_state_retained || state == extent_state_active);
# 1086|   	assert(emap_edata_is_acquired(tsdn, pac->emap, edata));

Error: CPPCHECK_WARNING: [#def642]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent_dss.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def643]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/extent_mmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def644]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/fxp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def645]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def646]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c: scope_hint: In function ‘hook_install_locked’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:34:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hooks_internal.in_use’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:6: included_from: Included from here.
389-ds-base-3.1.0-build/jemalloc-5.3.0/include/jemalloc/internal/mutex.h: scope_hint: In function ‘hook_install_locked’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
#   32|   		/* We hold mu; no concurrent access. */
#   33|   		assert(success);
#   34|-> 		if (!hooks_internal.in_use) {
#   35|   			hooks_internal.hooks = *to_install;
#   36|   			hooks_internal.in_use = true;

Error: CPPCHECK_WARNING: [#def647]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hpa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def648]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hpa.c:777:9: warning[deadcode.DeadStores]: Value stored to 'nallocs' during its initialization is never read
#  775|   	edata_list_active_t results;
#  776|   	edata_list_active_init(&results);
#  777|-> 	size_t nallocs = hpa_alloc_batch(tsdn, self, size, /* nallocs */ 1,
#  778|   	    &results, deferred_work_generated);
#  779|   	assert(nallocs == 0 || nallocs == 1);

Error: CPPCHECK_WARNING: [#def649]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hpa_hooks.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def650]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/hpdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def651]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/inspect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def652]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/jemalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def653]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/jemalloc_cpp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def654]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/large.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def655]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def656]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c:16:35: warning[-Wanalyzer-out-of-bounds]: buffer over-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c: scope_hint: In function ‘log_var_update_state’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c: scope_hint: In function ‘log_var_update_state’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c:16:35: note: read of 1 byte from after the end of ‘log_var_names’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c:16:35: note: valid subscripts for ‘log_var_names’ are ‘[0]’ to ‘[0]’
#                                      └──────────────────────────────────┘
#                                                       ^
#   14|   log_var_extract_segment(const char* segment_begin) {
#   15|   	const char *end;
#   16|-> 	for (end = segment_begin; *end != '\0' && *end != '|'; end++) {
#   17|   	}
#   18|   	return end;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def657]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c: scope_hint: In function ‘log_var_matches_segment’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c:30:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c: scope_hint: In function ‘log_var_matches_segment’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c: scope_hint: In function ‘log_var_matches_segment’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c:30:33: note: read of 1 byte from after the end of ‘log_var_names’
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/log.c:30:33: note: valid subscripts for ‘log_var_names’ are ‘[0]’ to ‘[0]’
#                                      └──────────────────────────────────┘
#                                                       ^
#   28|   	ptrdiff_t log_var_len = log_var_end - log_var_begin;
#   29|   	/* The special '.' segment matches everything. */
#   30|-> 	if (segment_len == 1 && *segment_begin == '.') {
#   31|   		return true;
#   32|   	}

Error: CPPCHECK_WARNING: [#def658]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/malloc_io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def659]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/malloc_io.c:477:5: warning[deadcode.DeadStores]: Value stored to 'first_width_digit' is never read
#  475|   				    ERANGE);
#  476|   				width = (int)uwidth;
#  477|-> 				first_width_digit = false;
#  478|   				break;
#  479|   			} default:

Error: CPPCHECK_WARNING: [#def660]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/mutex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def661]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/nstime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def662]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/pa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def663]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/pa_extra.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def664]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/pac.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def665]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/pac.c:452:10: warning[deadcode.DeadStores]: Value stored to 'npurged' during its initialization is never read
#  450|   	    npages_decay_max, &decay_extents);
#  451|   	if (npurge != 0) {
#  452|-> 		size_t npurged = pac_decay_stashed(tsdn, pac, decay,
#  453|   		    decay_stats, ecache, fully_decay, &decay_extents);
#  454|   		assert(npurged == npurge);

Error: CPPCHECK_WARNING: [#def666]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/pages.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def667]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/pai.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def668]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/peak_event.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def669]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def670]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def671]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:70: error[ctunullpointer]: Null pointer dereference: a
#   68|   static int
#   69|   prof_tctx_comp(const prof_tctx_t *a, const prof_tctx_t *b) {
#   70|-> 	uint64_t a_thr_uid = a->thr_uid;
#   71|   	uint64_t b_thr_uid = b->thr_uid;
#   72|   	int ret = (a_thr_uid > b_thr_uid) - (a_thr_uid < b_thr_uid);

Error: CPPCHECK_WARNING (CWE-476): [#def672]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:88: error[ctunullpointer]: Null pointer dereference: node
#   86|   }
#   87|   
#   88|-> rb_gen(static UNUSED, tctx_tree_, prof_tctx_tree_t, prof_tctx_t,
#   89|       tctx_link, prof_tctx_comp)
#   90|   

Error: CPPCHECK_WARNING (CWE-476): [#def673]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:93: error[ctunullpointer]: Null pointer dereference: a
#   91|   static int
#   92|   prof_gctx_comp(const prof_gctx_t *a, const prof_gctx_t *b) {
#   93|-> 	unsigned a_len = a->bt.len;
#   94|   	unsigned b_len = b->bt.len;
#   95|   	unsigned comp_len = (a_len < b_len) ? a_len : b_len;

Error: CPPCHECK_WARNING (CWE-476): [#def674]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:103: error[ctunullpointer]: Null pointer dereference: node
#  101|   }
#  102|   
#  103|-> rb_gen(static UNUSED, gctx_tree_, prof_gctx_tree_t, prof_gctx_t, dump_link,
#  104|       prof_gctx_comp)
#  105|   

Error: CPPCHECK_WARNING (CWE-476): [#def675]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:109: error[ctunullpointer]: Null pointer dereference: a
#  107|   prof_tdata_comp(const prof_tdata_t *a, const prof_tdata_t *b) {
#  108|   	int ret;
#  109|-> 	uint64_t a_uid = a->thr_uid;
#  110|   	uint64_t b_uid = b->thr_uid;
#  111|   

Error: CPPCHECK_WARNING (CWE-476): [#def676]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_data.c:122: error[ctunullpointer]: Null pointer dereference: node
#  120|   }
#  121|   
#  122|-> rb_gen(static UNUSED, tdata_tree_, prof_tdata_tree_t, prof_tdata_t, tdata_link,
#  123|       prof_tdata_comp)
#  124|   

Error: CPPCHECK_WARNING: [#def677]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def678]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_recent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def679]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_recent.c:169:17: warning[deadcode.DeadStores]: Value stored to 'old_recent_alloc' during its initialization is never read
#  167|   	malloc_mutex_assert_owner(tsd_tsdn(tsd), &prof_recent_alloc_mtx);
#  168|   	assert(recent_alloc != NULL);
#  169|-> 	prof_recent_t *old_recent_alloc =
#  170|   	    edata_prof_recent_alloc_update_internal(tsd, edata, recent_alloc);
#  171|   	assert(old_recent_alloc == NULL);

Error: CLANG_WARNING: [#def680]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_recent.c:180:17: warning[deadcode.DeadStores]: Value stored to 'old_recent_alloc' during its initialization is never read
#  178|   	malloc_mutex_assert_owner(tsd_tsdn(tsd), &prof_recent_alloc_mtx);
#  179|   	assert(recent_alloc != NULL);
#  180|-> 	prof_recent_t *old_recent_alloc =
#  181|   	    edata_prof_recent_alloc_update_internal(tsd, edata, NULL);
#  182|   	assert(old_recent_alloc == recent_alloc);

Error: CPPCHECK_WARNING: [#def681]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_stats.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def682]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/prof_sys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def683]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/psset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def684]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/rtree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def685]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/safety_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def686]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/san.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def687]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/san_bump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def688]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/sc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def689]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/sec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def690]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/sec.c:42:13: warning[deadcode.DeadStores]: Value stored to 'bin_start' during its initialization is never read
#   40|   	sec_bin_t *bin_cur = (sec_bin_t *)&shard_cur[opts->nshards];
#   41|   	/* Just for asserts, below. */
#   42|-> 	sec_bin_t *bin_start = bin_cur;
#   43|   
#   44|   	for (size_t i = 0; i < opts->nshards; i++) {

Error: CPPCHECK_WARNING: [#def691]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/stats.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def692]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/stats.c:1834:13: warning[deadcode.DeadStores]: Although the value stored to 'j' is used in the enclosing expression, the value is never actually read from 'j'
# 1832|   		/* Unmerged stats. */
# 1833|   		if (unmerged) {
# 1834|-> 			for (i = j = 0; i < narenas; i++) {
# 1835|   				if (initialized[i]) {
# 1836|   					char arena_ind_str[20];

Error: CPPCHECK_WARNING: [#def693]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/sz.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def694]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def695]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c:267:4: warning[deadcode.DeadStores]: Value stored to 'found_mismatch' is never read
#  265|   		szind_t true_szind = edata_szind_get(edatas[i].edata);
#  266|   		if (true_szind != szind) {
#  267|-> 			found_mismatch = true;
#  268|   			safety_check_fail_sized_dealloc(
#  269|   			    /* current_dealloc */ false,

Error: CLANG_WARNING: [#def696]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c:408:11: warning[deadcode.DeadStores]: Value stored to 'ptr' during its initialization is never read
#  406|   		if (!small) {
#  407|   			for (unsigned i = 0; i < nflush; i++) {
#  408|-> 				void *ptr = ptrs->ptr[i];
#  409|   				edata = item_edata[i].edata;
#  410|   				assert(ptr != NULL && edata != NULL);

Error: CLANG_WARNING: [#def697]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c:557:8: warning[deadcode.DeadStores]: Value stored to 'head_content' during its initialization is never read
#  555|   	 * of the stack.  Checking the stack head and ncached to verify.
#  556|   	 */
#  557|-> 	void *head_content = *cache_bin->stack_head;
#  558|   	cache_bin_sz_t orig_cached = cache_bin_ncached_get_local(cache_bin,
#  559|   	    info);

Error: CLANG_WARNING: [#def698]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c:558:17: warning[deadcode.DeadStores]: Value stored to 'orig_cached' during its initialization is never read
#  556|   	 */
#  557|   	void *head_content = *cache_bin->stack_head;
#  558|-> 	cache_bin_sz_t orig_cached = cache_bin_ncached_get_local(cache_bin,
#  559|   	    info);
#  560|   

Error: CLANG_WARNING: [#def699]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tcache.c:784:17: warning[deadcode.DeadStores]: Value stored to 'tcache_slow' during its initialization is never read
#  782|   static void
#  783|   tcache_flush_cache(tsd_t *tsd, tcache_t *tcache) {
#  784|-> 	tcache_slow_t *tcache_slow = tcache->tcache_slow;
#  785|   	assert(tcache_slow->arena != NULL);
#  786|   

Error: CPPCHECK_WARNING: [#def700]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/thread_event.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def701]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/thread_event.c:107:11: warning[deadcode.DeadStores]: Value stored to 'current_bytes' during its initialization is never read
#  105|   static void
#  106|   te_assert_invariants_impl(tsd_t *tsd, te_ctx_t *ctx) {
#  107|-> 	uint64_t current_bytes = te_ctx_current_bytes_get(ctx);
#  108|   	uint64_t last_event = te_ctx_last_event_get(ctx);
#  109|   	uint64_t next_event = te_ctx_next_event_get(ctx);

Error: CLANG_WARNING: [#def702]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/thread_event.c:110:11: warning[deadcode.DeadStores]: Value stored to 'next_event_fast' during its initialization is never read
#  108|   	uint64_t last_event = te_ctx_last_event_get(ctx);
#  109|   	uint64_t next_event = te_ctx_next_event_get(ctx);
#  110|-> 	uint64_t next_event_fast = te_ctx_next_event_fast_get(ctx);
#  111|   
#  112|   	assert(last_event != next_event);

Error: CLANG_WARNING: [#def703]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/thread_event.c:120:11: warning[deadcode.DeadStores]: Value stored to 'interval' during its initialization is never read
#  118|   
#  119|   	/* The subtraction is intentionally susceptible to underflow. */
#  120|-> 	uint64_t interval = next_event - last_event;
#  121|   
#  122|   	/* The subtraction is intentionally susceptible to underflow. */

Error: CLANG_WARNING: [#def704]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/thread_event.c:124:11: warning[deadcode.DeadStores]: Value stored to 'min_wait' during its initialization is never read
#  122|   	/* The subtraction is intentionally susceptible to underflow. */
#  123|   	assert(current_bytes - last_event < interval);
#  124|-> 	uint64_t min_wait = te_next_event_compute(tsd, te_ctx_is_alloc(ctx));
#  125|   	/*
#  126|   	 * next_event should have been pushed up only except when no event is

Error: CPPCHECK_WARNING: [#def705]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/ticker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def706]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/tsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def707]
389-ds-base-3.1.0-build/jemalloc-5.3.0/src/witness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-84.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-name389-ds-base-3.1.0-10.fc41
store-results-to/tmp/tmppticjdx7/389-ds-base-3.1.0-10.fc41.tar.xz
time-created2024-07-03 12:27:58
time-finished2024-07-03 12:47:07
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmppticjdx7/389-ds-base-3.1.0-10.fc41.tar.xz' '--gcc-analyze' '/tmp/tmppticjdx7/389-ds-base-3.1.0-10.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9