Re: bug in trn -c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I can confirm this bug exists also when a line of 28 characters is
not the first in .newsrc and/or relates to an unsubscribed newsgroup.
-- 
Regards,						|       /^^^\
	Yury						|     (| , , |)
							|      |  *  |
E-mail: yury.burkatovsky at telrad dot co dot il	|       \_-_/

On Thu, 29 Aug 2002, Joe Weening wrote:

> I think I've found a bug in trn 4.0-test76.  When I run "trn -c", and
> the .newsrc file contains a line of length exactly 28 characters, then
> some memory allocation problem causes .newsrc to be replaced with a
> file that contains garbage text.  For example, if my .newsrc contains
> the following lines (the first has length 28):
>
> comp.ai.neural-nets: 1-53695
> sci.agriculture.fruit: 1-3354
> rec.puzzles: 1-155831
>
> and I run "trn -c", then .newsrc is replaced with the lines:
>
> /u/jweening/.rnlast:18650
> /u/jweening/.rnlast
> /u/jweening:.rnlast
>
> A workaround I've found is to take out the following portion of
> rcstuff.c (beginning on line 530:
>
> 	if (checkflag)			/* no extra mallocs for -c */
> 	    np->rcline = some_buf;
> 	else
>
> Here is the configuration of the trn that I'm using:
>
> Trn version: 4.0-test76 (Apr 2, 2001).
> Configured for NNTP (plus individual local access).



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

[Index of Archives]     [Photo]     [Yosemite]     [Epson Inkjet]     [Mhonarc]     [Nntpcache]

  Powered by Linux