[PATCH] Allocation buffers for NSS result construction

DJ Delorie dj@redhat.com
Fri Jun 16 21:29:00 GMT 2017


Florian Weimer <fweimer@redhat.com> writes:
> I think you'll have to keep a NULL check in it because this use case is
> quite obscure.

True, but I was suggesting you handle the obscure case in a useful way
to keep your module robust.

And COPY_IF_ROOM is only half the code; the other half generates the
list of pointers that preceeds it - see copy_group() in my patch.

If your code doesn't have a way to generate a *list* of strings, one of
which may be NULL, I have to code the whole thing myself anyway.



More information about the Libc-alpha mailing list