Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2001 17:43:30 -0500 (EST)
From:      Barney Wolff <barney@databus.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24884: divide by 0 in healthd
Message-ID:  <200102052243.f15MhUB28915@mx.databus.com>

next in thread | raw e-mail | index | archive | help

>Number:         24884
>Category:       ports
>Synopsis:       divide by 0 in healthd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 05 14:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Barney Wolff
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Databus Inc.
>Environment:

	cvsup ports as of 2/4/01, healthd-0.6.4, 4.2-stable as of 2/1/01.

>Description:

--- getMBinfo.c.orig    Mon Feb  5 17:29:58 2001
+++ getMBinfo.c Mon Feb  5 17:18:52 2001
@@ -293,7 +293,7 @@
   else
     *r2 = 1350000 / (n * div2 * FanType2);
   n=ReadByte(0x2A);
-  if (n == 255)
+  if (n == 255 || n == 0)
     *r3 = 0;
   else
     *r3 = 1350000 / (n * div3 * FanType3);

>How-To-Repeat:

MB is SuperMicro PIIIDRE (dual PIII).  healthd run as
  healthd -S -6
with default healthd.conf, coredumps on startup.

Also, I was unable to build the port with make all in
/usr/ports/sysutils/healthd - stopped with

make: don't know how to make real-build. Stop

I had to build it by hand.

>Fix:

See patch under Description.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102052243.f15MhUB28915>