Task #11094 - bluechi-0.9.0-0.202409130922.gita175616/scan-results.js
back to task #11094download
{ "scan": { "analyzer-version-clippy": "1.81.0", "analyzer-version-cppcheck": "2.15.0", "analyzer-version-gcc": "14.2.1", "analyzer-version-gcc-analyzer": "14.2.1", "analyzer-version-shellcheck": "0.10.0", "analyzer-version-unicontrol": "0.0.2", "enabled-plugins": "clippy, cppcheck, gcc, shellcheck, unicontrol", "exit-code": 0, "host": "ip-172-16-1-59.us-west-2.compute.internal", "mock-config": "fedora-rawhide-x86_64", "project-name": "bluechi-0.9.0-0.202409130922.gita175616", "store-results-to": "/tmp/tmp0vathpjv/bluechi-0.9.0-0.202409130922.gita175616.tar.xz", "time-created": "2024-09-13 09:30:10", "time-finished": "2024-09-13 09:31:28", "tool": "csmock", "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,clippy,shellcheck' '-o' '/tmp/tmp0vathpjv/bluechi-0.9.0-0.202409130922.gita175616.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp0vathpjv/bluechi-0.9.0-0.202409130922.gita175616.src.rpm'", "tool-version": "csmock-3.7.0-1.el9" }, "defects": [ { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "19ff37907555590bf469d236b96d25aa9b77f291", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 462, "column": 9, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘calloc(1, 72)’", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 0, "event": "scope_hint", "message": "In function ‘agent_create_request_full’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1728, "column": 12, "event": "note", "message": "(1) entry to ‘agent_method_job_cancel’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1731, "column": 12, "event": "note", "message": "(2) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1738, "column": 31, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1738, "column": 31, "event": "note", "message": "(4) inlined call to ‘agent_find_jobtracker_by_bluechi_id’ from ‘agent_method_job_cancel’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 146, "column": 56, "event": "note", "message": "(5) following ‘true’ branch (when ‘track’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1719, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_FOREACH’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1720, "column": 29, "event": "note", "message": "(6) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 0, "event": "scope_hint", "message": "In function ‘agent_create_request_full’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1739, "column": 12, "event": "note", "message": "(7) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1745, "column": 42, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 1744, "column": 57, "event": "note", "message": "(9) calling ‘agent_create_request_full’ from ‘agent_method_job_cancel’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 262, "column": 24, "event": "note", "message": "(10) entry to ‘agent_create_request_full’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(11) allocated here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 268, "column": 57, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 269, "column": 12, "event": "note", "message": "(12) assuming ‘calloc(1, 72)’ is non-NULL", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 269, "column": 12, "event": "note", "message": "(13) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 273, "column": 24, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 274, "column": 22, "event": "note", "message": "(15) inlined call to ‘agent_ref’ from ‘agent_create_request_full’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 462, "column": 9, "event": "note", "message": "(16) ‘calloc(1, 72)’ leaks here; was allocated at (11)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 460| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 461| Agent *agent_ref(Agent *agent) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 462|-> assert(agent->ref_count > 0);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 464| agent->ref_count++;", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "19ff37907555590bf469d236b96d25aa9b77f291", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 462, "column": 21, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘calloc(1, 72)’", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 0, "event": "scope_hint", "message": "In function ‘agent_create_request_full’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 2824, "column": 12, "event": "note", "message": "(1) entry to ‘agent_stop_local_proxy_service’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 2825, "column": 12, "event": "note", "message": "(2) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/network.h", "line": 17, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 16, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h", "line": 92, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 2829, "column": 9, "event": "note", "message": "in expansion of macro ‘bc_log_infof’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 2833, "column": 57, "event": "note", "message": "(4) inlined call to ‘agent_create_request’ from ‘agent_stop_local_proxy_service’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 291, "column": 16, "event": "note", "message": "(5) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 0, "event": "scope_hint", "message": "In function ‘agent_create_request_full’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 262, "column": 24, "event": "note", "message": "(6) entry to ‘agent_create_request_full’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(7) allocated here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 268, "column": 57, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 269, "column": 12, "event": "note", "message": "(8) assuming ‘calloc(1, 72)’ is non-NULL", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 269, "column": 12, "event": "note", "message": "(9) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 273, "column": 24, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 274, "column": 22, "event": "note", "message": "(11) inlined call to ‘agent_ref’ from ‘agent_create_request_full’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c", "line": 462, "column": 21, "event": "note", "message": "(12) ‘calloc(1, 72)’ leaks here; was allocated at (7)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 460| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 461| Agent *agent_ref(Agent *agent) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 462|-> assert(agent->ref_count > 0);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 463| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 464| agent->ref_count++;", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 401, "language": "c/c++", "tool": "cppcheck", "hash_v1": "fa2cb377fd9c7dd515b6828028a093b7519683aa", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/node.c", "line": 1521, "event": "error[memleak]", "message": "Memory leak: setup", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 1519| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1520| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1521|-> return steal_pointer(&setup);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1522| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1523| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 401, "language": "c/c++", "tool": "cppcheck", "hash_v1": "871ef19de10970fcbc5da68ffda5f8cf79ace5fe", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/node.c", "line": 1916, "event": "error[memleak]", "message": "Memory leak: unit_name_copy", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 1914| dep = malloc0(sizeof(ProxyDependency));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1915| if (dep == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1916|-> return -ENOMEM;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1917| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 1918| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 401, "language": "c/c++", "tool": "cppcheck", "hash_v1": "f9d25cfa3da295d3fb5fe40b91f16a0ca296b861", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c", "line": 43, "event": "error[memleak]", "message": "Memory leak: monitor", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 41| monitor->unit_name = strdup(unit_name);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 42| if (monitor->unit_name == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 43|-> return NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 44| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 45| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 401, "language": "c/c++", "tool": "cppcheck", "hash_v1": "f9d25cfa3da295d3fb5fe40b91f16a0ca296b861", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c", "line": 48, "event": "error[memleak]", "message": "Memory leak: monitor", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 46| monitor->proxy_object_path = strdup(proxy_object_path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 47| if (monitor->proxy_object_path == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 48|-> return NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 401, "language": "c/c++", "tool": "cppcheck", "hash_v1": "e5ae13367787933b695ee9ef84eedae8698db39d", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c", "line": 48, "event": "error[memleak]", "message": "Memory leak: monitor.unit_name", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 46| monitor->proxy_object_path = strdup(proxy_object_path);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 47| if (monitor->proxy_object_path == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 48|-> return NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 49| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 50| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 401, "language": "c/c++", "tool": "cppcheck", "hash_v1": "5008c3be9abaddd4bd1c3a671e1e4c43b562a706", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/cli/command.c", "line": 106, "event": "error[memleak]", "message": "Memory leak: opt", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 104| opt->value = strdup(value);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 105| if (opt->value == NULL) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 106|-> return -ENOMEM;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 107| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 108| } else {", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 401, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "795eb891502191084282fddfd7b77964aae56f3b", "key_event_idx": 3, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h", "line": 11, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 10, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 0, "event": "scope_hint", "message": "In function ‘agent_fleet_request_start’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 56, "column": 44, "event": "warning[-Wanalyzer-malloc-leak]", "message": "leak of ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 692, "column": 12, "event": "note", "message": "(1) entry to ‘agent_fleet_request_start’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 699, "column": 15, "event": "note", "message": "(2) calling ‘malloc0_array’ from ‘agent_fleet_request_start’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 54, "column": 21, "event": "note", "message": "(3) entry to ‘malloc0_array’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 56, "column": 12, "event": "note", "message": "(4) following ‘true’ branch (when ‘element_size != 0’)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 56, "column": 44, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 56, "column": 30, "event": "note", "message": "(6) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 61, "column": 16, "event": "note", "message": "(7) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 63, "column": 12, "event": "note", "message": "(8) following ‘false’ branch (when ‘array_size <= total_size’)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(9) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 67, "column": 16, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(10) allocated here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 67, "column": 16, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 699, "column": 15, "event": "note", "message": "(11) returning to ‘agent_fleet_request_start’ from ‘malloc0_array’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 700, "column": 12, "event": "note", "message": "(12) assuming ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ is non-NULL", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 700, "column": 12, "event": "note", "message": "(13) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 703, "column": 32, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 15, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 146, "column": 56, "event": "note", "message": "(15) following ‘false’ branch (when ‘node’ is NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 708, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_FOREACH’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 726, "column": 9, "event": "note", "message": "(16) inlined call to ‘agent_fleet_request_maybe_done’ from ‘agent_fleet_request_start’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c", "line": 666, "column": 16, "event": "note", "message": "(17) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 0, "event": "scope_hint", "message": "In function ‘agent_fleet_request_start’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 56, "column": 44, "event": "note", "message": "(18) ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ leaks here; was allocated at (10)", "verbosity_level": 2 }, { "file_name": "", "line": 0, "event": "#", "message": " 54| static inline void *malloc0_array(size_t base_size, size_t element_size, size_t n_elements) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 55| /* Check for overflow of multiplication */", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 56|-> if (element_size > 0 && n_elements > SIZE_MAX / element_size) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 57| return NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 58| }", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "1c0855ab5e28bd0f7f84d5fd675d381827cf640c", "key_event_idx": 5, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 15, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h", "line": 11, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/client.h", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 10, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 0, "event": "scope_hint", "message": "In function ‘fetch_unit_file_list’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 88, "column": 34, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL ‘unit_file_list’", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 80, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 209, "column": 5, "event": "note", "message": "(1) entry to ‘method_list_unit_files’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 212, "column": 12, "event": "note", "message": "(2) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 213, "column": 24, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 213, "column": 24, "event": "note", "message": "(4) calling ‘method_list_unit_files_on_all’ from ‘method_list_unit_files’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 86, "column": 12, "event": "note", "message": "(5) entry to ‘method_list_unit_files_on_all’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 87, "column": 65, "event": "note", "message": "(6) calling ‘new_unit_file_list’ from ‘method_list_unit_files_on_all’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 139, "column": 15, "event": "note", "message": "(7) entry to ‘new_unit_file_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(8) allocated here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 140, "column": 65, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 142, "column": 12, "event": "note", "message": "(9) assuming ‘calloc(1, 32)’ is NULL", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 142, "column": 12, "event": "note", "message": "(10) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 87, "column": 65, "event": "note", "message": "(12) returning to ‘method_list_unit_files_on_all’ from ‘new_unit_file_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 89, "column": 17, "event": "note", "message": "(13) calling ‘fetch_unit_file_list’ from ‘method_list_unit_files_on_all’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 33, "column": 12, "event": "note", "message": "(14) entry to ‘fetch_unit_file_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 54, "column": 12, "event": "note", "message": "(15) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 59, "column": 13, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 60, "column": 12, "event": "note", "message": "(17) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 69, "column": 20, "event": "note", "message": "(19) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 73, "column": 20, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 73, "column": 20, "event": "note", "message": "(21) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 76, "column": 20, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 76, "column": 20, "event": "note", "message": "(23) following ‘false’ branch (when ‘node_name’ is NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 88, "column": 34, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 80, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 88, "column": 34, "event": "note", "message": "(25) dereference of NULL ‘unit_file_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-unit-files.c", "line": 80, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 86| #define LIST_FIND_TAIL(name, item, tail) \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| do { \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88|-> typeof(*(item)) *_item = (item); \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89| if (!_item) \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| (tail) = NULL; \\", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 476, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "a03a8bc26e3dae1a4dad37550f617f46879fc03c", "key_event_idx": 5, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 15, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h", "line": 11, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/client.h", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 10, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 0, "event": "scope_hint", "message": "In function ‘fetch_unit_list’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 88, "column": 34, "event": "warning[-Wanalyzer-null-dereference]", "message": "dereference of NULL ‘unit_list’", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 74, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 209, "column": 5, "event": "note", "message": "(1) entry to ‘method_list_units’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 212, "column": 12, "event": "note", "message": "(2) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 213, "column": 24, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 213, "column": 24, "event": "note", "message": "(4) calling ‘method_list_units_on_all’ from ‘method_list_units’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 80, "column": 12, "event": "note", "message": "(5) entry to ‘method_list_units_on_all’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 81, "column": 51, "event": "note", "message": "(6) calling ‘new_unit_list’ from ‘method_list_units_on_all’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 133, "column": 11, "event": "note", "message": "(7) entry to ‘new_unit_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(8) allocated here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 134, "column": 51, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 136, "column": 12, "event": "note", "message": "(9) assuming ‘calloc(1, 32)’ is NULL", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 136, "column": 12, "event": "note", "message": "(10) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 81, "column": 51, "event": "note", "message": "(12) returning to ‘method_list_units_on_all’ from ‘new_unit_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 83, "column": 17, "event": "note", "message": "(13) calling ‘fetch_unit_list’ from ‘method_list_units_on_all’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 34, "column": 17, "event": "note", "message": "(14) entry to ‘fetch_unit_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 48, "column": 12, "event": "note", "message": "(15) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 53, "column": 13, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 54, "column": 12, "event": "note", "message": "(17) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 63, "column": 20, "event": "note", "message": "(19) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 67, "column": 20, "event": "note", "message": "(20) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 67, "column": 20, "event": "note", "message": "(21) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 70, "column": 20, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 70, "column": 20, "event": "note", "message": "(23) following ‘false’ branch (when ‘node_name’ is NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 88, "column": 34, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 74, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 88, "column": 34, "event": "note", "message": "(25) dereference of NULL ‘unit_list’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c", "line": 74, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 86| #define LIST_FIND_TAIL(name, item, tail) \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 87| do { \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 88|-> typeof(*(item)) *_item = (item); \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 89| if (!_item) \\", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 90| (tail) = NULL; \\", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "bc4fdc5535f30485f9613323a4d8ef9a10abd412", "key_event_idx": 4, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 17, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.h", "line": 15, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 10, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 0, "event": "scope_hint", "message": "In function ‘check_str’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h", "line": 14, "column": 22, "event": "warning[-Wanalyzer-null-argument]", "message": "use of NULL ‘expected’ where non-null expected", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 36, "column": 14, "event": "note", "message": "in expansion of macro ‘streq’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 104, "column": 6, "event": "note", "message": "(1) entry to ‘test_agent_apply_config_none’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 107, "column": 12, "event": "note", "message": "(2) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 112, "column": 23, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 113, "column": 12, "event": "note", "message": "(4) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 118, "column": 16, "event": "note", "message": "(5) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 118, "column": 16, "event": "note", "message": "(6) calling ‘check_agent’ from ‘test_agent_apply_config_none’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 43, "column": 6, "event": "note", "message": "(7) entry to ‘check_agent’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 52, "column": 28, "event": "note", "message": "(8) calling ‘check_str’ from ‘check_agent’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 31, "column": 6, "event": "note", "message": "(9) entry to ‘check_str’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 32, "column": 12, "event": "note", "message": "(10) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 35, "column": 12, "event": "note", "message": "(11) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 35, "column": 12, "event": "note", "message": "(12) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h", "line": 14, "column": 22, "event": "note", "message": "(13) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 36, "column": 14, "event": "note", "message": "in expansion of macro ‘streq’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h", "line": 14, "column": 22, "event": "note", "message": "(14) argument 1 (‘expected’) NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c", "line": 36, "column": 14, "event": "note", "message": "in expansion of macro ‘streq’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/string.h", "line": 156, "column": 12, "event": "note", "message": "argument 1 of ‘strcmp’ must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12| #include \"protocol.h\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14|-> #define streq(a, b) (strcmp((a), (b)) == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 15| #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 16| ", "verbosity_level": 1 } ] }, { "checker": "GCC_ANALYZER_WARNING", "cwe": 688, "language": "c/c++", "tool": "gcc-analyzer", "hash_v1": "e4c67c7feb9a6682fea334c4d334035098251472", "key_event_idx": 5, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 17, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/cli/command.h", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.h", "line": 8, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 6, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 0, "event": "scope_hint", "message": "In function ‘node_connection_fmt_last_seen’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h", "line": 14, "column": 22, "event": "warning[-Wanalyzer-possible-null-argument]", "message": "use of possibly-NULL ‘*con.state’ where non-null expected", "verbosity_level": 0 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 484, "column": 13, "event": "note", "message": "in expansion of macro ‘streq’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 771, "column": 5, "event": "note", "message": "(1) entry to ‘method_status’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 772, "column": 9, "event": "note", "message": "(2) following ‘case 0:’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 773, "column": 9, "event": "note", "message": "(3) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 774, "column": 24, "event": "note", "message": "(4) calling ‘method_print_node_status’ from ‘method_status’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 678, "column": 12, "event": "note", "message": "(5) entry to ‘method_print_node_status’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 692, "column": 12, "event": "note", "message": "(6) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 697, "column": 40, "event": "note", "message": "(7) inlined call to ‘nodes_new’ from ‘method_print_node_status’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(8) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 475, "column": 24, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 0, "event": "scope_hint", "message": "In function ‘node_connection_fmt_last_seen’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 698, "column": 12, "event": "note", "message": "(9) following ‘false’ branch (when ‘nodes’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 703, "column": 13, "event": "note", "message": "(10) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 704, "column": 12, "event": "note", "message": "(11) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(12) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 708, "column": 52, "event": "note", "message": "(13) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 709, "column": 29, "event": "note", "message": "(14) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 716, "column": 20, "event": "note", "message": "(15) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 721, "column": 20, "event": "note", "message": "(16) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 721, "column": 20, "event": "note", "message": "(17) following ‘false’ branch (when ‘node_name’ is NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h", "line": 14, "column": 22, "event": "note", "message": "(18) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 725, "column": 21, "event": "note", "message": "in expansion of macro ‘streq’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 736, "column": 30, "event": "note", "message": "(19) calling ‘node_new’ from ‘method_print_node_status’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 446, "column": 17, "event": "note", "message": "(20) entry to ‘node_new’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 454, "column": 12, "event": "note", "message": "(21) following ‘false’ branch (when ‘node’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 52, "column": 21, "event": "note", "message": "(22) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 457, "column": 28, "event": "note", "message": "in expansion of macro ‘malloc0’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 458, "column": 12, "event": "note", "message": "(23) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 463, "column": 34, "event": "note", "message": "(24) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 465, "column": 35, "event": "note", "message": "(25) this call could return NULL", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 15, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 89, "column": 20, "event": "note", "message": "(26) following ‘true’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 52, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_FIND_TAIL’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 470, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 104, "column": 46, "event": "note", "message": "(27) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 53, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_INSERT_AFTER’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 470, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 104, "column": 28, "event": "note", "message": "(28) following ‘false’ branch (when ‘_item’ is NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 53, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_INSERT_AFTER’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 470, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 106, "column": 41, "event": "note", "message": "(29) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 53, "column": 17, "event": "note", "message": "in expansion of macro ‘LIST_INSERT_AFTER’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 470, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_APPEND’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 736, "column": 30, "event": "note", "message": "(30) returning to ‘method_print_node_status’ from ‘node_new’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 737, "column": 20, "event": "note", "message": "(31) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 741, "column": 20, "event": "note", "message": "(32) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 741, "column": 20, "event": "note", "message": "(33) following ‘false’ branch (when ‘do_watch == 0’)...", "verbosity_level": 2 }, { "file_name": "cc1", "line": 0, "event": "note", "message": "(34) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 708, "column": 52, "event": "note", "message": "(35) following ‘false’ branch...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 761, "column": 12, "event": "note", "message": "(36) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 761, "column": 12, "event": "note", "message": "(37) following ‘false’ branch (when ‘node_name’ is NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 766, "column": 9, "event": "note", "message": "(38) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 766, "column": 9, "event": "note", "message": "(39) calling ‘print_nodes’ from ‘method_print_node_status’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 536, "column": 13, "event": "note", "message": "(40) entry to ‘print_nodes’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 537, "column": 12, "event": "note", "message": "(41) following ‘false’ branch (when ‘clear_screen == 0’)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 543, "column": 9, "event": "note", "message": "(42) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 149, "column": 32, "event": "note", "message": "(43) following ‘true’ branch (when ‘curr’ is non-NULL)...", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 548, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_FOREACH_SAFE’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h", "line": 149, "column": 41, "event": "note", "message": "(44) ...to here", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 548, "column": 9, "event": "note", "message": "in expansion of macro ‘LIST_FOREACH_SAFE’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 549, "column": 50, "event": "note", "message": "(45) calling ‘node_connection_fmt_last_seen’ from ‘print_nodes’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 483, "column": 14, "event": "note", "message": "(46) entry to ‘node_connection_fmt_last_seen’", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h", "line": 14, "column": 22, "event": "note", "message": "(47) argument 1 (‘*con.state’) from (25) could be NULL where non-null expected", "verbosity_level": 2 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c", "line": 484, "column": 13, "event": "note", "message": "in expansion of macro ‘streq’", "verbosity_level": 1 }, { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h", "line": 9, "event": "included_from", "message": "Included from here.", "verbosity_level": 1 }, { "file_name": "/usr/include/string.h", "line": 156, "column": 12, "event": "note", "message": "argument 1 of ‘strcmp’ must be non-null", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 12| #include \"protocol.h\"", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 13| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 14|-> #define streq(a, b) (strcmp((a), (b)) == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 15| #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 16| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "538de452f07e4223bd0f249a144d9e2feaa04dca", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/cfg/cfg_get_set_test.c", "line": 31, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: expected_value", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 29| assert(null_value || found_value != NULL);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 30| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 31|-> assert(null_value || streq(value, expected_value));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "736daf297c292bb98e3ed3401422da34b2ae38ff", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/cfg/cfg_get_set_test.c", "line": 31, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: value", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 29| assert(null_value || found_value != NULL);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 30| ", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 31|-> assert(null_value || streq(value, expected_value));", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| }", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| ", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "b1e953e82a4a16b158cec2062cd834aa19b75ed2", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/network/assemble_tcp_address.c", "line": 77, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: expectedResult", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 75| _cleanup_free_ char *result = assemble_tcp_address(input);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 76| if ((result == NULL && expectedResult != NULL) || (result != NULL && expectedResult == NULL) ||", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 77|-> (result != NULL && !streq(result, expectedResult))) {", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 78| _cleanup_free_ char *msg = NULL;", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 79| int r = asprintf(", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "6df6847a27bcbc6cda7500ed1b808961d045e001", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/network/is_ipv4_test.c", "line": 21, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: in", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20| \"FAILED: is_ipv4('%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 21|-> in,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| bool_to_str(expected),", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 23| bool_to_str(result));", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "72af501a10227a5b6c9c80345846443a02d699b3", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/network/is_ipv6_test.c", "line": 21, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: in", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20| \"FAILED: is_ipv6('%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 21|-> in,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| bool_to_str(expected),", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 23| bool_to_str(result));", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "e2cc70b449cfef5fe4b3ec16ab35b9e433e4b61d", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/ends_with_test.c", "line": 20, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: str", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 18| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| \"FAILED: ends_with('%s', '%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20|-> str,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 21| suffix,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| bool_to_str(does_end_with),", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "552c58434b1c673f3063e3b9cccdae37f88e0360", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/ends_with_test.c", "line": 21, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: suffix", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| \"FAILED: ends_with('%s', '%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20| str,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 21|-> suffix,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| bool_to_str(does_end_with),", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 23| bool_to_str(result));", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "259bebc89d02a4e37d99b57a990af7801fc41963", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/match_glob_test.c", "line": 20, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: in", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 18| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| \"FAILED: is_glob('%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20|-> in,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 21| bool_to_str(expected),", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| bool_to_str(result));", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "259bebc89d02a4e37d99b57a990af7801fc41963", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/match_glob_test.c", "line": 33, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: in", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 31| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| \"FAILED: match_glob('%s', '%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33|-> in,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34| glob,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| bool_to_str(expected),", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "e44b67ff66e6b6eb7fd5c7d3763b1ba5ef69dec8", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/match_glob_test.c", "line": 34, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: glob", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 32| \"FAILED: match_glob('%s', '%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 33| in,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 34|-> glob,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 35| bool_to_str(expected),", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 36| bool_to_str(result));", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "a957e9300a583494842cbb5999679a907fd4efce", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/log/log_target_to_str_test.c", "line": 24, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: expected_log_target", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 23| \"FAILED: string_to_log_level - Expected '%s', but got '%s'\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 24|-> expected_log_target,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 25| result);", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 26| return false;", "verbosity_level": 1 } ] }, { "checker": "CPPCHECK_WARNING", "cwe": 476, "language": "c/c++", "tool": "cppcheck", "hash_v1": "9c815dbf5c1c6470973604605617e7348fb0bc18", "key_event_idx": 0, "events": [ { "file_name": "bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/log/string_to_log_level_test.c", "line": 20, "event": "warning[nullPointer]", "message": "Possible null pointer dereference: in", "verbosity_level": 0 }, { "file_name": "", "line": 0, "event": "#", "message": " 18| fprintf(stdout,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 19| \"FAILED: string_to_log_level('%s') - Expected %s, but got %s\\n\",", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 20|-> in,", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 21| log_level_to_string(expected_log_level),", "verbosity_level": 1 }, { "file_name": "", "line": 0, "event": "#", "message": " 22| log_level_to_string(result));", "verbosity_level": 1 } ] } ] }