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

Use of uninitialized variable reported by Coverity

XMLWordPrintable

      Variable value_ui64 can stay uninitialized if operation type none of these values - ZBX_PREPROC_BOOL2DEC, ZBX_PREPROC_OCT2DEC, ZBX_PREPROC_HEX2DEC

      In src/libs/zbxdbcache/item_preproc.c:

      Declaring variable value_ui64 without initializer.

      static int      item_preproc_2dec(zbx_variant_t *value, unsigned char op_type, char **errmsg)
      {
             zbx_uint64_t    value_ui64;
      

      Uninitialized scalar variable (UNINIT)4. uninit_use_in_call: Using uninitialized value value_ui64 when calling zbx_variant_set_ui64.

      zbx_variant_set_ui64(value, value_ui64);
      

      (CID 155652)

            Unassigned Unassigned
            s.paskevics Sergejs Paskevics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: