Re: [Dovecot] Patch for assertion failure in 1.0.10

2008-01-18 Thread Timo Sirainen
On Fri, 2008-01-18 at 19:04 -0500, Richard Platel wrote:
> Hi
> 
> FETCHing a largish (~30K)  zlib compressed maildir message causes an  
> assertion failure on an attempt to grow the stream buffer to smaller  
> than its current size.
> 
> I believe the attached patch fixes this.

I fixed it a bit differently:
http://hg.dovecot.org/dovecot/rev/e33119f2dfdc

It was allocating more memory even though there was no need for it after
compress.



signature.asc
Description: This is a digitally signed message part


[Dovecot] Patch for assertion failure in 1.0.10

2008-01-18 Thread Richard Platel


Hi

FETCHing a largish (~30K)  zlib compressed maildir message causes an  
assertion failure on an attempt to grow the stream buffer to smaller  
than its current size.


I believe the attached patch fixes this.



istream-zlib.c.patch
Description: Binary data