Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 30 Apr 2018 15:29:39 +1000
From: Patrick Oppenlander <patrick.oppenlander@...il.com>
To: musl@...ts.openwall.com
Subject: Re: Some questions

On Mon, Apr 30, 2018 at 1:16 PM, Rich Felker <dalias@...c.org> wrote:
> On Mon, Apr 30, 2018 at 12:52:06PM +1000, Patrick Oppenlander wrote:
>> - getcwd returned buffer size can be incorrect. If you call
>> getcwd(NULL, 1234) the returned buffer is sized to match the path
>> length but should be 1234 to be compatible with the glibc extension.
>
> I'll look at this. It seems like a worse behavior for most callers,
> but maybe it should match.

Actually, my biggest issue with getcwd is that it allocates a PATH_MAX
sized buffer on the stack. That's painful on deeply embedded stuff.

Patrick

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.