🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #62

expr bug in V7 and system 3

#62
From: utzoohcranton
Date: Wed, 10 Nov 1982 12:41
25 lines
901 bytes
There is an arithmetic error in expr(1) which showed up in
V7 and has been inherited in system 3 (what are we paying
these USG guys for ?) .....

Code reads...

	long atol();	/* convert ascii to long	*/
	...
	...
		register i;
		.....
			i = atol(r1) - atol(r2);


SCREECH ! What if r1 is small and r2 is big ?  BANG ! 

change that register declaration to read long.

---------------------------------------------------

How about a system 3 bugs group on the net ?  Are you all
ignoring system 3 and hoping it will go away or something ?
Nice idea, but....

/anton aylward	..decvax!hcr!anton
Technical Details
Message-ID: <bnews.hcr.258>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!hcr!anton
Newsgroups: net.bugs
Title: expr bug in V7 and system 3
Article-I.D.: hcr.258
Posted: Wed Nov 10 12:41:03 1982
Received: Wed Nov 10 12:51:01 1982
Subject: expr bug in V7 and system 3
Date: Wed, 10 Nov 1982 12:41:03 +0000
Message-ID: <bnews.hcr.258>