From: Bruno Haible <bruno-nWNVUoHt2MvYtjvyW6yDsg@public.gmane.org>
To: Rich Felker <dalias-8zAoT0mYgF4@public.gmane.org>
Cc: musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org,
bug-gettext-mXXj517/zsQ@public.gmane.org
Subject: Re: gettext API question - null pointer issue again
Date: Thu, 27 Jun 2019 09:58:37 +0200 [thread overview]
Message-ID: <2467189.3HMQpSEUky@omega> (raw)
In-Reply-To: <20190627041820.GA29896-C3MtFaGISjmo6RMmaWD+6Sb1p8zYI1N1@public.gmane.org>
[CCing bug-gettext]
Rich Felker wrote in <https://www.openwall.com/lists/musl/2019/06/27/1>:
> Could you answer a question about the gettext API that's come up again
> in the context of musl's implementation? The gettext manual documents
> that for the message key argument to these functions:
>
> "If the argument is NULL the result is undefined."
>
> https://www.gnu.org/software/gettext/manual/html_node/Interface-to-gettext.html
Likewise the LI18NUX 2000 specification (p. 39) says
"The msgid argument is a null-terminated string."
And likewise the LSB 3.0
https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/baselib-dgettext.html
And likewise the Solaris implementation's documentation says:
"The msgid argument is a null-terminated string."
https://docs.oracle.com/cd/E88353_01/html/E37843/gettext-3c.html#REFMAN3Agettext-3c
> And it looks like you've treated passing a null argument as a bug in
> the past:
>
> https://www.mail-archive.com/bug-gnulib-mXXj517/zsQ@public.gmane.org/msg36249.html
https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00046.html
Yes.
> It's come up again with GIMP doing it:
>
> https://github.com/void-linux/void-packages/issues/12042
>
> Should we continue to treat this as an application bug and ask the app
> maintainers to fix it when it's found?
Yes.
Bruno
prev parent reply other threads:[~2019-06-27 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-27 4:18 Rich Felker
[not found] ` <20190627041820.GA29896-C3MtFaGISjmo6RMmaWD+6Sb1p8zYI1N1@public.gmane.org>
2019-06-27 7:58 ` Bruno Haible [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2467189.3HMQpSEUky@omega \
--to=bruno-nwnvuoht2mvytjvyw6ydsg@public.gmane.org \
--cc=bug-gettext-mXXj517/zsQ@public.gmane.org \
--cc=dalias-8zAoT0mYgF4@public.gmane.org \
--cc=musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).