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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: