This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix BZ 19012 -- memory leak on error path in iconv_open
- From: Florian Weimer <fweimer at redhat dot com>
- To: Paul Pluzhnikov <ppluzhnikov at gmail dot com>, GLIBC Devel <libc-alpha at sourceware dot org>
- Cc: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Date: Mon, 28 Sep 2015 15:53:17 +0200
- Subject: Re: [patch] Fix BZ 19012 -- memory leak on error path in iconv_open
- Authentication-results: sourceware.org; auth=none
- References: <CAPC3xarLZpvmAwhyVj-v6C65QkepJMhSJGfZ2ZYQATXesm94fw at mail dot gmail dot com>
On 09/27/2015 11:22 PM, Paul Pluzhnikov wrote:
> In order to expose the bug, a partial install (one missing
> iconvdata/SJIS.so) is required. I am not sure how to write such a test
> case (or even whether it is truly a bug to leak memory when faced with
> such a partial install).
What happens if you call iconv in a loop? Will the amount of memory
leaked remain bounded?
--
Florian Weimer / Red Hat Product Security