prove that man-db and tar works(which used to segfault). hope builtin argp
could be updated soon. i will report if i met another NULL pointer case.
thanks for your work! :)
Bruno Haible 于2019年1月6日周日 上午12:17写道:
> He X wrote:
> > > The msgid argument is a null-terminated string.
> >
> > problem i
He X wrote:
> > The msgid argument is a null-terminated string.
>
> problem is that msgid is a empty pointer, not a pointer to a
> NULL-terminated string.
>
> full backtrace:
>
> ```
> #0 0x77fab65d in strcmp (l=0x0, r=0x77eff7df "Packaged by
> %s\n") at src/string/strcmp.c:5
> #1
Hi,
He X wrote on 2018-12-22:
> according to
> https://www.gnu.org/software/gettext/manual/html_node/Interface-to-gettext.html,
> passing NULL to gettext is undefined.
Likewise the LI18NUX 2000 specification (p. 39) says
"The msgid argument is a null-terminated string."
And likewise the LSB 3.
since my libc is musl, tar is using builtin argp implementation, which will
pass NULL as msgid to dgettext without additional checks.
but according to
https://www.gnu.org/software/gettext/manual/html_node/Interface-to-gettext.html,
passing NULL to gettext is undefined. and, musl chose to crash..