Re: benign bug in src/sys/kern/kern_resource.c:limcopy() ?

2002-07-08 Thread David Malone
On Sun, Jul 07, 2002 at 03:28:51PM -0700, Mike Makonnen wrote: MALLOC(copy, struct plimit *, sizeof(struct plimit), M_SUBPROC, M_WAITOK); - bcopy(lim-pl_rlimit, copy-pl_rlimit, sizeof(struct plimit)); + bcopy(lim-pl_rlimit, copy-pl_rlimit, sizeof(struct rlimit));

Re: benign bug in src/sys/kern/kern_resource.c:limcopy() ?

2002-07-08 Thread Bruce Evans
On Mon, 8 Jul 2002, David Malone wrote: On Sun, Jul 07, 2002 at 03:28:51PM -0700, Mike Makonnen wrote: MALLOC(copy, struct plimit *, sizeof(struct plimit), M_SUBPROC, M_WAITOK); - bcopy(lim-pl_rlimit, copy-pl_rlimit, sizeof(struct plimit)); + bcopy(lim-pl_rlimit,

benign bug in src/sys/kern/kern_resource.c:limcopy() ?

2002-07-07 Thread Mike Makonnen
Hello folks, The limcopy() function bcopy()s a struct rlimit, but the len argument to bcopy() is given as sizeof(struct plimit). This hasn't caused any problems so far because the destination address is the first member of struct plimit and all the other member of plimit are initialized