1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-28319: Assertion `cur_step->type & JSON_PATH_KEY' failed in json_find_path

Analysis: When trying to find path and handling the match for path,
value at current index is not set to 0 for array_counters. This causes wrong
current step value which eventually causes wrong cur_step->type value.
Fix: Set the value at current index for array_counters to 0.
This commit is contained in:
Rucha Deodhar
2022-04-18 22:30:20 +05:30
parent 4730a6982f
commit 43fa8e0b8f
3 changed files with 12 additions and 1 deletions

View File

@@ -1374,7 +1374,6 @@ static int handle_match(json_engine_t *je, json_path_t *p,
return json_skip_level(je);
array_counters[next_step - p->steps]= 0;
if (next_step->type & JSON_PATH_ARRAY)
{
int array_size;