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

    Details

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

      Description

      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);
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: