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: 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 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