Date: Tue, 27 Jun 2000 08:30:03 -0700 (PDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: kern/19535: procfs_rlimit tidyup Message-ID: <200006271530.IAA19624@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/19535; it has been noted by GNATS. From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: adrian@vader.creative.net.au Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/19535: procfs_rlimit tidyup Date: Tue, 27 Jun 2000 11:29:22 -0400 (EDT) <<On Mon, 26 Jun 2000 23:12:45 +0200 (CEST), adrian@FreeBSD.ORG said: > + psbuf = (char *)malloc(512 * sizeof(char), M_TEMP, M_WAITOK); sizeof(char) is defined to be 1. > + /* XXX conservative, but potentially overflowable */ It should be possible to compute the exact buffer size. Since this code is not frequently run, I would suggest that a two-pass approach would not hurt. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006271530.IAA19624>