platform_bootable_recovery/applypatch
Tianjie Xu 14ebc1e5ae Fix a rare failure for imgdiff when random data equals gzip header
In a rare case, a random chunk will pass both the gzip header check
and the inflation process; but fail the uncompressed length check in the
footer. This leads to a imgdiff failure. So, we should treat this chunk
as 'normal' instead of 'inflated' while generating the patch.

Bug: 63334984
Test: imgdiff generates patch successfully on previous failing images.
Change-Id: Ice84f22d3653bce9756bda91e70528c0d2f264a0
2017-07-06 16:49:11 -07:00
..
include/applypatch Print SHA1 of the patch if bsdiff fails with data error 2017-05-16 12:39:14 -07:00
Android.mk More cleanup to imgdiff & imgpatch 2017-03-16 12:09:49 -07:00
applypatch.cpp applypatch: Let Apply{BSDiff,Image}Patch accept std::function. 2017-03-28 10:14:53 -07:00
applypatch_main.cpp applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
applypatch_modes.cpp applypatch: Remove the obsolete support for "applypatch -s". 2017-04-25 21:23:12 -07:00
applypatch_modes.h applypatch: Add testcases for applypatch executable. 2016-11-01 14:40:14 -07:00
bspatch.cpp Print SHA1 of the patch if bsdiff fails with data error 2017-05-16 12:39:14 -07:00
freecache.cpp Fix the improper use of LOCAL_WHOLE_STATIC_LIBRARIES. 2016-03-03 14:52:44 -08:00
imgdiff.cpp Fix a rare failure for imgdiff when random data equals gzip header 2017-07-06 16:49:11 -07:00
imgdiff_main.cpp Add tests for imgdiff. 2016-12-19 16:53:03 -08:00
imgpatch.cpp Implement a custom deflate sink function for bspatch 2017-05-26 14:05:20 -07:00
libimgpatch.pc applypatch: Add libimgpatch.pc 2016-02-16 11:35:29 -08:00
Makefile Add include/ to the Makefile include path. 2016-03-14 14:25:33 -07:00
NOTICE Add NOTICE file 2012-04-06 13:51:00 -07:00