[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] gettext API question - null pointer issue again

From: Bruno Haible
Subject: Re: [bug-gettext] gettext API question - null pointer issue again
Date: Thu, 27 Jun 2019 09:58:37 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-151-generic; KDE/5.18.0; x86_64; ; )

[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

And likewise the Solaris implementation's documentation says:
    "The msgid argument is a null-terminated string."

> And it looks like you've treated passing a null argument as a bug in
> the past:
> https://www.mail-archive.com/address@hidden/msg36249.html


> 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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]