mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
92faa8b109
If compressed data is located in sectors at the end of the flash and it's offset + input stream size > 0xFFFFFFFF, the uncompressing time is very long, since processing of the stream is done bytewise (and not blockwise) due to overflow in inflate_fast() while calculation and checking for enough input available. Check for this overflow condition and limit the available stream input size to the actually max. possible input size. This fixes the problem. The issue is easily reproduceable by placing a gziped bitmap in flash, e.g. at FFF80000, and running 'bmp' commands like 'bmp info FFF80000' or 'bmp display FFF80000'. The uncompressing can take up to 3 sec. whereas it should normaly take a fraction of a second. If the 'splashimage' environment variable points to this address, the booting time also increases significantly. Signed-off-by: Anatolij Gustschin <agust@denx.de> |
||
---|---|---|
.. | ||
libfdt | ||
lzma | ||
lzo | ||
zlib | ||
addr_map.c | ||
asm-offsets.c | ||
bzlib.c | ||
bzlib_crctable.c | ||
bzlib_decompress.c | ||
bzlib_huffman.c | ||
bzlib_private.h | ||
bzlib_randtable.c | ||
circbuf.c | ||
crc7.c | ||
crc16.c | ||
crc32.c | ||
ctype.c | ||
display_options.c | ||
div64.c | ||
errno.c | ||
gunzip.c | ||
hashtable.c | ||
ldiv.c | ||
lmb.c | ||
Makefile | ||
md5.c | ||
net_utils.c | ||
qsort.c | ||
rbtree.c | ||
sha1.c | ||
sha256.c | ||
string.c | ||
strmhz.c | ||
time.c | ||
vsprintf.c |