dave@westmark.UUCP (Dave Levenson) (04/14/88)
Executing readnews or vnews that came with 2.11 dated 4/87 causes an occasional core dump. It turns out that this happens when the header line Newsgroups: exceeds 128 characters. The cause is in the file called rfuncs.c, in the function called rightgroup(). The local character array to which the Newsgroups: line is copied is declared to be of size BUFLEN but the place it is copied from is of size LBUFLEN. LBUFLEN is normally 1024 bytes. BUFLEN is either 128 or 256 bytes, depending upon the setting of the SMALL_ADDRESS_SPACE configuration parameter. Eitherway, strcpy() is used to copy this string. If the destination overflows, it causes trouble. To correct this, change the BUFLEN to LBUFLEN in the declaration and rebuild. -- Dave Levenson Westmark, Inc. A node for news. Warren, NJ USA {rutgers | clyde | mtune | ihnp4}!westmark!dave