[hobbit] overflow in netbsd-meminfo.c

Rich Smrcina rsmrcina at wi.rr.com
Thu Nov 13 05:06:17 CET 2008


Tracy Di Marco White wrote:
> Hobbit client 4.2.0 shows things like this on machines I have
> with 4GB of RAM:
>    Memory              Used       Total  Percentage
>  Physical     4294963639M 4294966523M          0%
>  Swap                  0M       4098M          0%
> 
> With this patch it's better:
> --- client/netbsd-meminfo.c.orig	2008-11-12 19:25:30.000000000 -0600
> +++ client/netbsd-meminfo.c
> @@ -22,7 +22,7 @@ static char rcsid[] = "$Id: netbsd-memin
>  int main(int argc, char *argv[])
>  {
>  	int hw_physmem[] = { CTL_HW, HW_PHYSMEM };
> -	int physmem;
> +	unsigned long physmem;
>  
>  	int hw_pagesize[] = { CTL_HW, HW_PAGESIZE };
>  	int pagesize;
> 
> Tracy J. Di Marco White
> Information Technology Services
> Iowa State University
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
> 

That appears to be a bug in netbsd.

-- 
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009



More information about the Xymon mailing list