From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 89D1027CDD for ; Mon, 20 Aug 2018 14:08:22 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JJ9CWgKF7PUD for ; Mon, 20 Aug 2018 14:08:22 -0400 (EDT) Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id E593922557 for ; Mon, 20 Aug 2018 14:08:21 -0400 (EDT) From: Serge Petrenko Subject: [tarantool-patches] [PATCH] box: fix long uri output in box.info() Date: Mon, 20 Aug 2018 21:08:06 +0300 Message-Id: <20180820180806.97866-1-sergepetrenko@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: Serge Petrenko lua_pushapplier() had an inexplicably small buffer for uri representation. Enlarged the buffer. Closes #3630 --- https://github.com/tarantool/tarantool/issues/3630 https://github.com/tarantool/tarantool/tree/sp/gh-3630-long-uri-fix src/box/lua/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/box/lua/info.c b/src/box/lua/info.c index d6697df9c..970c80c99 100644 --- a/src/box/lua/info.c +++ b/src/box/lua/info.c @@ -95,7 +95,7 @@ lbox_pushapplier(lua_State *L, struct applier *applier) applier->last_row_time); lua_settable(L, -3); - char name[FIBER_NAME_MAX]; + char name[APPLIER_SOURCE_MAXLEN]; int total = uri_format(name, sizeof(name), &applier->uri, false); lua_pushstring(L, "peer"); -- 2.15.2 (Apple Git-101.1)