🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #18224

Re: TRN and incomplete binary extraction

#18224
From: Brady Montz
Date: Sun, 28 Jan 1996 00:00
64 lines
3140 bytes
In article <4efl3d$jet@rodelo.cyberverse.com>,
Nick <gruel@hondo.cyberverse.com> wrote:
>I asked earlier a question regarding how to install an update to the
>uudecoder in TRN - apparently the reason for asking was incorrect.  I've
>been informed that the '755' header on some articles has nothing to do
>with the problem (though it appeared so at first).  So I looked a little
>deeper and found something consistent.
>
>The problem appears to be that some form of uuencoder that various people 
>are using leaves the last line of uuencoded data without the 'M' in 
>column 1.  Frex:
>
>  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
>  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
>  $#P__V0 0 0
> 
>  end
>  END -- Cut Here -- cut here
>
>This appears to be what is causing the built-in decoder to think the 
>extraction is to be continued in the body of a following article.
>
>Unfortunately this also appears to be fairly common.  Is there any
>practical/convenient way to convince TRN to complete extractions in these
>cases? 
>
>Thanks.
>
>-Nick
>

I don't believe that this is necessarily incorrect. The first character of the
line gives you the number of encoded characters in that line, after you do
this: (firstchar - ' ') & 077. 'M' - ' ' gives you 45. There are 60 characters
(excluding the M) on the 'M' lines, and that gives you 45 encoded characters
(as each 3 characters of data get encoded as 4). '$' translates to 4 data
bytes, which would expand to 8 encoded chars (the line is supposed to be
always padded to a multiple of 4). That line is 2 bytes too long it seems, but
when I was writing my uudecoder I found that many encoders don't conform to
that "multiple of 4 rule" very well, for no reason discernable to me.

The problem with this file may be that it doesn't have the required line of
length 0 at the end of the text. If you look at what the real uuencode will
produce, it looks like:

M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
`
end
end

The ascii code for ` is 93, which gives you a 0 length line just like the
standard requests. (Just for kicks, ';' decodes to 27 data bytes, which
expands to 36 bytes of uue text, which is exactly the length of the last
line of the above example).

Most likely it's the nonexistant 0 length line which is confusing trn.

-- 
Brady Montz
bradym@cs.arizona.edu

Technical Details
Message-ID: <4eg3hh$j74@optima.cs.arizona.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <4efl3d$jet@rodelo.cyberverse.com>

Show Full Headers
Complete Article Headers
Message-ID: <4eg3hh$j74@optima.cs.arizona.edu>
Subject: Re: TRN and incomplete binary extraction
Date: Sun, 28 Jan 1996 00:00:00 +0000
From: bradym@mahler.cs.arizona.edu (Brady Montz)
References: <4efl3d$jet@rodelo.cyberverse.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 136821819
Organization: University of Arizona CS Department, Tucson AZ
Newsgroups: news.software.readers