🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #141

array bound bug in expr(1)

#141
From: David Trueman
Date: Tue, 15 May 1984 00:00
11 lines
831 bytes
In the function ematch(), expbuf is declared with the #define'd constant
ESIZE (= 256).  But, the function compile is called as follows:

	compile(p, expbuf, &expbuf[512], 0);

The wired-in 512 should be changed to ESIZE.

This bug is present in at least V7, System 3, and 4.1BSD.
-- 
				David Trueman @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!david
Technical Details
Message-ID: <3848@utzoo.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!bin

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!bin
From: bin@utzoo.UUCP (David Trueman)
Newsgroups: net.bugs.v7
Subject: array bound bug in expr(1) 
Message-ID: <3848@utzoo.UUCP>
Date: Mon, 14-May-84 20:00:25 EDT
Article-I.D.: utzoo.3848
Posted: Mon May 14 20:00:25 1984
Date-Received: Mon, 14-May-84 20:00:25 EDT
Organization: U of Toronto Zoology
Lines: 11