🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Matt Dillon Sat, 02 Aug 1997 00:00
Diablo, DNews, and embedded NULs
#20146
Author: Matt Dillon
Date: Sat, 02 Aug 1997 00:00
20 lines
1086 bytes
    Wee.

    Apparently a whole bunch of articles got sent from an alternet dialup
    site with embedded NULs in them.

    Diablo is sending the articles properly '.' escaped, and, being 
    8-bit clean, is sending the embedded NULs as well.

    DNews does not appear to like embedded NULs.

    I'm not sure what, if anything, should be done about it on my side.
    INN seems to deal with the embedded NULs ok, and I don't think it
    would be a good idea for me to start munging articles in-transit to
    strip them out.

						-Matt


Re: Diablo, DNews, and embedded NULs
#20128
Author: Jeff Garzik
Date: Sat, 02 Aug 1997 00:00
28 lines
1542 bytes
Matt Dillon wrote:
>     Apparently a whole bunch of articles got sent from an alternet dialup
>     site with embedded NULs in them.

Hopefully the UUNET UDP (which I just found out about in
news.admin.technical) will take care of all the spam from alternet
dialups...


>     Diablo is sending the articles properly '.' escaped, and, being
>     8-bit clean, is sending the embedded NULs as well.

>     I'm not sure what, if anything, should be done about it on my side.
>     INN seems to deal with the embedded NULs ok, and I don't think it
>     would be a good idea for me to start munging articles in-transit to
>     strip them out.


With the advent of MIME articles to support foreign languages (such as
the oriental alphabets), news *must* be 8-bit clean nowadays.  It's just
another reason to laugh at DNEWS.
-- 
Jeff Garzik					   Quality news feeds
News Administrator		       INN Technical info, Consulting
Spinne, Inc.				http://www.spinne.com/usenet/

Re: Diablo, DNews, and embedded NULs
#20151
Author: Terry Kennedy
Date: Sun, 03 Aug 1997 00:00
54 lines
2522 bytes
Matt Dillon <dillon@best.net> writes:
>     Apparently a whole bunch of articles got sent from an alternet dialup
>     site with embedded NULs in them.

  I was seeing them from erols.

>     DNews does not appear to like embedded NULs.

  The Reference NNTP doesn't like them either. I've made the following change
to Reference NNTP 1.5.12.2 to deal with this. Note that this change *does*
alter articles in transit, but since the articles had the NULs inserted by a
news server that was trying to store articles in "wire format" the NULs them-
selves were not present in the original articles.

  Your line numbers may be offset if you apply this patch to vanilla
Reference NNTP 1.5.12.2 - I'm running something that's *very* different
(streaming, antispam, other stuff).

*** batch.c_orig	Sat Jul 27 18:08:45 1996
--- batch.c	Fri Aug  1 00:48:56 1997
***************
*** 201,206 ****
--- 201,207 ----
  	register char *cp, *realline;
  	char line[NNTP_STRLEN];
  	int toobig = NO;
+ 	register int i;
  
  	if (cont_code > 0) {
  		printf("%d Ok\r\n", cont_code);
***************
*** 216,221 ****
--- 217,230 ----
  #endif
  	cp = line; /* set it to anything non-NULL as a flag */
  	while (fgets(line, sizeof line, stdin) != NULL) {
+ 		for (i = 0; i < sizeof line; i++) {
+ 			if (line[i] == '\r' || line[i] == '\n')
+ 				break;
+ 			if (line[i] == '\0') {
+ 				syslog(LOG_ERR, "NULL in article %s", msg_id);
+ 				line[i] = ' ';
+ 			}
+ 		}
  		xfer_lines++;
  		if (cp != NULL) {
  		    if (line[0] == '.' && (line[1] == '\r' || line[1] == '\n'

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: Diablo, DNews, and embedded NULs
#20219
Author: Ron Bickers
Date: Tue, 05 Aug 1997 00:00
9 lines
682 bytes
:     DNews does not appear to like embedded NULs.

This was fixed with 4.3f.

---
Ron

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads