Skip to content

Commit

Permalink
Fix PDFiumFuzzerHelper build without V8_USE_EXTERNAL_STARTUP_DATA.
Browse files Browse the repository at this point in the history
Review-Url: https://codereview.chromium.org/2910493003
Cr-Commit-Position: refs/heads/master@{#475568}
  • Loading branch information
leizleiz authored and Commit Bot committed May 30, 2017
1 parent 23edf9f commit df49be8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdf/pdfium/fuzzers/pdfium_fuzzer_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df49be8

Please sign in to comment.