[patch v1 1/1] assert: use internal symbols [BZ #32492] such

H.J. Lu hjl.tools@gmail.com
Sun Dec 22 22:02:39 GMT 2024


On Sun, Dec 22, 2024 at 1:00 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Sun, Dec 22, 2024 at 12:12 PM DJ Delorie <dj@redhat.com> wrote:
> >
> > "H.J. Lu" <hjl.tools@gmail.com> writes:
> > > It also caused:
> > >
> > > https://sourceware.org/bugzilla/show_bug.cgi?id=32492
> >
> > How about this?
> >
> > ---
> > Use __writev instead of writev to avoid polluting the external
> > namespace.
> >
> > Resolves: #32492
> >
> > diff --git a/assert/assert.c b/assert/assert.c
> > index a271125f08..3a16f85394 100644
> > --- a/assert/assert.c
> > +++ b/assert/assert.c
> > @@ -117,7 +117,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file,
> >           this code path is taken.  */
> >        WS ("' failed\n");
> >
> > -      (void) writev (STDERR_FILENO, v, i);
> > +      (void) __writev (STDERR_FILENO, v, i);
> >      }
> >
> >    abort ();
> >
>
> OK if it resolves the regression.
>
> LGTM.
>
> Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
>
> Thanks.
>
> --
> H.J.

The patch works.  I am pushing it now.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-assert-Use-__writev-in-assert.c-BZ-32492.patch
Type: text/x-patch
Size: 815 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20241223/e8c9eafb/attachment-0001.bin>


More information about the Libc-alpha mailing list