Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 3 Aug 2020 11:25:53 -0400
From: Rich Felker <>
To: Wolf <>
Cc:, Ariadne Conill <>
Subject: Re: [PATCH v4] implement recallocarray(3)

On Mon, Aug 03, 2020 at 05:15:11PM +0200, Wolf wrote:
> On 2020-08-03 17:11:50 +0200, Wolf wrote:
> > From reading openbsd's source I would say this should return 0 (or
> > newptr), not ptr. Otherwise I'm not sure how the caller could tell if
> > the resize failed or not.
> Or not, please ignore. I've got confused.

Your original comment seems correct. Returning the old ptr on failure
cannot be correct.


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.