This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] resolv: Always initialize *resplen2 out parameter [BZ #19791]
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 15 Mar 2016 20:28:13 +0100
- Subject: Re: [PATCH] resolv: Always initialize *resplen2 out parameter [BZ #19791]
- Authentication-results: sourceware.org; auth=none
- References: <56E2DD9B dot 3060803 at redhat dot com>
On 03/11/2016 04:00 PM, Florian Weimer wrote:
> Since commit 44d20bca52ace85850012b0ead37b360e3ecd96e (Implement
> second fallback mode for DNS requests), there is a code path
> which returns early, before *resplen2 is initialized. This
> happens if the name server address is immediately recognized
> as invalid (because of lack of protocol support, or if it is
> a broadcast address such 255.255.255.255, or another invalid
> address).
The patch is not as comprehensive as it should be. I'm preparing a
replacement, which will also address bug 19825.
Florian