Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4187)

Unified Diff: chrome/installer/mac/third_party/bsdiff/goobspatch.c

Issue 2875008: Emergency goobsdiff patch: don't use LZMA_RUN after LZMA_FINISH (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/mac/third_party/bsdiff/goobspatch.c
===================================================================
--- chrome/installer/mac/third_party/bsdiff/goobspatch.c (revision 50527)
+++ chrome/installer/mac/third_party/bsdiff/goobspatch.c (working copy)
@@ -194,9 +194,6 @@
return 0;
} else if (feof(xzf->f)) {
xzf->eof = 1;
- /* LZMA_FINISH is not critical because
- * LZMA_CONCATENATED is not in use. */
- action = LZMA_FINISH;
}
}
@@ -211,6 +208,11 @@
return 0;
}
+ /* LZMA_FINISH is not critical because
+ * LZMA_CONCATENATED is not in use. */
+ if (xzf->eof)
+ action = LZMA_FINISH;
+
/* Run the decoder. */
xzf->err = lzma_code(&xzf->ls, action);
if (xzf->err == LZMA_STREAM_END) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698