Dear Matthias Fuchs, In message <200901021511.42036.matthias.fu...@esd-electronics.com> you wrote: > U-Boot's gunzip() function does not handle the return code > of zlib's inflate() function correctly. gunzip() is implemented > to uncompress all input data in one run. So the correct return > code for the good case is Z_STREAM_END. In case of insufficient > output buffer memory inflate returns Z_OK. For gunzip() this > is an error. > > It also makes sense to me to call inflateEnd() also in case > of an error. > > Signed-off-by: Matthias Fuchs <matthias.fu...@esd-electronics.com> > --- > common/cmd_bootm.c | 2 +- > lib_generic/gunzip.c | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-)
Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de HEALTH WARNING: Care Should Be Taken When Lifting This Product, Since Its Mass, and Thus Its Weight, Is Dependent on Its Velocity Relative to the User. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot