Task #141238 - fixed.err

back to task #141238
download
Error: GCC_ANALYZER_WARNING (CWE-457):
jemalloc-5.3.0/include/jemalloc/internal/emap.h:340:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.rtree_leaf’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/include/jemalloc/internal/emap.h: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:344:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:323:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/include/jemalloc/internal/tcache_structs.h:4: included_from: Included from here.
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:14: included_from: Included from here.
jemalloc-5.3.0/src/tcache.c:567:9: note: in expansion of macro ‘CACHE_BIN_PTR_ARRAY_DECLARE’
jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_types.h:127:50: note: in definition of macro ‘VARIABLE_ARRAY’
jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_types.h:127:50: note: in definition of macro ‘VARIABLE_ARRAY’
jemalloc-5.3.0/src/tcache.c: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/include/jemalloc/internal/emap.h: scope_hint: In function ‘tcache_bin_flush_edatas_lookup’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:344:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:89:5: note: in expansion of macro ‘O’
jemalloc-5.3.0/include/jemalloc/internal/tsd.h:323:1: note: in expansion of macro ‘TSD_DATA_SLOW’
#  338|   
#  339|   	for (size_t i = 0; i < nptrs; i++) {
#  340|-> 		rtree_leaf_elm_t *elm = result[i].rtree_leaf;
#  341|   		rtree_contents_t contents = rtree_leaf_elm_read(tsd_tsdn(tsd),
#  342|   		    &emap->rtree, elm, /* dependent */ true);

Error: CPPCHECK_WARNING (CWE-786):
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: GCC_ANALYZER_WARNING (CWE-457):
jemalloc-5.3.0/src/hook.c:7: included_from: Included from here.
jemalloc-5.3.0/src/hook.c: scope_hint: In function ‘seq_store_hooks’
jemalloc-5.3.0/include/jemalloc/internal/seq.h:30:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buf[i]’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/include/jemalloc/internal/jemalloc_internal_decls.h:66: included_from: Included from here.
jemalloc-5.3.0/include/jemalloc/internal/jemalloc_preamble.h:5: included_from: Included from here.
jemalloc-5.3.0/src/hook.c:1: included_from: Included from here.
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
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: GCC_ANALYZER_WARNING (CWE-476):
jemalloc-5.3.0/src/extent.c: scope_hint: In function ‘extent_try_coalesce_impl’
jemalloc-5.3.0/src/extent.c:869:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘coalesced’
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: GCC_ANALYZER_WARNING (CWE-457):
jemalloc-5.3.0/src/hook.c: scope_hint: In function ‘hook_install_locked’
jemalloc-5.3.0/src/hook.c:34:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hooks_internal.in_use’
jemalloc-5.3.0/src/hook.c:6: included_from: Included from here.
jemalloc-5.3.0/include/jemalloc/internal/mutex.h: scope_hint: In function ‘hook_install_locked’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
jemalloc-5.3.0/src/hook.c:15:1: note: in expansion of macro ‘seq_define’
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 (CWE-398):
jemalloc-5.3.0/src/jemalloc_cpp.cpp:102: error[throwInNoexceptFunction]: Unhandled exception thrown in function declared not to throw exceptions.
#  100|   		return ptr;
#  101|   	}
#  102|-> 	return handleOOM(size, IsNoExcept);
#  103|   }
#  104|   

Error: CPPCHECK_WARNING (CWE-476):
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):
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):
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):
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):
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):
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|