Fix overflow from jail hostname.
Bug found by: Esa Etelavuori <eetelavu@cc.hut.fi>
This commit is contained in:
parent
a07b7a4e35
commit
ab3240e198
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user