[news.software.b] nasty .newsrc eating rn bug

del@thrush.semi.harris-atd.com (Don Lewis) (12/15/89)

I'm running rn patchlevel 39 with the nntp patches and ran across the
following nasty bug.

If you happen to have an entry in your .newsrc with a missing space between
the : or ! and the list of message numbers for a newsgroup, rn will
segmentation fault and restore your .newsrc with trash.  Actually, I believe
that the entry in .newsrc must be

	some.random.group:m-n

where m and n are single digit numbers.

The following sprintf() in checkexpired() is the culprit.

    if (*s) {
	if (s[-1] == '-') {			/* landed in a range? */
	    if (lastnum != 1)
		sprintf(rcline[ngnum]+rcnums[ngnum]," 1-%s",s);
	    goto ret;
	}
    }


BTW, are there any archive sites that have rn patchlevel 40 and compatible
nntp patches?

If replying by email, please note my .sig.
--
Don "Truck" Lewis                                     Harris Semiconductor
Internet (if you're lucky): del@semi.harris-atd.com   PO Box 883   MS 62A-028
Internet (if not): del%thrush@trantor.harris-atd.com  Melbourne, FL  32901
UUCP (works): rutgers!soleil!thrush!del               Phone: (407) 729-5205