Bugs in System V math library

gwyn at Brl-Vld.ARPA gwyn at Brl-Vld.ARPA
Sat Mar 31 04:55:05 AEST 1984


From:      Doug Gwyn (VLD/VMB) <gwyn at Brl-Vld.ARPA>

Gary Moss uncovered a family of bugs in the UNIX System V (Release 1)
math library.  The matherr() function was being passed the whole
exception structure rather than a pointer to it, in the following files:

	gamma.c	line 57
	j0.c	line 210
	j1.c	lines 155 & 203
	sin.c	line 48

To fix this, just put an ampersand & in front of "exc" in these
calls to matherr().

Anyone who has the BRL UNIX System V emulation for 4.2BSD up to now
has this bug, too.



More information about the Comp.unix.wizards mailing list