platform_bootable_recovery/applypatch
Tianjie Xu ce5fa5e538 Print SHA1 of the patch if bsdiff fails with data error
This will help us to identify the patch corruption.

Meanwhile fix a wrong size parameter passed to bspatch.
(patch->data.size() into patch->data.size() - patch_offset).

Also remove the only usage of "ApplyBSDiffPatchMem()" and inline its
Sink function for simplicity.

Bug: 37855643
Test: Prints SHA1 for corrupted patch in imgdiff_test.
Change-Id: Ibf2db8c08b0ded1409bb7c91a3547a6bf99c601d
2017-05-16 12:39:14 -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 More cleanup to imgdiff & imgpatch 2017-03-16 12:09:49 -07:00
imgdiff_main.cpp Add tests for imgdiff. 2016-12-19 16:53:03 -08:00
imgpatch.cpp Print SHA1 of the patch if bsdiff fails with data error 2017-05-16 12:39:14 -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