-
Incident report
-
Resolution: Fixed
-
Trivial
-
2.2.10
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()