Received: from eggs.gnu.org ([2001:4830:134:3::10]:55958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiOPI-0000fU-3P for qemu-devel@nongnu.org; Tue, 22 Mar 2016 11:39:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiOPD-00058f-4W for qemu-devel@nongnu.org; Tue, 22 Mar 2016 11:39:44 -0400 From: Markus Armbruster References: <1458614246-28528-1-git-send-email-peterx@redhat.com> Date: Tue, 22 Mar 2016 16:39:36 +0100 In-Reply-To: <1458614246-28528-1-git-send-email-peterx@redhat.com> (Peter Xu's message of "Tue, 22 Mar 2016 10:37:26 +0800") Message-ID: <87vb4eo72f.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: Peter Xu Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-trivial , qemu-devel@nongnu.org, Luiz Capitulino 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.