[Pkg-shadow-devel] groupmems produces segmentation fault
nicolas.francois at centraliens.net
Mon Feb 18 21:56:30 UTC 2008
On Mon, Feb 18, 2008 at 05:19:06PM +0100, pvrabec at redhat.com wrote:
> groupmems -a customer -g test
> Segmentation fault
> when /etc/group looks like:
> I think groupmems.c:109 in addtogroup()
> - members = (char **) realloc (members, sizeof (char *) * i);
> +members = (char **) realloc (members, sizeof (char *) * (i+1));
> Is it OK?
Thanks for reporting it.
I even think it should be (i+2) since members[i + 1] will be set to NULL.
Note: I've no testsuite currently for groupmems because it is not
installed on Debian. I will try to fix this later.
More information about the Pkg-shadow-devel