Bug #70570 JSON_VALID allows \u two-hex-digit while standard allows only \u four-hex-digit

Submitted: 9 Oct 2013 18:51 Modified: 6 Nov 2013 17:30
Reporter: Sveta Smirnova Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: JSON User-defined function ( UDF ) Severity:S3 (Non-critical)
Version:0.2 OS:Any
Assigned to: Sveta Smirnova CPU Architecture:Any

[9 Oct 2013 18:51] Sveta Smirnova
Description:
JSON_VALID allows \u two-hex-digit while standard allows only \u four-hex-digit. See http://json.org/ and http://www.ietf.org/rfc/rfc4627.txt?number=4627

How to repeat:
mysql> select json_valid('{"a":"\u01"}');
+----------------------------+
| json_valid('{"a":"\u01"}') |
+----------------------------+
|                          1 |
+----------------------------+
1 row in set (0.00 sec)
[6 Nov 2013 17:29] Sveta Smirnova
Posted by developer:
 
Fixed in versions 0.2.1 and 0.3.0

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.