emarshal@xnet.com 29Aug1997
Date sent: Fri, 29 Aug 1997 15:25:27 -0500 (CDT)
From: "Edward S. Marshall" <emarshal@xnet.com>
To: inn-patches@vix.com
Subject: patch for nnrpd...
Well, this was posted to Usenet, but just for good measure, I'll send it
here. This basically fixes a problem where nnrpd crashes on overview file
lines that are longer than the allowed buffer (can happen if the overview
files get corrupted for some reason).
*** article.c.orig Mon Aug 25 10:44:57 1997
--- article.c Mon Aug 25 11:27:08 1997
***************
*** 798,804 ****
}
for ( ; OVERarticle < artnum; OVERarticle = atol(OVERline))
! if ((OVERline = QIOread(OVERqp)) == NULL) {
if (QIOtoolong(OVERqp))
continue;
/* Don't close file; we may rewind. */
--- 798,804 ----
}
for ( ; OVERarticle < artnum; OVERarticle = atol(OVERline))
! while ((OVERline = QIOread(OVERqp)) == NULL) {
if (QIOtoolong(OVERqp))
continue;
/* Don't close file; we may rewind. */
--
------------------------------------------------------------
Edward S. Marshall <emarshal@xnet.com> _.-' XNet Information Systems
http://www.xnet.com/~emarshal/ _.-' Systems/Network Administrator
-----------------------------------------------------------
[ Are you a spammer looking for a great opportunity to be blacklisted? Then ]
[ have your automatic bots email spam@logic.net and secure a spot on my list! ]
You can find a summary and links related to this topic
as part of the Mib Software Usenet RKT.