Re: [PATCH} ngroups, list of groups to /proc/#/status

Chris Wedgwood (cw@ix.net.nz)
Mon, 23 Nov 1998 09:35:56 +1300


On Sun, Nov 22, 1998 at 05:35:28PM +0200, Topi Miettinen wrote:

> + for (g = 0; g < p->ngroups; g++) {
> + buffer += sprintf(buffer, "%d ", p->groups[g]);
> + }
> + buffer += sprintf(buffer, "\n");

Although I wouldn't expect this to happen normally, its conceivable
someone might one day up the maximum number of groups and in which
case the above code might scribble of the end of the buffer....

-cw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/