Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10266

Uninitialized variable in VMware code reported by Coverity (CIDs 118958, 118960, 118962, 118965)

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0beta1
    • Fix Version/s: 3.0.0beta1
    • Component/s: Server (S)
    • Labels:

      Description

      In several places of /src/zabbix_server/poller/checks_simple_vmware.c and /src/zabbix_server/vmware/vmware.c we pass uninitialized counterid to zbx_vmware_service_get_counterid() (src/zabbix_server/vmware/vmware.c) where we can accidentally log it uninitialized if we fail to find respective counter and initialize counterid properly.

      I would suggest logging different messages (with or without counterid value) depending on ret.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              glebs.ivanovskis Glebs Ivanovskis (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: