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

When output of script >65535 symbols, data getting by the web-interface is corrupted and truncated

    XMLWordPrintable

Details

    • Incident report
    • Resolution: Fixed
    • Major
    • 1.8.2
    • 1.8.1
    • Frontend (F)
    • None
    • php

    Description

      in file include/scripts.inc.php in function execute_script() we see $res = socket_read($socket, 65535);
      It means that data longer than 65535 bytes will be corrupted.
      Fix:
      $reply = "";
      do {
      $recv = "";
      $recv = socket_read($socket, '1400');
      if($recv != "")

      { $reply .= $recv; }

      } while($recv != "");

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              inakrin Fyodor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: