mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Fix overflow from jail hostname.
Bug found by: Esa Etelavuori <eetelavu@cc.hut.fi>
This commit is contained in:
parent
a07b7a4e35
commit
ab3240e198
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68199
@ -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