diff options
| author | Bill Nottingham <notting@redhat.com> | 2005-04-05 18:11:23 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2005-04-05 18:11:23 +0000 |
| commit | 6dc19469aa7271ad8458bcce6e636fbfb4c1e276 (patch) | |
| tree | d0167042fb585f7c697c881b6063983edc83059c /src/process.c | |
| parent | a91fc41ad25047900b3e987f1eac2da4145cbe38 (diff) | |
fix potential memory overread (#153685, <in-redhat@baka.org>)
Diffstat (limited to 'src/process.c')
| -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 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) { |
