[ZBX-16151] Json parser can truncate large numbers Created: 2019 May 21  Updated: 2024 Apr 10  Resolved: 2019 Jun 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 4.0.7
Fix Version/s: 4.0.10rc1, 4.2.4rc1, 4.4.0alpha1, 4.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Andris Zeila Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
part of ZBX-15827 Preprocessing testing does not report... Closed
Team: Team A
Team: Team A
Sprint: Sprint 52 (May 2019)
Story Points: 0.5

 Description   

zbx_json_decodevalue function truncates numeric value if the passed buffer size is less than the value length.

It does not seem to affect normal Zabbix work (external data is parsed into string before converting to numeric tupes, for internal communications the buffers used to parse numeric values are large enough for data generated by Zabbix itself).

There might be issues with third party applications using Zabbix internal protocols. And of course it's a land mine we could step on in future, so it has to be fixed.



 Comments   
Comment by Andris Zeila [ 2019 May 31 ]

Released ZBX-16151 in:

  • pre-4.0.9rc1 96d471b715
  • pre-4.2.3rc1 3d3bf2ea14
  • pre-4.4.0alpha1 85f8cb7747

 

Generated at Sat Apr 20 00:31:54 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.