Skip to content
Snippets Groups Projects
Commit 35f6a943 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Wolfgang Denk
Browse files

lib_generic: gunzip: New function zunzip


Separate gunzip in

gunzip: Find the end of the header and call zunzip.
zunzip: Inflate gunzip block without header.

UBI fs blocks can be compresed in lzo, zlib or no-compression. The
current implementation of u-boot supported all the compressions but
there was a bug in the implementation of the zlib blocks.

UBIFS's Zlib blocks do not have header but they were compressed using
gunzip, a function used to decompress gunzip files/sectors with a
header.

This patch adds a new function zunzip that uncompress a zlib block with
no header.

Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@uam.es>
parent ccb71dfa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment