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

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3.0
    • None
    • Agent (G)
    • Windows

      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.

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

              Created:
              Updated:
              Resolved: