🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57387

Handling current buggy yEnc implementations (note to developers)

#57387
From: Alex Birj
Date: Tue, 19 Mar 2002 04:45
76 lines
5328 bytes
I chose to keep all yenc issues open, this is intended to all people 
implementing yenc to get code working in practical terms .

It means that even given current buggy poster implementations we still are able 
not to give up on crc checks and involve user in the process (we are lucky that 
it isn't worse).

Forcing code to verify crc sums in both multipart and single-part format (at 
least to set it default) - will prevent further buggy posting code, so errors 
will be detected by all clients within the testing stage.

Below is the message I sent to yenc email list:

---------------------------------------------------------------------------------------------------------------------------

I've just downloaded power post from www.cosmicwolf.com and tried it to see 
whether they fixed the bug.
 
To find out it is not a coincedence (lol), I reposted it myself.
 
The program is very widely used.
 
Given all that I would recommend to let go files with crc=0x00000001 but not 
other sums since this program always generates files with this value, it is 
pretty good workaround - the probability of such crc is negligible.
 
The release is dated 19 Jan 2002.
 
I understand it is a bit silly but if we look from the user prospective - it is 
not at all.
 
Another recommendation is not to check the line length and if it is incorrect - 
let it go since we have another buggy program in use, but its impact is 
somewhat and we only lose here bandwidth in the case of a truly corrupted 
attachment.
 
So the current practical approach should be quite simple:
 
1. Ignore line length.
2. Ignore crc field for 1-part if it is value is 0x0000001
 
If you have information about such buggy output of different kind (I guess it 
only can be another, or even worse - wrong value in the crc field for one-part 
attachments) - please share it with us, but I hope these are all problems we 
have by now.

Thanks,
Alex
 
Power post:
 
>=ybegin line=128 size=525 name=POWRPOST.INI
>�}��������74xx~z�z���g[[c74}�� 
>>��g`[XcX[]ZX[^[74v����gZ74���g��������74z���g��������74w��v����g_ZZZ74w�>�ul�����g]_Z74�o��w���g[
>74rv�v���g[74}���y�k��g[74}��~���gZ74}����g[74k���|����g[74k���}���z������>�g[74�x�k���� 
>�r�����gZ74�}�� ��n���gZ74r�p���gz����Wz
>�����j�����W����X���74r�p���x���gz����Wz���J\ZZZ74r�|����~�g74r�y>��g74r�p�������g74v���n��god�n��������J���J}��������k����������
>���n���������������74v���~����gRii�J�N[YN\�JWJNp74����m�����g\bcd^\d[`bd[>c_74}����~���gZdZdZ74q��v���}���g[74q��v����ZZZZg���X��
>������X����74
>=yend size=525 crc32=00000001 
 
 
Correct value (what is in pcrc32 should be in crc32 of the previous post):
 
>=ybegin part=1 line=128 size=525 name=POWRPOST.INI
>=ypart begin=1 end=525
>�}��������74xx~z�z���g[[c74}�� 
>>��g`[XcX[]ZX[^[74v����gZ74���g��������74z���g��������74w��v����g_ZZZ74w�>�ul�����g]_Z74�o��w���g[
>74rv�v���g[74}���y�k��g[74}��~���gZ74}����g[74k���|����g[74k���}���z������>�g[74�x�k���� 
>�r�����gZ74�}�� ��n���gZ74r�p���gz����Wz
>�����j�����W����X���74r�p���x���gz����Wz���J\ZZZ74r�|����~�g74r�y>��g74r�p�������g74v���n��god�n��������J���J}��������k����������
>���n���������������74v���~����gRii�J�N[YN\�JWJNp74����m�����g\bcd^\d[`bd[>c_74}����~���gZdZdZ74q��v���}���g[74q��v����ZZZZg���X��
>������X����74
>=yend size=525 part=1 pcrc32=a9f9a88b

Technical Details
Message-ID: <a76fpr$j19vc$1@ID-58688.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!202.163.200.13!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <a76fpr$j19vc$1@ID-58688.news.dfncis.de>
Subject: Handling current buggy yEnc implementations (note to developers)
Date: Tue, 19 Mar 2002 04:45:48 +0000
From: Alex Birj <alexande_nospam@tx.technion.ac.il>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!202.163.200.13!not-for-mail
Newsgroups: news.software.readers,news.software.nntp
Lines: 75
NNTP-Posting-Host: 202.163.200.13
X-Trace: fu-berlin.de 1016513148 19965932 202.163.200.13 (16 [58688])