Shared memory corruption on cannot get secrets for path

XMLWordPrintable

    • S26-W02/03
    • 0.25

      Missing setting of null after releasing string from string pool

      diff --git a/src/libs/zbxcacheconfig/dbconfig.c b/src/libs/zbxcacheconfig/dbconfig.c
      index 9d799355df4..d545e853f69 100644
      --- a/src/libs/zbxcacheconfig/dbconfig.c
      +++ b/src/libs/zbxcacheconfig/dbconfig.c
      @@ -1923,6 +1923,7 @@ void      zbx_dc_sync_kvs_paths(const struct zbx_json_parse *jp_kvs_paths, const zbx_
                      {
                              START_SYNC;
                              dc_strpool_release(dc_kvs_path->last_error);
      +                       dc_kvs_path->last_error = NULL;
                              FINISH_SYNC;
                      }
      

      Meaning that some dangling pointer is used to decrease refcount and corrupt shared memory, leading to similar issue as in ZBX-27035

            Assignee:
            Vladislavs Sokurenko
            Reporter:
            Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: