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

No info string in proxy protocol response when historical data sending succeeded

XMLWordPrintable

      Function: recv_proxyhistory()

      Description of the fault: after converting error string from static char buffer to dynamically allocated char buffer a sizeof() was not noticed. As a result the maximum length of the info string that is returned in the response is 8 or 4 characters (sizeof(*char) == 8 on 64bit machines and sizeof(*char) == 4 on 32bit machines).

      How the user can notice the problem:
      The info string is missing in the response.

      Example.

      {
              "response" : "success",
      }
      

      What it should have been.

      {
              "response" : "success",
              "info" : "Processed 9 Failed 0 Total 9 Seconds spent 0.000462"
      }
      

      Impacts: low - Zabbix doesn't parse the info string on the other end.

      Coverity: CID 118921

      Regression: since ZBX-4675

      Affected versions: since 2.2.4rc1

      See also:
      https://www.zabbix.org/wiki/Docs/protocols/zabbix_proxy/3.0
      send_proxyhistory()
      zbx_recv_response()

            Unassigned Unassigned
            sandis.neilands Sandis Neilands (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: