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

Unified Diff: runtime/bin/dfe.cc

Issue 2991393002: [standalone] Automatically decompress gzip'd resources, including sources and script snapshots. (Closed)
Patch Set: . Created 3 years, 4 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
Index: runtime/bin/dfe.cc
diff --git a/runtime/bin/dfe.cc b/runtime/bin/dfe.cc
index bc83f5be15b0d359463df83e3aba4a39cb96850b..b02ae91b91adac1e9a87d63f8c4bf4ffe8f5ce89 100644
--- a/runtime/bin/dfe.cc
+++ b/runtime/bin/dfe.cc
@@ -146,7 +146,7 @@ bool DFE::TryReadKernelFile(const char* script_uri,
// We need a temporary variable because SniffForMagicNumber modifies the
// buffer pointer to skip snapshot magic number.
const uint8_t* temp = buffer;
- if (DartUtils::SniffForMagicNumber(&temp, kernel_ir_size) !=
+ if (DartUtils::SniffForMagicNumber(temp, *kernel_ir_size) !=
siva 2017/08/04 17:11:29 Now that SniffMagicNumber does not modify the buff
rmacnak 2017/08/07 18:18:57 Done.
DartUtils::kKernelMagicNumber) {
free(const_cast<uint8_t*>(buffer));
*kernel_ir = NULL;
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/gzip.h » ('j') | runtime/bin/gzip.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698