platform_bootable_recovery/applypatch
Tianjie Xu 572abbb81c Remove the assumption of target chunk size in imgdiff
In the split mode of imgdiff, we used to assume that the size of a split
target chunk is always greater than the blocksize i.e. 4096. This may
lead to the following assertion failure:
I0221 04:57:33.451323 818464 common.py:205 imgdiff F 02-21 04:57:33 821203 821203 imgdiff.cpp:999]
Check failed: tgt_size >= BLOCK_SIZE (tgt_size=476, BLOCK_SIZE=4096)

This CL removes the assumption and handles the edge cases.

Test: generate and verify the incremental update for TFs in the bug; unit test passes

Bug: 73757557
Bug: 73711365
Change-Id: Iadbb4ee658995f5856cd488f3793980881a59620
2018-02-23 10:44:05 -08:00
..
include/applypatch Remove the assumption of target chunk size in imgdiff 2018-02-23 10:44:05 -08:00
Android.bp Disable building libapplypatch on mac 2018-02-17 22:06:31 -08:00
applypatch.cpp Skip the cache size check on host 2018-02-12 15:19:37 -08: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 Merge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch." 2017-11-11 01:09:47 +00:00
freecache.cpp Skip the cache size check on host 2018-02-12 15:19:37 -08:00
imgdiff.cpp Remove the assumption of target chunk size in imgdiff 2018-02-23 10:44:05 -08:00
imgdiff_main.cpp Add tests for imgdiff. 2016-12-19 16:53:03 -08:00
imgpatch.cpp applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch. 2017-11-10 12:18:34 -08:00
NOTICE Add NOTICE file 2012-04-06 13:51:00 -07:00