commit | eed0d39ef5e4a7425e0cea81e309ac1ccacb0eb0 | [log] [tgz] |
---|---|---|
author | Jeremy Compostella <jeremy.compostella@intel.com> | Fri Sep 30 14:54:25 2016 +0200 |
committer | Colin Cross <ccross@android.com> | Thu Oct 06 09:53:42 2016 -0700 |
tree | c8ba92235c2f88b84af9958c2a7ee4f3701418f3 | |
parent | 4c120f2438ecfba62fca04ae2407bca10921bada [diff] |
libsparse: output_file.c, fix large data chunk issue CHUNK_HEADER structure type allows DATA chunk to be up to MAX_UINT large. The write() callback LEN parameter should be unsigned int. Also: - write() callback should continue to write data if less than expected data have been written. - gzerror() returns LEN on success, 0 otherwise Test: manual Change-Id: Id46d664b84c1a506f419524fe28055f784c2ae7a Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>