[gnu.ghostscript.bug] ghostscript bugs on Convex C2

gvb@UUNET.UU.NET (Gerlach van Beinum) (03/01/89)

Subject : Bug report for ghostscript
Version : Unknown, we got it from hp4nl, it arrived there dec 10 1988

Machine : Convex C2 (Bsd Unix )

	The convex gives a SIGBUS if a program accesses a zero pointer.
	There were several places where an extra check for zero pointers
	was necessary.

	A serious bug in the program is in the part were fixed point numbers
	are used. A right shift over 12 bits is used there on signed integers.
	according to K&R this gives undefined results, and on the Convex
	(which is a 64 bit integer machine internally) if you do that
	on negative numbers, it does not work.

	We needed some extra fonts for troff previewing. This didn't
	work well bexcause the UniquiID wasn't copied. But from the
	news I understood that this is already corrected.

	One other thing we fixed is a bug in the name compare part.
	In the file util.c routine obj_eq() we added an extra strncmp :

	case t_string:
		if ( pref1->size != pref2->size ) return( 0 );
		if ( pref1->value.bytes == pref2->value.bytes ) return( 1 );
		return( !(strncmp( (char *)pref1->value.bytes,
				   (char *)pref2->value.bytes, pref1->size) ) );

	We are VERY HAPPY with the program. On the convex it is about
	20 times faster than an Apple Laserwriter I.

	We hope to receive the next release soon.

			Gerlach van Beinum, Jos Jansen