Thread View: news.software.nntp
2 messages
2 total messages
Started by T. William Wells
Sun, 13 Oct 1996 00:00
bug in expireover
Author: T. William Wells
Date: Sun, 13 Oct 1996 00:00
Date: Sun, 13 Oct 1996 00:00
24 lines
1298 bytes
1298 bytes
I was just looking over expireover because I've become tired of
the memory it uses and found -- a bug!
In RemoveLines, where it's allocating space to read in the entire
overview file, it checks to see if there's enough space in the
existing alloction. With this:
else if (B.Size < Sb.st_size) {
The problem is that the buffer size must be one *greater* than
the file size, to accomodate a trailing nul. So if there happens
to be an overview file that's exactly one byte larger than the
previous largest file, a nul byte gets written past the end of
allocated memory. There's a similar bug in AddLines.
The fix is to make it
else if (B.Size <= Sb.st_size) {
Also, START_LIST_SIZE is 128; in this age of huge news spools,
that's ridiculously small. 4096 is a much more reasonable number.
Reporting Bugs in INN (was Re: bug in expireover)
Author: James Brister
Date: Mon, 14 Oct 1996 00:00
Date: Mon, 14 Oct 1996 00:00
18 lines
1030 bytes
1030 bytes
It was said: > I was just looking over expireover because I've become tired of > the memory it uses and found -- a bug! PLEASE, Please, please, even if you post a bug report here, email it to <inn-bugs@isc.org>. I may miss what you post. Thanks James -- James Brister brister@vix.com Internet Software Consortium inn@isc.org
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