From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 362EB445320 for ; Wed, 5 Aug 2020 02:45:21 +0300 (MSK) From: Vladislav Shpilevoy Date: Wed, 5 Aug 2020 01:45:17 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/2] JSON field multikey crash List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, alyapunov@tarantool.org, korablev@tarantool.org The patchset fixes 2 crashes related to multikey in JSON path tuple field access code. Also during working on this I found https://github.com/tarantool/tarantool/issues/5226, but couldn't find a simple solution. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5224-tuple-field-by-path-crash Issue: https://github.com/tarantool/tarantool/issues/5224 @ChangeLog * Fixed a crash when JSON tuple field access was used to get a multikey indexed field, and when a JSON contained [*] in the beginning; Vladislav Shpilevoy (2): tuple: fix multikey field JSON access crash tuple: fix access by JSON path starting from '[*]' src/box/tuple.c | 3 +- src/box/tuple.h | 8 + test/box/gh-5224-multikey-field-access.result | 164 ++++++++++++++++++ .../gh-5224-multikey-field-access.test.lua | 72 ++++++++ 4 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 test/box/gh-5224-multikey-field-access.result create mode 100644 test/box/gh-5224-multikey-field-access.test.lua -- 2.21.1 (Apple Git-122.3)