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

Unified Diff: pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc

Issue 2910493003: Fix PDFiumFuzzerHelper build without V8_USE_EXTERNAL_STARTUP_DATA. (Closed)
Patch Set: Created 3 years, 7 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: pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
diff --git a/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc b/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
index 3d49a0a7c36a3b9346762241a77e156e64e4b656..9598caa40e575ddff1f4cc339c09d54645f81bf8 100644
--- a/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
+++ b/pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
@@ -222,8 +222,12 @@ bool PDFiumFuzzerHelper::RenderPage(const FPDF_DOCUMENT& doc,
// Initialize the library once for all runs of the fuzzer.
struct TestCase {
TestCase() {
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
InitializeV8ForPDFium(ProgramPath(), "", &natives_blob, &snapshot_blob,
&platform);
+#else
+ InitializeV8ForPDFium(ProgramPath(), &platform);
+#endif
memset(&config, '\0', sizeof(config));
config.version = 2;
« 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