[PATCH] Allocation buffers for NSS result construction

DJ Delorie dj@redhat.com
Tue May 16 16:26:00 GMT 2017


Florian Weimer <fweimer@redhat.com> writes:
>> I would recommend a few comments defining the behavior if NULL is passed
>> as a thing to copy - the NSS testsuite needed to preserve such
>> "mistakes" in the test data.
>
> Hmm.  It's undefined because of the memcpy.  I'm not sure if I want to 
> change that, it would need a mostly pointless pointer comparison before 
> the memcpy call.

I was thinking of strlen et al...

In my nss patch, I had to support both NULL pointers and pointers to
empty strings as "valid", which made me wonder...



More information about the Libc-alpha mailing list