[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] overflow in netbsd-meminfo.c
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] overflow in netbsd-meminfo.c
- From: Rich Smrcina <rsmrcina (at) wi.rr.com>
- Date: Wed, 12 Nov 2008 22:43:19 -0600
- References: <2193.1226548301 (at) satai.its.iastate.edu> <491BA7B9.8000806 (at) wi.rr.com> <7024c8c80811122027s2c0f8916uaa9b6e4cd1d45c02 (at) mail.gmail.com>
- User-agent: Thunderbird 2.0.0.17 (X11/20080914)
Tracy Di Marco White wrote:
That appears to be a bug in netbsd.
This is what it appears as in meminfo for one of my 4GB machines:
[meminfo]
Total:-773
Free:2884
Swaptotal:4098
Swapused:0
Since freebsd-meminfo.c seems to be using unsigned long in the same
place I modified it, I'm not sure it's a bug only in NetBSD.
The display is a bug, Hobbit's interpretation and use of it is an artifact of the bug.
If netbsd doesn't have a fix for this problem, you're patch is the right solution.
--
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