This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [ECOS] fis load -d


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
------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]