summaryrefslogtreecommitdiff
path: root/testing/libfuzzer/pdf_fm2js_fuzzer.cc
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2016-12-01 15:15:49 -0500
committerChromium commit bot <commit-bot@chromium.org>2016-12-01 20:34:10 +0000
commit991f61869cfba58206cc7ec038fe8d5305bbb2ba (patch)
tree5935ae9cecb17d07cbd2023cefc429050fdb5319 /testing/libfuzzer/pdf_fm2js_fuzzer.cc
parent8a463c5a1a2252b5fdbff3b5ab07d50273bbc391 (diff)
downloadpdfium-991f61869cfba58206cc7ec038fe8d5305bbb2ba.tar.xz
Move Init to constructor in CXFA_FMProgram
Change-Id: I6b2d1a5b06211b32f3053aad4d7ae7501ec8d8f6 Reviewed-on: https://pdfium-review.googlesource.com/2093 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/libfuzzer/pdf_fm2js_fuzzer.cc')
-rw-r--r--testing/libfuzzer/pdf_fm2js_fuzzer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/libfuzzer/pdf_fm2js_fuzzer.cc b/testing/libfuzzer/pdf_fm2js_fuzzer.cc
index ced5e18399..9afaa915ec 100644
--- a/testing/libfuzzer/pdf_fm2js_fuzzer.cc
+++ b/testing/libfuzzer/pdf_fm2js_fuzzer.cc
@@ -17,8 +17,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
CFX_WideString input =
CFX_WideString::FromUTF8(CFX_ByteStringC(data, safe_size.ValueOrDie()));
- CXFA_FMProgram program;
- if (program.Init(input.AsStringC()) || program.ParseProgram())
+ CXFA_FMProgram program(input.AsStringC());
+ if (program.ParseProgram())
return 0;
CFX_WideTextBuf js;