From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) (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 42BEB4765E0 for ; Thu, 24 Dec 2020 13:48:39 +0300 (MSK) Date: Thu, 24 Dec 2020 10:48:38 +0000 From: Nikita Pettik Message-ID: <20201224104838.GA14559@tarantool.org> References: <265e8f7a40dcedbfb67813643ef053cc76047e0c.1608750877.git.imeevma@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <265e8f7a40dcedbfb67813643ef053cc76047e0c.1608750877.git.imeevma@gmail.com> Subject: Re: [Tarantool-patches] [PATCH v1 1/1] sql: do not reset region on select List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: imeevma@tarantool.org Cc: tarantool-patches@dev.tarantool.org On 23 Dec 22:15, imeevma@tarantool.org wrote: > Prior to this patch, region on fiber was reset during select(), get(), > count(), max(), or min(). This would result in an error if one of these > operations was used in a user-defined function in SQL. After this patch, > these functions truncate region instead of resetting it. > > Closes #5427 > --- > https://github.com/tarantool/tarantool/issues/5427 > https://github.com/tarantool/tarantool/tree/imeevma/gh-5427-lua-func-changes-result > > @ChangeLog > - Fixed memory corruption when SQL called Lua functions with box calls inside (gh-5427). Nice fix, LGTM.