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

Not enough buffer size for reading DB, especially function parameter

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.19, 2.0.10, 2.2.1
    • Fix Version/s: 2.2.4rc1, 2.3.1
    • Component/s: Server (S)
    • Labels:

      Description

      Zabbix server does not have enough buffer size for reading DB.
      Because in spite of reading as UTF-8, it fixes the words length, e.g FUNCTION_PARAMETER_LEN is 255 and FUNCTION_PARAMETER_LEN_MAX is 256 for varchar(255).

      Though almost are correct because UTF-8 characters are block in inputin time on WEB UI, especially 'parameter' of functions tables is accept for UTF-8. So, its buffer size must be (FUNCTION_PARAMETER_LEN * 4 + 1).

      I attached the patches for 1.8.19 and 2.0.10. There is a same problem in 2.2.x. But I do not use yet.

        Attachments

          Activity

            People

            • Assignee:
              zabbix.dev Zabbix Development Team
              Reporter:
              daiki.matsuda@miraclelinux.com MATSUDA Daiki
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: