[PATCH] getgrent_next_nss (compat-initgroups): Remove alloca fallback [BZ #18023]

DJ Delorie dj@redhat.com
Mon Jun 25 19:56:00 GMT 2018


fweimer@redhat.com (Florian Weimer) writes:
> +		      if (tmpbuf != buffer)
> +			free (tmpbuf);
> +		      tmpbuf = malloc (tmplen);

No need to use realloc since nothing should be in the old buffer...

LGTM.



More information about the Libc-alpha mailing list