Task #61773 - fixed.err
back to task #61773download
Error: GCC_ANALYZER_WARNING (CWE-688): 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|