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

Lack of validation in vfs.dir.size

    XMLWordPrintable

Details

    • Team C
    • Sprint 33, Sprint 34, Sprint 35
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: