Task #141096 - added.err

back to task #141096
download
Error: GCC_ANALYZER_WARNING (CWE-476):
jemalloc-5.4.0/include/jemalloc/internal/arena_inlines.h:27:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
jemalloc-5.4.0/src/arenas_management.c: scope_hint: In function ‘arena_choose_hard’
jemalloc-5.4.0/include/jemalloc/internal/arena_inlines.h:11: included_from: Included from here.
jemalloc-5.4.0/src/arenas_management.c: scope_hint: In function ‘arena_choose_hard’
jemalloc-5.4.0/src/arenas_management.c: scope_hint: In function ‘arena_choose_hard’
#   25|   static inline unsigned
#   26|   arena_ind_get(const arena_t *arena) {
#   27|-> 	return arena->ind;
#   28|   }
#   29|   

Error: GCC_ANALYZER_WARNING (CWE-476):
jemalloc-5.4.0/include/jemalloc/internal/arena_inlines.h:27:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ret’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/include/jemalloc/internal/emap.h:366:9: note: in expansion of macro ‘util_assume’
jemalloc-5.4.0/include/jemalloc/internal/san.h:6: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/ecache.h:7: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/pa.h:7: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/arena_stats.h:9: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/emap.h: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/include/jemalloc/internal/mutex.h:8: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/lockedint.h:6: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/arena_stats.h:6: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/tsd_internals.h:90:9: note: in expansion of macro ‘O’
jemalloc-5.4.0/include/jemalloc/internal/tsd.h:52:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.4.0/include/jemalloc/internal/tsd_internals.h:90:9: note: in expansion of macro ‘O’
jemalloc-5.4.0/include/jemalloc/internal/tsd.h:30:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
#   25|   static inline unsigned
#   26|   arena_ind_get(const arena_t *arena) {
#   27|-> 	return arena->ind;
#   28|   }
#   29|   

Error: GCC_ANALYZER_WARNING (CWE-476):
jemalloc-5.4.0/include/jemalloc/internal/thread_event.h:113:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/emap.h:230:9: note: in expansion of macro ‘EMAP_DECLARE_RTREE_CTX’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/emap.h:262:9: note: in expansion of macro ‘EMAP_DECLARE_RTREE_CTX’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/util.h:52:48: note: in definition of macro ‘unlikely’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/thread_event.h: scope_hint: In function ‘xallocx’
#  111|   JEMALLOC_ALWAYS_INLINE uint64_t
#  112|   te_ctx_current_bytes_get(te_ctx_t *ctx) {
#  113|-> 	return *ctx->current;
#  114|   }
#  115|   

Error: GCC_ANALYZER_WARNING (CWE-476):
jemalloc-5.4.0/include/jemalloc/internal/tsd_internals.h:214:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
jemalloc-5.4.0/include/jemalloc/internal/jemalloc_preamble.h:27: included_from: Included from here.
jemalloc-5.4.0/src/jemalloc.c:1: included_from: Included from here.
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/san.h:6: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/ecache.h:7: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/pa.h:7: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/arena_stats.h:9: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/emap.h:230:9: note: in expansion of macro ‘EMAP_DECLARE_RTREE_CTX’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/emap.h:262:9: note: in expansion of macro ‘EMAP_DECLARE_RTREE_CTX’
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/assert.h:3: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/atomic_gcc_atomic.h:5: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/atomic.h:8: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/arena_stats.h:5: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/util.h:52:48: note: in definition of macro ‘unlikely’
jemalloc-5.4.0/src/jemalloc.c:22: included_from: Included from here.
jemalloc-5.4.0/include/jemalloc/internal/arena_inlines.h:223:20: note: in expansion of macro ‘unlikely’
jemalloc-5.4.0/include/jemalloc/internal/jemalloc_internal_inlines_c.h:6: included_from: Included from here.
jemalloc-5.4.0/src/jemalloc.c:15: included_from: Included from here.
jemalloc-5.4.0/src/jemalloc.c: scope_hint: In function ‘xallocx’
jemalloc-5.4.0/include/jemalloc/internal/util.h:52:48: note: in definition of macro ‘unlikely’
#  212|   JEMALLOC_ALWAYS_INLINE uint8_t
#  213|   tsd_state_get(tsd_t *tsd) {
#  214|-> 	return tsd->state;
#  215|   }
#  216|   

Error: GCC_ANALYZER_WARNING (CWE-457):
jemalloc-5.4.0/src/arena.c:1039:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.edata’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/include/jemalloc/internal/jemalloc_internal_types.h:131:62: note: in definition of macro ‘VARIABLE_ARRAY_UNSAFE’
jemalloc-5.4.0/src/arena.c:1252:9: note: in expansion of macro ‘VARIABLE_ARRAY’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/include/jemalloc/internal/emap.h:366:9: note: in expansion of macro ‘util_assume’
jemalloc-5.4.0/include/jemalloc/internal/emap.h: scope_hint: In function ‘arena_ptr_array_flush’
jemalloc-5.4.0/include/jemalloc/internal/tsd_internals.h:90:9: note: in expansion of macro ‘O’
jemalloc-5.4.0/include/jemalloc/internal/tsd.h:52:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.4.0/include/jemalloc/internal/tsd_internals.h:90:9: note: in expansion of macro ‘O’
jemalloc-5.4.0/include/jemalloc/internal/tsd.h:30:1: note: in expansion of macro ‘TSD_DATA_SLOW’
jemalloc-5.4.0/src/arena.c: scope_hint: In function ‘arena_ptr_array_flush’
# 1037|   		unsigned prev_flush_start = flush_start;
# 1038|   
# 1039|-> 		edata_t *cur_edata = item_edata[flush_start].edata;
# 1040|   		unsigned cur_arena_ind = edata_arena_ind_get(cur_edata);
# 1041|   		arena_t *cur_arena = arena_get(tsdn, cur_arena_ind, false);