u-boot/lib_generic
Matthias Fuchs 107b801cf3 Fix gunzip in case of insufficient output buffer
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.fuchs@esd-electronics.com>
2009-01-27 20:59:09 +01:00
..
lzma Coding style cleanup, update CHANGELOG 2008-09-13 02:23:05 +02:00
addr_map.c Introduce addr_map library 2008-12-15 22:05:36 +01:00
bzlib.c [new uImage] Move gunzip() common code to common/gunzip.c 2008-02-07 01:12:55 +01:00
bzlib_crctable.c Patch by Yuli Barcohen, 14 Aug 2003: 2003-08-29 20:57:53 +00:00
bzlib_decompress.c * Patch by Pantelis Antoniou, 14 Sep 2004: 2004-10-11 22:43:02 +00:00
bzlib_huffman.c * Patches by Xianghua Xiao, 15 Oct 2003: 2003-10-15 23:53:47 +00:00
bzlib_private.h * Patches by Xianghua Xiao, 15 Oct 2003: 2003-10-15 23:53:47 +00:00
bzlib_randtable.c Patch by Yuli Barcohen, 14 Aug 2003: 2003-08-29 20:57:53 +00:00
crc16.c crc16: move to lib_generic 2008-08-29 12:25:02 +02:00
crc32.c drivers/mtd/nand: Move conditional compilation to Makefile 2008-08-13 01:40:43 +02:00
ctype.c Initial revision 2000-07-19 14:09:16 +00:00
display_options.c Allow print_size to print in GB 2008-07-09 22:50:20 +02:00
div64.c Move 64bit division from avr32 to generic lib 2007-08-10 10:33:34 +02:00
gunzip.c Fix gunzip in case of insufficient output buffer 2009-01-27 20:59:09 +01:00
ldiv.c * Code cleanup: 2003-06-27 21:31:46 +00:00
lmb.c Fix some more print() format errors. 2008-07-11 01:16:00 +02:00
Makefile Introduce addr_map library 2008-12-15 22:05:36 +01:00
md5.c Fix build issue with string.h and linux/string.h 2008-06-12 08:51:35 +02:00
rbtree.c Add Red Black Tree support 2008-10-18 21:54:01 +02:00
sha1.c Fix build issue with string.h and linux/string.h 2008-06-12 08:51:35 +02:00
sha256.c add SHA256 support 2008-06-30 22:57:16 +02:00
string.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
strmhz.c Fix strmhz(): avoid printing negative fractions 2008-10-22 08:52:19 +02:00
vsprintf.c UBI: Add basic UBI support to U-Boot (Part 6/8) 2008-11-19 20:34:39 +01:00
zlib.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00