[MDEV-29264] JSON function overflow error based on LONGTEXT field Created: 2022-08-06 Updated: 2022-08-16 Resolved: 2022-08-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON, Storage Engine - ColumnStore |
| Affects Version/s: | 10.6.7, 10.7.3, 10.8.2, 10.8.3, 10.9.1 |
| Fix Version/s: | 10.6.9, 10.7.5, 10.8.4, 10.9.2, 10.10.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | ziyitan | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | gsoc22 | ||
| Environment: |
Rockylinux 8 arm64 |
||
| Description |
|
Hi, I'm GSoC 2022 contributor, I'm working on the MCOL-785. Take the JSON_ARRAY as an example:
After debugging, I found that such difference is caused by overflow error.
First, the return type of args[n_arg]- >max_char_length() is uint32, the max value of uint32 is 4,294,967,295. I will make a patch to this issue. I would be very grateful if you can handle it soon. same issues exist in JSON_OBJECT, JSON_ARRAY_APPEND(INSERT), JSON_INSERT(REPLACE|SET)
|