1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Fix overflow from jail hostname.

Bug found by:	Esa Etelavuori <eetelavu@cc.hut.fi>
This commit is contained in:
Eivind Eklund 2000-11-01 19:38:08 +00:00
parent a07b7a4e35
commit ab3240e198
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68199
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ procfs_dostatus(curp, p, pfs, uio)
int i;
int xlen;
int error;
char psbuf[256]; /* XXX - conservative */
char psbuf[256+MAXHOSTNAMELEN]; /* XXX - conservative */
if (uio->uio_rw != UIO_READ)
return (EOPNOTSUPP);

View File

@ -71,7 +71,7 @@ procfs_dostatus(curp, p, pfs, uio)
int i;
int xlen;
int error;
char psbuf[256]; /* XXX - conservative */
char psbuf[256+MAXHOSTNAMELEN]; /* XXX - conservative */
if (uio->uio_rw != UIO_READ)
return (EOPNOTSUPP);