Article View: news.software.nntp
Article #24162Re: inn 1.7.2 and expireover-defect.patch
From: Forrest J. Cavalier III
Date: Tue, 09 Dec 1997 00:00
Date: Tue, 09 Dec 1997 00:00
52 lines
2418 bytes
2418 bytes
In article <66jeul$f9g$1@bsdti6.sdm.de>, pichel@bsdti1.sdm.de wrote...
>
>(btw: It seems there is no 1.7.1. It's only a symlink to 1.7.2 ?)
>
>I downloaded inn 1.7.2 and now my question is whether the
> expireover-defect.patch
>patch in
> ftp://ftp.isc.org/isc/inn/unoff-patches/
>
>still is a good recommendation? I would say yes. But what's the boss'
>opinion :-)) ?
Short answer:
If you are running 1.7.1 or 1.7.2, then do not apply the
expireover-defect.patch.
The long answer:
There are two equivalent fixes to two defects in expireover.c
- The 1.7.1 version: (the HasHeader version) was what was suggested by
Mike Brudenell (pmb1@york) , the person who identified the defect.
- The expireover-defect.patch fixes the same problem in a different
manner.
The differences are really a matter of software philosophy.
In other parts of INN, the length member is used to determine if a
buffer needs to be allocated or (free'd.) Using HasHeader works
in this particular section of code, but that really was not the
original intent for HasHeader.
There was a lingering defect in the 1.5.1 code also, related to
the !size test later on. (In 1.5.1 this could be a very unlikely
memory leak.) The one line HasHeader fix avoids this bug too, but
in a non-obvious way.
The ISC preferred the 1 line fix reported by pmb1@york, even
though it doesn't quite match what the rest of the code in
INN does.
The philosophy difference only matters when someone is trying
to understand and read the code at a later point in time.
Forrest Cavalier, Mib Software, INN customization and consulting
Watch for updates to the Usenet RKT patches sections detailing
1.7.1 and 1.7.2 soon. (Subscribers will receive notice and
a summary in email.) http://www.mibsoftware.com/rktsub.htm
Technical Details
Message-ID:
<66k275$2kh$1@news1.epix.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<66jeul$f9g$1@bsdti6.sdm.de>Show Full Headers
Complete Article Headers
Message-ID: <66k275$2kh$1@news1.epix.net> Subject: Re: inn 1.7.2 and expireover-defect.patch Date: Tue, 09 Dec 1997 00:00:00 +0000 From: mibsoft@epix.net (Forrest J. Cavalier III) References: <66jeul$f9g$1@bsdti6.sdm.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 296666729 Organization: Mib Software Newsgroups: news.software.nntp