ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4721

JSON parser does not handle \u0000 properly

    Details

      Description

      Given an esc in text gets translated to \u001b but when transforming back to txt becomes ^Ab

          • distro/src/libs/zbxjson/json.c Sat Sep 10 03:10:56 2011
          • distro_patched/src/libs/zbxjson/json.c Tue Feb 21 12:52:38 2012
            ***************
          • 705,711 ****
            *o++ = '\t';
            break;
            case 'u':
            ! p += 2; /* "00" */
            c = zbx_hex2num(*p++) << 4;
            c += zbx_hex2num(*p);
            *o++ = (char)c;
          • 705,711 ----
            *o++ = '\t';
            break;
            case 'u':
            ! p += 3; /* "U00" REA */
            c = zbx_hex2num(*p++) << 4;
            c += zbx_hex2num(*p);
            *o++ = (char)c;

        Activity

        Alexander Vladishev created issue -
        Alexander Vladishev made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Alexander Vladishev made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Assignee Alexander Vladishev [ sasha ]
        Resolution Fixed [ 1 ]
        Alexander Vladishev made changes -
        Fix Version/s 2.0.0rc1 [ 11002 ]
        Fix Version/s 1.9.10 (beta) [ 10903 ]
        Alexei Vladishev made changes -
        Workflow Zabbix workflow [ 24522 ] Zabbix workflow - new [ 45692 ]
        Alexander Vladishev made changes -
        Workflow Zabbix workflow - new [ 45692 ] Copy of Zabbix workflow - new [ 65760 ]
        Alexander Vladishev made changes -
        Workflow Copy of Zabbix workflow - new [ 65760 ] Zabbix workflow - new [ 80977 ]
        Gatis Rumbens made changes -
        Issue Type Bug [ 1 ] Incident report [ 10110 ]
        Zabbix ID Reviewed 2.0

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexander Vladishev
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: