svn commit: r206911 - stable/8/contrib/top
Bruce Cran
brucec at FreeBSD.org
Tue Apr 20 20:19:20 UTC 2010
Author: brucec
Date: Tue Apr 20 20:19:19 2010
New Revision: 206911
URL: http://svn.freebsd.org/changeset/base/206911
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/8/contrib/top/utils.c
stable/8/contrib/top/utils.h
Directory Properties:
stable/8/contrib/top/ (props changed)
stable/8/contrib/top/install-sh (props changed)
Modified: stable/8/contrib/top/utils.c
==============================================================================
--- stable/8/contrib/top/utils.c Tue Apr 20 20:09:45 2010 (r206910)
+++ stable/8/contrib/top/utils.c Tue Apr 20 20:19:19 2010 (r206911)
@@ -476,7 +476,7 @@ int amt;
char *format_k2(amt)
-int amt;
+unsigned long long amt;
{
static char retarray[NUM_STRINGS][16];
Modified: stable/8/contrib/top/utils.h
==============================================================================
--- stable/8/contrib/top/utils.h Tue Apr 20 20:09:45 2010 (r206910)
+++ stable/8/contrib/top/utils.h Tue Apr 20 20:19:19 2010 (r206911)
@@ -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-8
mailing list