From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id BCFA6469719 for ; Tue, 3 Nov 2020 00:47:23 +0300 (MSK) Received: by mail-lj1-f193.google.com with SMTP id y16so16750084ljk.1 for ; Mon, 02 Nov 2020 13:47:23 -0800 (PST) Date: Tue, 3 Nov 2020 00:47:20 +0300 From: Cyrill Gorcunov Message-ID: <20201102214720.GF2339@grain> References: <429b3e4d-490d-ea88-946a-fc0487f9e46a@tarantool.org> <20201102131945.GB517@tarantool.org> <20201102211828.GE2339@grain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH] core: fix static_alloc buffer overflow List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org On Mon, Nov 02, 2020 at 10:43:02PM +0100, Vladislav Shpilevoy wrote: > > > > Guys, I didn't follow the details of the series but thought of some > > helper like below. Will it help? > > In some places yes. But SNPRINT is used not only with snprintf. > > It also is used with vsnprintf, mp_snprint, vy_run_snprint_filename, > tuple_snprint, say_format_plain_tail, json_escape, strftime, and probably > more. So it would be better to fix SNPRINT. To cover all its usage > cases. OK, sounds reasonable.