From 8316a8c0e14a6a8caacb84731418cb9570a8b41a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 5 Apr 2005 18:10:17 +0000 Subject: fix potential memory overread (#153685, ) --- src/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/process.c b/src/process.c index 0eec34ac..39b50613 100644 --- a/src/process.c +++ b/src/process.c @@ -188,7 +188,7 @@ int monitor(char *cmdname, int pid, int numfds, int *fds, int reexec, int quiet, int bytesread = 0; do { - char *b, *buf=calloc(8192,sizeof(char)); + char *b, *buf=calloc(8193,sizeof(char)); b = buf; bytesread = read(pfds[y].fd,buf,8192); if (bytesread==-1) { -- cgit v1.2.1