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|
| analyzer-version-clippy | 1.88.0 |
| analyzer-version-cppcheck | 2.17.1 |
| analyzer-version-gcc | 15.1.1 |
| analyzer-version-gcc-analyzer | 15.1.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.88.0 |
| diffbase-analyzer-version-cppcheck | 2.17.1 |
| diffbase-analyzer-version-gcc | 15.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.1.1 |
| diffbase-analyzer-version-shellcheck | 0.10.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-98.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | bluechi-1.1.0-0.202507041316.git29590ad |
| diffbase-store-results-to | /tmp/tmpuzyu2qjy/bluechi-1.1.0-0.202507041316.git29590ad.tar.xz |
| diffbase-time-created | 2025-07-05 16:10:30 |
| diffbase-time-finished | 2025-07-05 16:12:06 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmpuzyu2qjy/bluechi-1.1.0-0.202507041316.git29590ad.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpuzyu2qjy/bluechi-1.1.0-0.202507041316.git29590ad.src.rpm' |
| diffbase-tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-98.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | bluechi-1.1.0-0.202506240630.gitdb11d5d |
| store-results-to | /tmp/tmp1gywvgkr/bluechi-1.1.0-0.202506240630.gitdb11d5d.tar.xz |
| time-created | 2025-07-05 16:05:35 |
| time-finished | 2025-07-05 16:10:12 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmp1gywvgkr/bluechi-1.1.0-0.202506240630.gitdb11d5d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp1gywvgkr/bluechi-1.1.0-0.202506240630.gitdb11d5d.src.rpm' |
| tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |