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

Potentially dangerous redefinition of some Zabbix string API in Windows

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      Windows

      Description

      In windows the functions zbx_strlen, zbx_strchr, zbx_strstr are redefined to widechar variants - wcslen, wcschr, wcsstr.

      This is potentially dangerous, as developers might not be aware of it and use those functions when working with multibyte strings. Instead of redefining the above functions it would be better to create (define) their wide char variants (zbx_wstrlen, zbx_wstrchr, zbx_wstrstr) and use them for Windows wide char string operations.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            wiper Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: