Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 Fluke 8/7/84; site fluke.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!cornell!uw-beaver!microsoft!fluke!joe From: joe@fluke.UUCP (Joe Kelsey) Newsgroups: net.bugs.4bsd Subject: Long line bug in lex Message-ID: <1784@vax4.fluke.UUCP> Date: Tue, 14-Aug-84 12:12:56 EDT Article-I.D.: vax4.1784 Posted: Tue Aug 14 12:12:56 1984 Date-Received: Fri, 17-Aug-84 00:46:15 EDT Organization: John Fluke Mfg. Co., Everett, WA Lines: 14 Index: usr.bin/lex/header.c 4.2BSD Description: Lines longer than 200 characters overflow lex line buffers, wreaking havoc in other data structures. Repeat-By: Take the pathalias software as distributed and try out the new uucp maps. Notice how things fall apart very quickly. Fix: Replace the #define YYLMAX 200 in function chd1 in header.c with #define YYLMAX BUFSIZ. This will allow a more reasonable line limit and try to prevent overflowing buffers. Grumble about sloppy programmers who can't use big buffers or dynamically allow for larger limits.