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