[PATCH] wayland util: Handle malloc failure in wl_array_copy()
Dima Ryazanov
dima at gmail.com
Mon Jul 23 13:48:59 PDT 2012
But dlsym(RTLD_NEXT, "calloc") works, though - no need for dlopen. That's
how test-runner looks up "malloc" and "free".
On Mon, Jul 23, 2012 at 1:02 PM, Daniel Stone <daniel at fooishbar.org> wrote:
> 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
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20120723/94734570/attachment.html>
More information about the wayland-devel
mailing list