diff options
author | Bill Nottingham <notting@redhat.com> | 2005-04-05 18:11:12 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-04-05 18:11:12 +0000 |
commit | f3d2594413456574a0269813bdd351d6b0754924 (patch) | |
tree | c681dc65759e8686b8542e81b6e7d9122da347ad | |
parent | 03f5dd71decae3cfde22e8470024f2e826ea2b89 (diff) | |
download | initscripts-FC2-branch.tar initscripts-FC2-branch.tar.gz initscripts-FC2-branch.tar.bz2 initscripts-FC2-branch.tar.xz initscripts-FC2-branch.zip |
fix potential memory overread (#153685, <in-redhat@baka.org>)initscripts-FC2-branch
-rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index c17680bf..b5237c01 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 *buf=calloc(8192,sizeof(char)); + char *buf=calloc(8193,sizeof(char)); bytesread = read(pfds[y].fd,buf,8192); if (bytesread==-1) { perror("read"); |