Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 25 Jan 2024 16:30:58 +0100
From: Ismael Luceno <>
To: Markus Wichmann <>
Cc:, Rich Felker <>
Subject: Re: [PATCH] fix avoidable segfault in catclose

On 25/Jan/2024 15:11, Markus Wichmann wrote:
> BTW, POSIX does not say catclose() is required (or even allowed) to
> accept (nl_catd)-1 as argument, its description of the return value of
> catopen() also says that it is only suitable for use with catclose()
> when successful.

It does imply it, it mentions that it could take invalid descriptors
and that it should return -1 & errno == EBADF.

Also, this is relevant to code found in the wild, not an application
of my own.

Ismael Luceno

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.