[ZBX-14315] Lack of validation in vfs.dir.size Created: 2018 May 02  Updated: 2024 Apr 10  Resolved: 2018 May 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 3.4.9rc3, 4.0.0alpha7
Fix Version/s: 3.4.10rc1, 4.0.0alpha7, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Glebs Ivanovskis (Inactive) Assignee: Michael Veksler
Resolution: Fixed Votes: 0
Labels: validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team C
Team: Team C
Sprint: Sprint 33, Sprint 34, Sprint 35
Story Points: 0.125

 Description   

Steps to reproduce:

$ zabbix_agentd -t 'vfs.dir.size[/tmp,,,,11111!!!oneONE]'

Result:

vfs.dir.size[/tmp,,,,11111!!!oneONE]          [u|35419229]

Expected:

vfs.dir.size[/tmp,,,,11111!!!oneONE]          [m|ZBX_NOTSUPPORTED] [Invalid fifth parameter.]

This is due to atoi() function, strtol() should be use instead for better error handling.



 Comments   
Comment by Michael Veksler [ 2018 May 16 ]

Available in:

  • 3.4.10rc1 r80914.
  • 4.0.0alpha7 (trunk) r80915.
Generated at Sat Apr 20 11:10:32 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.