aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-05 18:10:17 +0000
committerBill Nottingham <notting@redhat.com>2005-04-05 18:10:17 +0000
commit8316a8c0e14a6a8caacb84731418cb9570a8b41a (patch)
tree6f71da129d94298cc980a1bb42b5a0c5e989213f
parent988769bbf1ce3f19da03c649d695b7b628a3bad4 (diff)
downloadinitscripts-8316a8c0e14a6a8caacb84731418cb9570a8b41a.tar
initscripts-8316a8c0e14a6a8caacb84731418cb9570a8b41a.tar.gz
initscripts-8316a8c0e14a6a8caacb84731418cb9570a8b41a.tar.bz2
initscripts-8316a8c0e14a6a8caacb84731418cb9570a8b41a.tar.xz
initscripts-8316a8c0e14a6a8caacb84731418cb9570a8b41a.zip
fix potential memory overread (#153685, <in-redhat@baka.org>)
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
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) {