diff options
author | eivind <eivind@FreeBSD.org> | 2000-11-01 19:38:08 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 2000-11-01 19:38:08 +0000 |
commit | 3b7fec2c029d84c4e95227989dcc1ab64814798e (patch) | |
tree | 98e183602d95d3ddee79e612ddeab0658b670e53 /sys | |
parent | af87892726ba369e11d02a86ed44830c739cd311 (diff) | |
download | FreeBSD-src-3b7fec2c029d84c4e95227989dcc1ab64814798e.zip FreeBSD-src-3b7fec2c029d84c4e95227989dcc1ab64814798e.tar.gz |
Fix overflow from jail hostname.
Bug found by: Esa Etelavuori <eetelavu@cc.hut.fi>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/procfs/procfs_status.c | 2 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_status.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c index c1adc60..53df2c8 100644 --- a/sys/fs/procfs/procfs_status.c +++ b/sys/fs/procfs/procfs_status.c @@ -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); diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c index c1adc60..53df2c8 100644 --- a/sys/miscfs/procfs/procfs_status.c +++ b/sys/miscfs/procfs/procfs_status.c @@ -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); |