Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-04-03 23:54:58 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-04-03 23:54:58 +0400
commit7810aa7cdb9ec62f42f53c0db4283b6e547357e4 (patch)
treef8997b2b4c17b131ee82e97de4226689494267f2 /winsup/cygwin/fhandler_proc.cc
parent84681ea68987b5e51f82fca7b7caf7e8eb315493 (diff)
* fhandler_proc.cc (format_proc_loadavg): Raise too small buffer size
to avoid overwriting unrelated cygheap memory.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index afd206365..57a1532a2 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -426,7 +426,7 @@ format_proc_loadavg (void *, char *&destbuf)
break;
}
- destbuf = (char *) crealloc_abort (destbuf, 16);
+ destbuf = (char *) crealloc_abort (destbuf, 48);
return __small_sprintf (destbuf, "%u.%02u %u.%02u %u.%02u %u/%u\n",
0, 0, 0, 0, 0, 0, running, pids.npids);
}