summaryrefslogtreecommitdiffstats
path: root/applypatch/imgpatch.cpp
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2017-02-16 22:23:12 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-02-16 22:23:12 +0100
commit6f068903438dc50ac17a19e14cbbbd2bf9589638 (patch)
tree2216a2392069bd64aee39f6229b6d5d969d910e8 /applypatch/imgpatch.cpp
parentMerge "recovery: Clean up browse_directory()." am: 635eb1c83e (diff)
parentMerge "Use bspatch from external/bsdiff." (diff)
downloadandroid_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.tar
android_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.tar.gz
android_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.tar.bz2
android_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.tar.lz
android_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.tar.xz
android_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.tar.zst
android_bootable_recovery-6f068903438dc50ac17a19e14cbbbd2bf9589638.zip
Diffstat (limited to 'applypatch/imgpatch.cpp')
-rw-r--r--applypatch/imgpatch.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/applypatch/imgpatch.cpp b/applypatch/imgpatch.cpp
index 00ea90efa..8f4a2a42b 100644
--- a/applypatch/imgpatch.cpp
+++ b/applypatch/imgpatch.cpp
@@ -193,6 +193,9 @@ int ApplyImagePatch(const unsigned char* old_data, ssize_t old_size, const Value
// Next, apply the bsdiff patch (in memory) to the uncompressed data.
std::vector<unsigned char> uncompressed_target_data;
+ // TODO(senj): Remove the only usage of ApplyBSDiffPatchMem here,
+ // replace it with ApplyBSDiffPatch with a custom sink function that
+ // wraps the given sink function to stream output to save memory.
if (ApplyBSDiffPatchMem(expanded_source.data(), expanded_len, patch, patch_offset,
&uncompressed_target_data) != 0) {
return -1;