Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15: included_from: Included from here.
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h:11: included_from: Included from here.
bluechi-0.9.0-build/bluechi-0.9.0/src/client/client.h:8: included_from: Included from here.
bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c:10: included_from: Included from here.
bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c: scope_hint: In function ‘fetch_unit_file_list’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:88:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unit_file_list’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’
bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c:80:17: note: in expansion of macro ‘LIST_APPEND’
bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c:140:65: note: in expansion of macro ‘malloc0’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’
bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c:80:17: note: in expansion of macro ‘LIST_APPEND’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’
bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c:80:17: note: in expansion of macro ‘LIST_APPEND’
#   86|   #define LIST_FIND_TAIL(name, item, tail)                    \
#   87|           do {                                                \
#   88|->                 typeof(*(item)) *_item = (item);            \
#   89|                   if (!_item)                                 \
#   90|                           (tail) = NULL;                      \

Scan Properties

analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginscppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-192.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebluechi-0.9.0-0.202407301353.git5fc35bf
diffbase-store-results-to/tmp/tmpu635ilr1/bluechi-0.9.0-0.202407301353.git5fc35bf.tar.xz
diffbase-time-created2024-07-30 15:53:41
diffbase-time-finished2024-07-30 15:55:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck' '-o' '/tmp/tmpu635ilr1/bluechi-0.9.0-0.202407301353.git5fc35bf.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmpu635ilr1/bluechi-0.9.0-0.202407301353.git5fc35bf.src.rpm'
diffbase-tool-versioncsmock-3.6.0-1.el9
enabled-pluginscppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-192.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namebluechi-0.9.0-0.202407301546.git901eaf4
store-results-to/tmp/tmp6eypt595/bluechi-0.9.0-0.202407301546.git901eaf4.tar.xz
time-created2024-07-30 15:55:24
time-finished2024-07-30 15:56:25
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,cppcheck' '-o' '/tmp/tmp6eypt595/bluechi-0.9.0-0.202407301546.git901eaf4.tar.xz' '--gcc-analyze' '--cppcheck-add-flag=--check-level=exhaustive' '/tmp/tmp6eypt595/bluechi-0.9.0-0.202407301546.git901eaf4.src.rpm'
tool-versioncsmock-3.6.0-1.el9