🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.misc
Article #670

trn bugfix for alt.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh

#670
From: Smith and O'Halloran
Date: Sun, 12 Oct 1997 00:00
35 lines
1671 bytes
Any time there is a bogus newsgroup with a name that is longer that 127
characters, trn blows up with a segmentation fault.  The workaround is
to use "trn -q", the fix is to recompile without using a signed char
for storing the string length.

Here are the diffs to patch trn-3.6 - can someone forward this to the
current maintainer?  Thanks.
	-Joe

==> /home/inwap/ftp/trn-rcstuff.h.diff <==
36c36,37
< EXT char *rcnums INIT(NULL); /* offset from rcline to numbers on line */
---
> /* If a bogus newsgroup name exceeds 127 chars, 'char *' blows up.  -inwap */
> EXT short *rcnums INIT(NULL); /* offset from rcline to numbers on line */

==> /home/inwap/ftp/trn-rcstuff.c.diff <==
218c218
<     rcnums[ngnum] = (char)len + 1;
---
>     rcnums[ngnum] = (short)len + 1;
511c511
<     char tmprcnums;
---
>     short tmprcnums;
1061c1061
<     rcnums = (char*)saferealloc(rcnums,
---
>     rcnums = (short*)saferealloc(rcnums,
-- 
INWAP.COM is Joe and Sally Smith, John and Chris O'Halloran and our cats
See http://www.inwap.com/ for "ReBoot", PDP-10, and Clan MacLeod.

Technical Details
Message-ID: <61rr04$6db$1@shell3.ba.best.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <61rr04$6db$1@shell3.ba.best.com>
Subject: trn bugfix for alt.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh
Date: Sun, 12 Oct 1997 00:00:00 +0000
From: inwap@best.com (Smith and O'Halloran)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail
X-Deja-AN: 279939757
X-Trace: 876703558 25312 inwap 206.184.139.132
Organization: Chez INWAP (people, computers, cats)
Newsgroups: news.software.readers,news.software.misc