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

Lack of validation in vfs.dir.size

XMLWordPrintable

    • Sprint 33, Sprint 34, Sprint 35
    • 0.125

      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.

            MVekslers Michael Veksler
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: