Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
bluechi-1.1.0/src/libbluechi/common/common.h:17: included_from: Included from here.
bluechi-1.1.0/src/libbluechi/cli/command.h:8: included_from: Included from here.
bluechi-1.1.0/src/client/method-status.h:10: included_from: Included from here.
bluechi-1.1.0/src/client/method-status.c:6: included_from: Included from here.
bluechi-1.1.0/src/client/method-status.c: scope_hint: In function ‘node_connection_fmt_last_seen’
bluechi-1.1.0/src/libbluechi/common/string-util.h:18:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*con.state’ where non-null expected
bluechi-1.1.0/src/client/method-status.c:485:13: note: in expansion of macro ‘streq’
bluechi-1.1.0/src/client/method-status.c:476:24: note: in expansion of macro ‘malloc0’
bluechi-1.1.0/src/client/method-status.c: scope_hint: In function ‘node_connection_fmt_last_seen’
bluechi-1.1.0/src/client/method-status.c:761:21: note: in expansion of macro ‘streq’
bluechi-1.1.0/src/client/method-status.c:458:28: note: in expansion of macro ‘malloc0’
bluechi-1.1.0/src/libbluechi/common/common.h:15: included_from: Included from here.
bluechi-1.1.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’
bluechi-1.1.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’
bluechi-1.1.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’
bluechi-1.1.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’
bluechi-1.1.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’
bluechi-1.1.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’
bluechi-1.1.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’
bluechi-1.1.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’
bluechi-1.1.0/src/client/method-status.c:549:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’
bluechi-1.1.0/src/client/method-status.c:549:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’
bluechi-1.1.0/src/client/method-status.c:485:13: note: in expansion of macro ‘streq’
bluechi-1.1.0/src/libbluechi/common/common.h:9: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#   16|   #define SYMBOL_GLOB_ONE '?'
#   17|   
#   18|-> #define streq(a, b) (strcmp((a), (b)) == 0)
#   19|   #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
#   20|   

Scan Properties

analyzer-version-clippy1.88.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.88.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.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-135.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebluechi-1.1.0-0.202507070811.git81fa92b
diffbase-store-results-to/tmp/tmp84gc1y5w/bluechi-1.1.0-0.202507070811.git81fa92b.tar.xz
diffbase-time-created2025-07-07 08:30:04
diffbase-time-finished2025-07-07 08:34:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmp84gc1y5w/bluechi-1.1.0-0.202507070811.git81fa92b.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp84gc1y5w/bluechi-1.1.0-0.202507070811.git81fa92b.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-135.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebluechi-1.1.0-0.202506240630.gitdb11d5d
store-results-to/tmp/tmp606vv98l/bluechi-1.1.0-0.202506240630.gitdb11d5d.tar.xz
time-created2025-07-07 08:25:50
time-finished2025-07-07 08:29:48
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmp606vv98l/bluechi-1.1.0-0.202506240630.gitdb11d5d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp606vv98l/bluechi-1.1.0-0.202506240630.gitdb11d5d.src.rpm'
tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9