]> git.cameronkatri.com Git - pw-darwin.git/commit
Use malloc()ed buffers instead of stack buffers in gr_copy() and pw_copy().
authorDag-Erling Smørgrav <des@FreeBSD.org>
Mon, 28 Nov 2016 21:00:19 +0000 (21:00 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Mon, 28 Nov 2016 21:00:19 +0000 (21:00 +0000)
commit950f74bfeb6c58dc5e2b1b57980a08f694ba12fc
tree158037f7df3a46cabf4cbd9cf85c248494ad7b18
parentc290434aab0f6134ea76ada592074f66a5769791
Use malloc()ed buffers instead of stack buffers in gr_copy() and pw_copy().
This allows pw(8) to operate on passwd and group files with longer lines
than could be accomodated by a stack buffer.  It doesn't take more than a
few hundred users to exceed 8192 bytes in /etc/group.

MFC after: 3 weeks
Sponsored by: The University of Oslo
libutil/gr_util.c
libutil/pw_util.c