Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2467189.3HMQpSEUky@omega>
Date: Thu, 27 Jun 2019 09:58:37 +0200
From: Bruno Haible <bruno@...sp.org>
To: Rich Felker <dalias@...c.org>
Cc: musl@...ts.openwall.com, bug-gettext@....org
Subject: Re: gettext API question - null pointer issue again

[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@gnu.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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.