gc-8.2.6-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
gc-8.2.6-build/gc-8.2.6/cord/cordbscs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
gc-8.2.6-build/gc-8.2.6/cord/cordprnt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
gc-8.2.6-build/gc-8.2.6/cord/cordxtra.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
gc-8.2.6-build/gc-8.2.6/cord/cordxtra.c: scope_hint: In function 'CORD_ec_flush_buf'
gc-8.2.6-build/gc-8.2.6/cord/cordxtra.c:444:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*x.ec_buf'
gc-8.2.6-build/gc-8.2.6/cord/cordxtra.c:39: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/cord/cordxtra.c:442:17: note: in expansion of macro 'GC_MALLOC_ATOMIC'
#  442|       s = (char *)GC_MALLOC_ATOMIC(len + 1);
#  443|       if (NULL == s) OUT_OF_MEMORY;
#  444|->     memcpy(s, x[0].ec_buf, len);
#  445|       s[len] = '\0';
#  446|       x[0].ec_cord = CORD_cat_char_star(x[0].ec_cord, s, len);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
gc-8.2.6-build/gc-8.2.6/extra/gc.c:63: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/os_dep.c: scope_hint: In function 'GC_linux_main_stack_base'
gc-8.2.6-build/gc-8.2.6/os_dep.c:110:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/proc/self/stat", 0)'
gc-8.2.6-build/gc-8.2.6/os_dep.c:123:26: note: in expansion of macro 'PROC_READ'
gc-8.2.6-build/gc-8.2.6/extra/gc.c:62: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/extra/gc.c:51: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/include/private/dbg_mlc.h:28: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/backgraph.c:15: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/extra/gc.c:40: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/misc.c:1204:7: note: in expansion of macro 'GET_TIME'
gc-8.2.6-build/gc-8.2.6/extra/gc.c:58: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/os_dep.c:123:26: note: in expansion of macro 'PROC_READ'
gc-8.2.6-build/gc-8.2.6/os_dep.c:123:26: note: in expansion of macro 'PROC_READ'
#  108|         || defined(PROC_VDB) || defined(SOFT_VDB)) && !defined(PROC_READ)) \
#  109|       || defined(CPPCHECK)
#  110|-> # define PROC_READ read
#  111|             /* Should probably call the real read, if read is wrapped.    */
#  112|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
gc-8.2.6-build/gc-8.2.6/extra/gc.c:76: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/pthread_support.c: scope_hint: In function 'GC_check_finalizer_nested'
gc-8.2.6-build/gc-8.2.6/pthread_support.c:745:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
gc-8.2.6-build/gc-8.2.6/alloc.c:1290:5: note: in expansion of macro 'GC_INVOKE_FINALIZERS'
gc-8.2.6-build/gc-8.2.6/extra/gc.c:53: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/include/private/gc_priv.h:291: included_from: Included from here.
gc-8.2.6-build/gc-8.2.6/finalize.c:1296:5: note: in expansion of macro 'LOCK'
#  743|         if (EXPECT(NULL == me, FALSE)) return NULL;
#  744|   #   endif
#  745|->     nesting_level = me->finalizer_nested;
#  746|       if (nesting_level) {
#  747|         /* We are inside another GC_invoke_finalizers().          */

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-44.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegc-8.2.6-1.fc41
store-results-to/tmp/tmp6n2ylgc8/gc-8.2.6-1.fc41.tar.xz
time-created2024-07-03 12:40:41
time-finished2024-07-03 12:41:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6n2ylgc8/gc-8.2.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp6n2ylgc8/gc-8.2.6-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9