Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
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/controller/controller.c:10: included_from: Included from here.
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h: scope_hint: In function ‘controller_method_list_units’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:67:16: note: in expansion of macro ‘malloc0’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:67:16: note: in expansion of macro ‘malloc0’
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/controller/controller.c:745:9: note: in expansion of macro ‘LIST_FOREACH’
bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h: scope_hint: In function ‘controller_method_list_units’
#   54|   static inline void *malloc0_array(size_t base_size, size_t element_size, size_t n_elements) {
#   55|           /* Check for overflow of multiplication */
#   56|->         if (element_size > 0 && n_elements > SIZE_MAX / element_size) {
#   57|                   return NULL;
#   58|           }

Scan Properties

analyzer-version-clippy1.80.0
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.80.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-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-81.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebluechi-0.9.0-0.202408091328.git8957a76
diffbase-store-results-to/tmp/tmps17d7_b_/bluechi-0.9.0-0.202408091328.git8957a76.tar.xz
diffbase-time-created2024-08-09 13:36:28
diffbase-time-finished2024-08-09 13:37:41
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,cppcheck,shellcheck,unicontrol' '-o' '/tmp/tmps17d7_b_/bluechi-0.9.0-0.202408091328.git8957a76.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmps17d7_b_/bluechi-0.9.0-0.202408091328.git8957a76.src.rpm'
diffbase-tool-versioncsmock-3.6.1-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-81.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namebluechi-0.9.0-0.202408081025.git30ae91c
store-results-to/tmp/tmp0f3pzmif/bluechi-0.9.0-0.202408081025.git30ae91c.tar.xz
time-created2024-08-09 13:34:25
time-finished2024-08-09 13:36:04
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,cppcheck,shellcheck,unicontrol' '-o' '/tmp/tmp0f3pzmif/bluechi-0.9.0-0.202408081025.git30ae91c.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp0f3pzmif/bluechi-0.9.0-0.202408081025.git30ae91c.src.rpm'
tool-versioncsmock-3.6.1-1.el9