This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix [BZ#14122] memory leak in nss_parse_service_list
On Monday, May 21, 2012 23:59:46 Paul Pluzhnikov wrote:
> On Mon, May 21, 2012 at 12:48 PM, Andreas Jaeger <aj@suse.com> wrote:
> > Could you add a test case as well, please?
>
> I am not sure how to do that.
>
> In order to replicate the leak in BZ#14122, I had to muck about with
> /etc/nsswitch.conf (and actually managed to lock myself out of the
> system in the process :-)
>
> Is there a way to inject "mock" /etc/nsswitch.conf for a test?
That's the error path issue, I agree, it's difficult to create a test case.
But what about the defconfig_entries one? Could we use the test case from
bugzilla?
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126