🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #137460

--

#137460
From: Jeff-Relf.Me
Date: Tue, 07 Feb 2012 09:02
40 lines
3180 bytes
<PRE>
X.EXE was fixed minutes after it crashed, no "bug report" required.

The bad code wanted a valid TLD, it didn't branch on the null pointer.

    « Injection-Info: mx04.eternel-september.örg »,
    [ in Greg's "Joshua•Cranmer" forgery,
      "news:jgnm9va$lb$1@dont-email.me" ]

I wrote every line of "Jeff-Relf.Me/X.CPP"; it's 126 columns, monospaced.
Visual Studio is my editor/compiler/debugger;
The debugger told me exactly where/what the problems was; to wit:

  //  "Tok" is the name of a header line, a null·terminated string.
  //    e.g. "Injection-Info:".
  //  "B" points to the first byte of data in the line.
  //    e.g. "mx04.eternel-september.örg".
  if ( !H.Abuse && ( Ch»( L"Complaints", Tok )
  || Eqi( Tok, L"Injection-Info:"  ) ) )
    H.Abuse = B ;
  else if ( !H.Path && Eqi( Tok, L"Path:" ) )
    H.Path = B ;
      ...
  //  "news·server" gets the right·most domain name in the "Path:" line.
  //  "gDomain()" returns either null or the domain name, if there is one.
  LnP  news·server ;  B = 0 ;  int far·right = 1 ;
  while ( B != H.Path ) {  B = FromEnd( H.Path, '!' );
    if ( !B )  B = H.Path ;  else  *B++ = 0 ;
    if ( far·right && ( far·right = 0, !Mailed_ && Ch»( L"mail2news", B ) ) )  Mailed_ = 1 ;
    if ( Eq( B, L"xmission" ) ) { news·server = L"Xmission.COM"; break ; }
    if ( news·server = gDomain( B ) )  break ;  if ( *NSP·User·ID )  continue ;
    u64 r64 ;  P = B ;  While ( HexToN ( Ch ) >= 0 );  //  P - B+16,m   f0bc693b
    if ( !Ch && P - B >= 8 && ( r64 = hxUsrID( B ) ) )
      Str( NSP·User·ID, L"%s", u64·to·350( r64 ) );  }
      ...
  LnP Abuse, s = H.Abuse ;
  Abuse = *news·server && s
  && ( gDomain(s) && ( P» = s - 1 ) || EqiN( s, L"http://", 7 ) && ( P» = s + 6 ) || Ch»( '@', s ) || Ch»( ')', s  ) )
  && ( *P» && ( P = gDomain( P» + 1 ), P && !Eqi( P, news·server  ) ) ) ? CapHostNG( P ) : L"" ;
  if ( Eq( news·server, Abuse ) )  Abuse = L"" ;
Technical Details
Message-ID: <Jeff-Relf.Me@2012_Feb.7^1.02.am>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!s09-10.readnews.com!not-for-mail
References: <7qo0j7pnbo3h964jsqljpngc1kerqc7ipp@4ax.com> <5cme4j.u7u.17.1@news.alt.net> <Jeff-Relf.Me@2012_Feb.6^8.49.pm> <109f90faf10ca522e0dce356a2fff95f@tioat.net>

Show Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@2012_Feb.7^1.02.am>
Subject: --
Date: Tue, 07 Feb 2012 09:02:20 +0000
From: Jeff-Relf.Me
References: <7qo0j7pnbo3h964jsqljpngc1kerqc7ipp@4ax.com> <5cme4j.u7u.17.1@news.alt.net> <Jeff-Relf.Me@2012_Feb.6^8.49.pm> <109f90faf10ca522e0dce356a2fff95f@tioat.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!s09-10.readnews.com!not-for-mail
Content-Type: Text/HTML; charset=UTF-8
Newsgroups: alt.free.newsservers
User-Agent: Jeff-Relf.Me/X.TXT
Lines: 40
NNTP-Posting-Host: b17d1a77.blocknews.net
X-Trace: DXC=]MDnTXQZ]o=odeb9alicj;
 GTXUl?iR^P<<X<c6\A0782SF4_^kH]T73nI41_F0hjd6W4?V4]Ml_o4CkIEHNKlUQ>kA@gFNCHi15
X-Complaints-To: abuse@blocknews.net
X-Original-Bytes: 3038