At 9:23 AM -0500 4/20/01, Brad Blix wrote:
> I've been doing some testing on this. It does appears to be related to
> chunky-writes. With chunky-writes set to always in the config file I get
> corrupted message retrieval for lines between 513 and 1023
> characters long. When
> I set chunky-writes to never this problem disappears.
>
> Brad
This is fixed in Qpopper 4.0.1b2, now available at
<ftp://ftp.qualcomm.com/eudora/servers/unix/popper/beta/>.
(It wasn't a buffer overflow, by the way. Just an error in the
accounting of large chunks. As you noted, it only happened when
using chunky-writes.)
>
> Eric Luyten wrote:
>
>> > We haven't looked into this a great deal, but we've rolled back
>> to Qpopper
>> > 3.1.2 due to this.
>> >
>> > It appears that Qpopper 4 overflows when a line in a message
>> body contains
>> > 515 characters or more in it.
>>
>> Just an idea :
>>
>> In version 4 an extra constant was introduced
>> in popper.h
>>
>> #define OUT_BUF_SIZE 512
>>
>> as well as an associated buffer structure
>>
>> char pcOutBuf[OUT_BUF_SIZE];
>>
>> The relevant code section appears to be in pop_write_chunk
>> (file pop_send.c, lines 733 through end)
>>
>> Eric.