diff options
author | Sen Jiang <senj@google.com> | 2017-02-16 22:14:09 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-16 22:14:10 +0100 |
commit | f9962dbfe244e7552f241328d2270efc79ed5ccc (patch) | |
tree | 1881bc79a83b1d362856271ff69716440b74682f /applypatch/imgpatch.cpp | |
parent | Merge "recovery: Clean up browse_directory()." (diff) | |
parent | Use bspatch from external/bsdiff. (diff) | |
download | android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.tar android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.tar.gz android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.tar.bz2 android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.tar.lz android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.tar.xz android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.tar.zst android_bootable_recovery-f9962dbfe244e7552f241328d2270efc79ed5ccc.zip |
Diffstat (limited to 'applypatch/imgpatch.cpp')
-rw-r--r-- | applypatch/imgpatch.cpp | 3 |
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; |