useradd segfaults if too many users in one group

John Newbigin <[email protected]>
Newsgroups gmane.linux.pld.shadow.general
Message-ID <[email protected]>
This is a redhat hat bugzilla 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125510
but the problem is not RedHat specific.  The problem is there is no 
bounds checking in gshadow.c:list() and the static buffer is being 
overfilled, trashing whatever is next in memory.

I have a patch which does dynamic allocation similar to sgetgrent.  If 
this is the right place, I would like someone to check it.

John.

-- 
John Newbigin
Computer Systems Officer
Faculty of Information and Communication Technologies
Swinburne University of Technology
Melbourne, Australia
http://www.it.swin.edu.au/staff/jnewbigin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.