svn commit: r206912 - stable/7/contrib/top
Bruce Cran
brucec at FreeBSD.org
Tue Apr 20 20:21:01 UTC 2010
Author: brucec
Date: Tue Apr 20 20:21:01 2010
New Revision: 206912
URL: http://svn.freebsd.org/changeset/base/206912
Log:
MFC r205119 and r206056:
Prevent the SIZE field being corrupted when a process allocates more than
2TB.
PR: bin/129706
Submitted by: brucec
Approved by: rrs (mentor)
Modified:
stable/7/contrib/top/utils.c
stable/7/contrib/top/utils.h
Directory Properties:
stable/7/contrib/top/ (props changed)
Modified: stable/7/contrib/top/utils.c
==============================================================================
--- stable/7/contrib/top/utils.c Tue Apr 20 20:19:19 2010 (r206911)
+++ stable/7/contrib/top/utils.c Tue Apr 20 20:21:01 2010 (r206912)
@@ -476,7 +476,7 @@ int amt;
char *format_k2(amt)
-int amt;
+unsigned long long amt;
{
static char retarray[NUM_STRINGS][16];
Modified: stable/7/contrib/top/utils.h
==============================================================================
--- stable/7/contrib/top/utils.h Tue Apr 20 20:19:19 2010 (r206911)
+++ stable/7/contrib/top/utils.h Tue Apr 20 20:21:01 2010 (r206912)
@@ -21,4 +21,4 @@ long percentages();
char *errmsg();
char *format_time();
char *format_k();
-char *format_k2();
+char *format_k2(unsigned long long);
More information about the svn-src-stable
mailing list