Article View: news.software.nntp
Article #970core dumps from nntpxmit
From: Jerry Aguirre
Date: Sat, 09 Feb 1991 08:25
Date: Sat, 09 Feb 1991 08:25
24 lines
1437 bytes
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
Technical Details
Message-ID:
<50338@olivea.atc.olivetti.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!watserv1!watmath!att!pacbell.com!ames!sun-barr!olivea!olivey!jerryShow Full Headers
Complete Article Headers
Message-ID: <50338@olivea.atc.olivetti.com> Subject: core dumps from nntpxmit Date: Sat, 09 Feb 1991 08:25:19 +0000 From: jerry@olivey.olivetti.com (Jerry Aguirre) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!watserv1!watmath!att!pacbell.com!ames!sun-barr!olivea!olivey!jerry Newsgroups: news.software.nntp Keywords: syslog core nntpxmit Sender: news@olivea.atc.olivetti.com Lines: 23