[fpc-devel] zstream, fpc and lazarus

Daniël Mantione daniel.mantione at freepascal.org
Mon Nov 26 08:18:27 CET 2007



Op Mon, 26 Nov 2007, schreef Paul Ishenin:

> Hello,  FPC developers' list.
> =

> =

> Lazarus crashes with latest fpc (trunk). I found that reason in zstream.
> TDecompressionStream must reset position of Source stream if Seek is call=
ed
> with Offset =3D 0 and Origin =3D soFromBeginning (according to delphi hel=
p).
> =

> Attached patch fixes that little problem (hope without adding another).

This patch is not correct because there might still be unread data in the =

zlib data buffers; this patch makes no attempt to flush them.

Dani=EBl


More information about the fpc-devel mailing list