Received: from eggs.gnu.org ([2001:4830:134:3::10]:44826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aykfY-0008US-Nc for qemu-devel@nongnu.org; Fri, 06 May 2016 14:40:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aykfN-0003rB-9I for qemu-devel@nongnu.org; Fri, 06 May 2016 14:40:03 -0400 References: <1458614246-28528-1-git-send-email-peterx@redhat.com> <87vb4eo72f.fsf@blackfin.pond.sub.org> From: Michael Tokarev Message-ID: <572CE4E9.1030108@msgid.tls.msk.ru> Date: Fri, 6 May 2016 21:39:37 +0300 MIME-Version: 1.0 In-Reply-To: <87vb4eo72f.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] qdict: fix unbounded stack warning for qdict_array_entries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Peter Xu Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-trivial , qemu-devel@nongnu.org, Luiz Capitulino 22.03.2016 18:39, Markus Armbruster wrote: > Peter Xu writes: > >> Here we use one g_strdup_printf() to replace the two stack allocated >> array, considering it's more convenient, safe, and as long as it's >> called rarely only when quorum device opens. This will remove the >> unbound stack warning when compiling with "-Wstack-usage=1000000". >> >> Reviewed-by: Eric Blake >> Signed-off-by: Peter Xu > > Reviewed-by: Markus Armbruster > > I lack the time to take this through my tree before my Easter vacation. > Nominating for qemu-trivial, assuming Luiz doesn't mind. (Finally) applied to -trivial, thanks! /mjt