This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: asprintf() issue
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Archie Cobbs <archie dot cobbs at gmail dot com>
- Cc: Florian Weimer <fweimer at redhat dot com>, Carlos O'Donell <carlos at redhat dot com>, <libc-alpha at sourceware dot org>, Michael Kerrisk-manpages <mtk dot manpages at gmail dot com>
- Date: Fri, 29 May 2015 10:47:03 +0000
- Subject: Re: asprintf() issue
- Authentication-results: sourceware.org; auth=none
- References: <CANSoFxt-cdc-+C4u-rTENMtY4X9RpRSuv+axDswSPxbDgag8_Q at mail dot gmail dot com> <55520F8F dot 9020308 at redhat dot com> <CANSoFxvac6_uBgwzWm5q6U+GcWzzKtDtDP0BVvE4eL08zXHs5Q at mail dot gmail dot com> <5552183C dot 2070809 at redhat dot com> <CANSoFxv7uO2Niq+wVKsC9xoDYuNgqHFxJnLrkgNqfKpFwzde=Q at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1505131601320 dot 30846 at digraph dot polyomino dot org dot uk> <555385F4 dot 5000409 at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1505131722190 dot 30846 at digraph dot polyomino dot org dot uk> <555432DE dot 1020608 at redhat dot com> <5559C31D dot 5070400 at redhat dot com> <555C0DDF dot 1090408 at redhat dot com> <555C29E7 dot 8090403 at redhat dot com> <CANSoFxtYs0QdsMAg7bpZRwm1dJ8F5g3ZjXZCEEp7wr0qRDbf6g at mail dot gmail dot com>
On Thu, 28 May 2015, Archie Cobbs wrote:
> On Wed, May 20, 2015 at 1:29 AM, Florian Weimer <fweimer@redhat.com> wrote:
> >> I think we should do the following:
> >>
> >> (a) Rewrite the man page to say we set the pointer to NULL on error.
> >> Document that this behaviour changed in glibc 2.22.
> >>
> >> (b) Add a versioned function to support old binaries, and have the
> >> new implementation set the pointer to NULL on error.
> >>
> >> Then we're done and move on to the next problem.
> >
> > If that's the emerging consensus, it's something with which I can agree.
>
> What are the next steps on this asprintf() issue?
>
> I'd like to get it resolved, though unfortunately I'm not familiar
> enough to implement (b) myself.
If a long discussion with various different views dies down, the next step
is to post a careful analysis of that discussion to help the community in
reaching consensus, or to help the community see what the consensus is
that was reached.
--
Joseph S. Myers
joseph@codesourcery.com