[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH 0/2] Fix leak in handling of integer lists as strin
From: |
Eric Blake |
Subject: |
[Qemu-stable] [PATCH 0/2] Fix leak in handling of integer lists as strings |
Date: |
Mon, 16 May 2016 22:08:55 -0600 |
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
- [Qemu-stable] [PATCH 0/2] Fix leak in handling of integer lists as strings,
Eric Blake <=