[net.news.b] Reference Overflow bug

ggr@pyuxbb.UUCP (09/28/83)

You might have noticed some articles arrive with garbled headers,
<1987@floyd.UUCP> for example.  This problem is caused by an
overabundance of references which overflow an array in readnews,
scribbling on other variables.

To fix this, you should make the size of the array 'folbuf' (in more than
one place in readr.c) be at least size BUFLEN (it's now 100 in two places).
You ought to also add a check on the existing size of the reference
string before the strcat's to add the new reference.

			=== Guy Riddle == AT&T Bell Laboratories, Piscataway ===