Received: from eggs.gnu.org ([2001:4830:134:3::10]:43357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2WJg-0006em-Sk for qemu-devel@nongnu.org; Tue, 17 May 2016 00:09:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2WJb-0000LL-P7 for qemu-devel@nongnu.org; Tue, 17 May 2016 00:09:07 -0400 Received: from resqmta-po-05v.sys.comcast.net ([2001:558:fe16:19:96:114:154:164]:50485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2WJb-0000L9-I5 for qemu-devel@nongnu.org; Tue, 17 May 2016 00:09:03 -0400 From: Eric Blake Date: Mon, 16 May 2016 22:08:55 -0600 Message-Id: <1463458137-19109-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Fix leak in handling of integer lists as strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, armbru@redhat.com The qapi string-input and string-output visitors can leak memory when used on integer lists that were set up such that the range list needed to merge adjacent/overlapping ranges; detected by valgrind on test-string-{input,output}-visitor. It doesn't hurt that the overall series removes more code than it adds. Eric Blake (2): qapi: Simplify use of range.h qapi: Fix memleak in string visitors on int lists include/qemu/range.h | 107 +++++++++++++++++-------------------------- qapi/string-input-visitor.c | 17 ++----- qapi/string-output-visitor.c | 4 +- 3 files changed, 48 insertions(+), 80 deletions(-) -- 2.5.5