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

Server could crash if all cached actions are removed

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.0beta2
    • 3.0.0beta1
    • Server (S)

      Coverity report:

      *** CID 134481:  Null pointer dereferences  (FORWARD_NULL)
      /src/libs/zbxdbcache/dbconfig.c: 3539 in DCsync_action_conditions()
      3533            zbx_vector_uint64_sort(&ids, ZBX_DEFAULT_UINT64_COMPARE_FUNC);
      3534
      3535            zbx_hashset_iter_reset(&config->action_conditions, &iter);
      3536
      3537            while (NULL != (condition = zbx_hashset_iter_next(&iter)))
      3538            {
      >>>     CID 134481:  Null pointer dereferences  (FORWARD_NULL)
      >>>     Passing "&ids" to "zbx_vector_uint64_bsearch", which dereferences null "ids.values".
      3539                    if (FAIL != zbx_vector_uint64_bsearch(&ids, condition->conditionid, ZBX_DEFAULT_UINT64_COMPARE_FUNC))
      3540                            continue;
      3541
      3542                    zbx_strpool_release(condition->value);
      3543
      3544                    zbx_hashset_iter_remove(&iter);
      

            Unassigned Unassigned
            wiper Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: