[MDEV-30650] JSON output routines do not check the validity of strings in the same way that JSON_VALID() does. Created: 2023-02-14 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rex Johnston | Assignee: | Rex Johnston |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
JSON output strings need checking in the same manner as the check performed by JSON_VALID().
(maybe we should change that to be UTF8MB4 in the next versions...) Some characters need to be escaped, according to https://www.json.org/json-en.html, see the production for String. |