[PATCH] wayland util: Handle malloc failure in wl_array_copy()
Daniel Stone
daniel at fooishbar.org
Mon Jul 23 13:02:42 PDT 2012
Hi,
On 23 July 2012 16:11, Kristian Høgsberg <hoegsberg at gmail.com> wrote:
> On Mon, Jul 23, 2012 at 11:40:52AM +0300, Pekka Paalanen wrote:
>> We don't have a realloc() wrapper yet, do we?
>> Array uses realloc. We're missing calloc(), too, no?
>
> Yea, we don't have those.
I came up against this a couple of weeks ago, and the patchset I just
sent out has a realloc() wrapper. I'd really liked to have seen
calloc in there, but unfortunately you can't (at least not AFAICT),
because to get the symbol for the real calloc, you need to call
dlopen, which calls calloc ...
Cheers,
Daniel
More information about the wayland-devel
mailing list