🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Jerry Aguirre Sat, 09 Feb 1991 08:25
core dumps from nntpxmit
#970
Author: Jerry Aguirre
Date: Sat, 09 Feb 1991 08:25
24 lines
1437 bytes
I have just finished tracking down why my nntpxmit was causing core
dumps in the batch directory.  In nntpxmit.c the log function calls

		syslog(importance, error)

where error is the text message passed to log.  But the man page for
syslog says that the message may contain printf like escapes that
refference additional arguments.

Certain message IDs on the net have been including the "%" character as
part of the character radix used to encode the unique part.  If an error
message passed to "log" happens to include one of these message IDs, or
any percent character, then syslog will attempt to refference a
non-existent argument.

I suggest changing the entry to use:

		syslog(importance, "%s", error)

as there is no privision for "log" to pass additional arguments and no
mechanism to filter out the percent character in the text.

				Jerry Aguirre
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