Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
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): [#def2]
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): [#def3]
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): [#def4]
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): [#def5]
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);

Scan Properties

analyzer-version-clippy1.98.1
analyzer-version-cppcheck2.22.0
analyzer-version-gcc16.2.1
analyzer-version-gcc-analyzer16.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.98.1
diffbase-analyzer-version-cppcheck2.22.0
diffbase-analyzer-version-gcc16.2.1
diffbase-analyzer-version-gcc-analyzer16.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-144.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-name389-ds-base-3.4.0.202609181747gita1ba34a60-main
diffbase-store-results-to/tmp/tmp4939raat/389-ds-base-3.4.0.202609181747gita1ba34a60-main.tar.xz
diffbase-time-created2026-09-21 12:14:40
diffbase-time-finished2026-09-21 12:30:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-5282c352-9e0b-4497-88ba-db0e40b68122' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmp4939raat/389-ds-base-3.4.0.202609181747gita1ba34a60-main.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp4939raat/389-ds-base-3.4.0.202609181747gita1ba34a60-main.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260914.142338.gbd0b33d-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-144.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-name389-ds-base-3.4.0.202609211201git67baf422a-pr7875
store-results-to/tmp/tmplcoy9tmd/389-ds-base-3.4.0.202609211201git67baf422a-pr7875.tar.xz
time-created2026-09-21 12:30:41
time-finished2026-09-21 12:43:42
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-45d57061-9f57-4077-a8f3-aba75a838664' '-t' 'cppcheck,clippy,shellcheck,gcc,unicontrol' '-o' '/tmp/tmplcoy9tmd/389-ds-base-3.4.0.202609211201git67baf422a-pr7875.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmplcoy9tmd/389-ds-base-3.4.0.202609211201git67baf422a-pr7875.src.rpm'
tool-versioncsmock-3.8.7.20260914.142338.gbd0b33d-1.el9