> There were many places in the client code where we were
> duplicating a loop to copy data in from the response buffer. This
> patch turns those loops into a function for easier maintenance and
> easier-to-read *readrep() routines.
> 
> The netgroup code required the addition of a "temp" string while doing
> the copying, since the netgroup struct requires a (const char *) and the
> buffer manipulation was done using (char *).
> 
> This patch follows "[PATCH] NSS: Validate input string lengths" in my
> tree but will apply without it.

Just one thing, in nss_netgroup.c I think you might want to use the last 
argument of sss_readrep_copy_string() instead of testing strlen() afterwards. 
Other than that the patch should be ok, but I did only visual review, no 
actual testing.

Thanks
Jan

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to