This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RE: [ECOS] fis load -d
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Patrick Doyle <wpd at delcomsys dot com>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 02 Jan 2003 09:42:39 -0700
- Subject: RE: [ECOS] fis load -d
- References: <NFBBJAJICAKJPMMKDAGBKEADDIAA.wpd@delcomsys.com>
On Tue, 2002-12-31 at 14:59, Patrick Doyle wrote:
> OK, here is the patch. After further investigation, I learned that the size
> information was being passed to the decompression function properly. For
> whatever reason, when 'gzip_close()' got a result of 'Z_OK', it decided that
> if it produced any output, then an error occured. This simple patch works
> around that without disturbing too much else. The correct fix would
> probably be to have 'gzip_inflate()' return 'Z_STREAM_END' normally. I
> can't imagine any reason why it behaves the way that it does (i.e. testing
> to see if any bytes were output and returning 'Z_OK' if they were), but
> that's the way it works. My change works around that.
>
Fair enough, I'll apply this. Thanks for looking into it.
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary@mlbassoc.com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------