Article View: comp.unix.bsd
Article #6068gnu mathlib pow.s bug FIX
From: Paul Richards
Date: Tue, 12 Jan 1993 21:40
Date: Tue, 12 Jan 1993 21:40
32 lines
1363 bytes
1363 bytes
I got around to looking at the pow.s bug I found in the mathlib library today. The fix is included below. If you use the mathlib then you need to apply this patch and recompile your apps. The bug was that pow() was corrupting temporary values held in the registers ebx,esi and edi by restoring their saved values from the wrong place on the stack. *** pow.s.orig Tue Jan 12 21:16:40 1993 --- pow.s Tue Jan 12 21:20:05 1993 *************** *** 155,161 **** fchs /*/NO_APP*/ .L1: ! leal -28(%ebp),%esp popl %ebx popl %esi popl %edi --- 155,161 ---- fchs /*/NO_APP*/ .L1: ! leal -40(%ebp),%esp popl %ebx popl %esi popl %edi -- Paul Richards, University of Wales, College Cardiff JANET:paul@uk.ac.cf.isl Internet:paul@isl.cf.ac.uk UUCP: paul@cf-isl.UUCP or ...!uunet!mcsun!uknet!cf!isl!paul
Technical Details
Message-ID:
<1993Jan12.214029.26276@cm.cf.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!spool.mu.edu!agate!doc.ic.ac.uk!uknet!cf-cm!myrddin.isl.cf.ac.uk!paulShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!spool.mu.edu!agate!doc.ic.ac.uk!uknet!cf-cm!myrddin.isl.cf.ac.uk!paul
From: paul@isl.cf.ac.uk (Paul Richards)
Newsgroups: comp.unix.bsd
Subject: gnu mathlib pow.s bug FIX
Message-ID: <1993Jan12.214029.26276@cm.cf.ac.uk>
Date: 12 Jan 93 21:40:28 GMT
Sender: news@cm.cf.ac.uk (Network News System)
Organization: Intelligent Systems Lab, ELSYM, Universiity of Wales, College of
Cardiff.
Lines: 32