Scan Results
List of Findings
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def1]
/pacemaker/lib/pengine/bundle.c:1845: path: Condition "replica == NULL", taking false branch.
/pacemaker/lib/pengine/bundle.c:1849: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/bundle.c:1851: path: Condition "replica->ip", taking true branch.
/pacemaker/lib/pengine/bundle.c:1852: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/bundle.c:1855: path: Condition "replica->container", taking true branch.
/pacemaker/lib/pengine/bundle.c:1856: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/bundle.c:1856: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def2]
/pacemaker/lib/pengine/clone.c:930: path: Condition "!pcmk__is_clone(rsc)", taking false branch.
/pacemaker/lib/pengine/clone.c:932: path: Switch case default.
/pacemaker/lib/pengine/clone.c:932: path: Condition "trace_tag_cs == NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:932: path: Condition "crm_is_callsite_active(trace_tag_cs, _level, converted_tag)", taking false branch.
/pacemaker/lib/pengine/clone.c:934: path: Condition "gIter != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:939: path: Condition "!(child_rsc != NULL)", taking false branch.
/pacemaker/lib/pengine/clone.c:940: path: Switch case default.
/pacemaker/lib/pengine/clone.c:940: path: Condition "trace_tag_cs == NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:940: path: Condition "crm_is_callsite_active(trace_tag_cs, _level, converted_tag)", taking false branch.
/pacemaker/lib/pengine/clone.c:941: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/clone.c:944: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/clone.c:944: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def3]
/pacemaker/lib/pengine/bundle.c:1845: path: Condition "replica == NULL", taking false branch.
/pacemaker/lib/pengine/bundle.c:1849: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/bundle.c:1851: path: Condition "replica->ip", taking true branch.
/pacemaker/lib/pengine/bundle.c:1852: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/bundle.c:1855: path: Condition "replica->container", taking true branch.
/pacemaker/lib/pengine/bundle.c:1856: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/bundle.c:1859: path: Condition "replica->remote", taking true branch.
/pacemaker/lib/pengine/bundle.c:1860: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/bundle.c:1860: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def4]
/pacemaker/lib/pengine/bundle.c:1871: path: Condition "!(rsc != NULL)", taking false branch.
/pacemaker/lib/pengine/bundle.c:1873: path: Condition "!pcmk__is_bundle(rsc)", taking false branch.
/pacemaker/lib/pengine/bundle.c:1874: path: Switch case default.
/pacemaker/lib/pengine/bundle.c:1874: path: Condition "trace_tag_cs == NULL", taking true branch.
/pacemaker/lib/pengine/bundle.c:1874: path: Condition "crm_is_callsite_active(trace_tag_cs, _level, converted_tag)", taking false branch.
/pacemaker/lib/pengine/bundle.c:1893: path: Condition "bundle_data->child", taking true branch.
/pacemaker/lib/pengine/bundle.c:1894: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/bundle.c:1894: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def5]
/pacemaker/lib/pengine/bundle.c:650: path: Condition "replica->child", taking true branch.
/pacemaker/lib/pengine/bundle.c:650: path: Condition "valid_network(data)", taking true branch.
/pacemaker/lib/pengine/bundle.c:661: path: Condition "pe_find_resource(scheduler->priv->resources, id) != NULL", taking false branch.
/pacemaker/lib/pengine/bundle.c:675: path: Condition "replica->ipaddr", taking true branch.
/pacemaker/lib/pengine/bundle.c:677: path: Condition "data->control_port == NULL", taking true branch.
/pacemaker/lib/pengine/bundle.c:686: path: Condition "data->control_port", taking false branch.
/pacemaker/lib/pengine/bundle.c:696: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/bundle.c:696: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def6]
/pacemaker/lib/pengine/bundle.c:650: path: Condition "replica->child", taking true branch.
/pacemaker/lib/pengine/bundle.c:650: path: Condition "valid_network(data)", taking true branch.
/pacemaker/lib/pengine/bundle.c:661: path: Condition "pe_find_resource(scheduler->priv->resources, id) != NULL", taking false branch.
/pacemaker/lib/pengine/bundle.c:675: path: Condition "replica->ipaddr", taking true branch.
/pacemaker/lib/pengine/bundle.c:677: path: Condition "data->control_port == NULL", taking true branch.
/pacemaker/lib/pengine/bundle.c:686: path: Condition "data->control_port", taking false branch.
/pacemaker/lib/pengine/bundle.c:696: path: Condition "_p", taking true branch.
/pacemaker/lib/pengine/bundle.c:704: path: Condition "node == NULL", taking true branch.
/pacemaker/lib/pengine/bundle.c:707: path: Falling through to end of if statement.
/pacemaker/lib/pengine/bundle.c:737: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/bundle.c:737: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".
Error: INCONSISTENT_UNION_ACCESS (CWE-456): [#def7]
/pacemaker/lib/pengine/clone.c:643: path: Condition "!pcmk__is_clone(rsc)", taking false branch.
/pacemaker/lib/pengine/clone.c:645: path: Condition "rsc->priv->fns->is_filtered(rsc, only_rsc, true /* 1 */)", taking false branch.
/pacemaker/lib/pengine/clone.c:649: path: Condition "pcmk__str_in_list(rsc_printable_id(rsc), only_rsc, pcmk__str_star_matches)", taking true branch.
/pacemaker/lib/pengine/clone.c:655: path: Condition "gIter != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:660: path: Condition "pcmk__rsc_filtered_by_node(child_rsc, only_node)", taking false branch.
/pacemaker/lib/pengine/clone.c:664: path: Condition "print_everything", taking true branch.
/pacemaker/lib/pengine/clone.c:664: path: Condition "child_rsc->priv->fns->is_filtered(child_rsc, only_rsc, print_everything)", taking true branch.
/pacemaker/lib/pengine/clone.c:666: path: Continuing loop.
/pacemaker/lib/pengine/clone.c:655: path: Condition "gIter != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:660: path: Condition "pcmk__rsc_filtered_by_node(child_rsc, only_node)", taking false branch.
/pacemaker/lib/pengine/clone.c:664: path: Condition "print_everything", taking true branch.
/pacemaker/lib/pengine/clone.c:664: path: Condition "child_rsc->priv->fns->is_filtered(child_rsc, only_rsc, print_everything)", taking false branch.
/pacemaker/lib/pengine/clone.c:669: path: Condition "pcmk__is_set(show_opts, pcmk_show_clone_detail)", taking true branch.
/pacemaker/lib/pengine/clone.c:673: path: Condition "pcmk__is_set(rsc->flags, pcmk__rsc_unique)", taking true branch.
/pacemaker/lib/pengine/clone.c:675: path: Condition "partially_active", taking true branch.
/pacemaker/lib/pengine/clone.c:682: path: Falling through to end of if statement.
/pacemaker/lib/pengine/clone.c:741: path: Condition "print_full", taking true branch.
/pacemaker/lib/pengine/clone.c:752: path: Jumping back to the beginning of the loop.
/pacemaker/lib/pengine/clone.c:655: path: Condition "gIter != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:660: path: Condition "pcmk__rsc_filtered_by_node(child_rsc, only_node)", taking false branch.
/pacemaker/lib/pengine/clone.c:664: path: Condition "print_everything", taking true branch.
/pacemaker/lib/pengine/clone.c:664: path: Condition "child_rsc->priv->fns->is_filtered(child_rsc, only_rsc, print_everything)", taking false branch.
/pacemaker/lib/pengine/clone.c:669: path: Condition "pcmk__is_set(show_opts, pcmk_show_clone_detail)", taking false branch.
/pacemaker/lib/pengine/clone.c:673: path: Condition "pcmk__is_set(rsc->flags, pcmk__rsc_unique)", taking false branch.
/pacemaker/lib/pengine/clone.c:682: path: Condition "pcmk__is_set(show_opts, pcmk_show_pending)", taking true branch.
/pacemaker/lib/pengine/clone.c:682: path: Condition "child_rsc->priv->pending_action != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:682: path: Condition "strcmp(child_rsc->priv->pending_action, "probe") != 0", taking false branch.
/pacemaker/lib/pengine/clone.c:689: path: Condition "partially_active == 0", taking true branch.
/pacemaker/lib/pengine/clone.c:691: path: Condition "!pcmk__is_set(child_rsc->flags, pcmk__rsc_removed)", taking true branch.
/pacemaker/lib/pengine/clone.c:691: path: Condition "!pcmk__is_set(show_opts, pcmk_show_clone_detail)", taking true branch.
/pacemaker/lib/pengine/clone.c:691: path: Condition "pcmk__is_set(show_opts, pcmk_show_inactive_rscs)", taking true branch.
/pacemaker/lib/pengine/clone.c:694: path: Condition "stopped == NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:700: path: Falling through to end of if statement.
/pacemaker/lib/pengine/clone.c:741: path: Condition "print_full", taking false branch.
/pacemaker/lib/pengine/clone.c:752: path: Jumping back to the beginning of the loop.
/pacemaker/lib/pengine/clone.c:655: path: Condition "gIter != NULL", taking false branch.
/pacemaker/lib/pengine/clone.c:754: path: Condition "pcmk__is_set(show_opts, pcmk_show_clone_detail)", taking false branch.
/pacemaker/lib/pengine/clone.c:764: path: Condition "gIter", taking true branch.
/pacemaker/lib/pengine/clone.c:767: path: Condition "!pcmk__str_in_list(host->priv->name, only_node, 9U /* pcmk__str_star_matches | pcmk__str_casei */)", taking true branch.
/pacemaker/lib/pengine/clone.c:769: path: Continuing loop.
/pacemaker/lib/pengine/clone.c:764: path: Condition "gIter", taking true branch.
/pacemaker/lib/pengine/clone.c:767: path: Condition "!pcmk__str_in_list(host->priv->name, only_node, 9U /* pcmk__str_star_matches | pcmk__str_casei */)", taking false branch.
/pacemaker/lib/pengine/clone.c:774: path: Jumping back to the beginning of the loop.
/pacemaker/lib/pengine/clone.c:764: path: Condition "gIter", taking false branch.
/pacemaker/lib/pengine/clone.c:777: path: Condition "list_text != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:777: path: Condition "list_text->len > 0", taking true branch.
/pacemaker/lib/pengine/clone.c:787: path: Condition "gIter", taking true branch.
/pacemaker/lib/pengine/clone.c:790: path: Condition "!pcmk__str_in_list(host->priv->name, only_node, 9U /* pcmk__str_star_matches | pcmk__str_casei */)", taking true branch.
/pacemaker/lib/pengine/clone.c:792: path: Continuing loop.
/pacemaker/lib/pengine/clone.c:787: path: Condition "gIter", taking true branch.
/pacemaker/lib/pengine/clone.c:790: path: Condition "!pcmk__str_in_list(host->priv->name, only_node, 9U /* pcmk__str_star_matches | pcmk__str_casei */)", taking false branch.
/pacemaker/lib/pengine/clone.c:797: path: Jumping back to the beginning of the loop.
/pacemaker/lib/pengine/clone.c:787: path: Condition "gIter", taking false branch.
/pacemaker/lib/pengine/clone.c:800: path: Condition "list_text != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:800: path: Condition "list_text->len > 0", taking false branch.
/pacemaker/lib/pengine/clone.c:822: path: Condition "list_text != NULL", taking true branch.
/pacemaker/lib/pengine/clone.c:826: path: Condition "pcmk__is_set(show_opts, pcmk_show_inactive_rscs)", taking true branch.
/pacemaker/lib/pengine/clone.c:827: path: Condition "!pcmk__is_set(rsc->flags, pcmk__rsc_unique)", taking true branch.
/pacemaker/lib/pengine/clone.c:827: path: Condition "clone_data->clone_max > active_instances", taking true branch.
/pacemaker/lib/pengine/clone.c:834: assign_union_field: The union field "in" of "_pp" is written.
/pacemaker/lib/pengine/clone.c:834: inconsistent_union_field_access: In "_pp.out", the union field used: "out" is inconsistent with the field most recently stored: "in".