diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-05-16 12:17:50 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-16 16:29:23 +0000 |
commit | c0d358ad234843a524a1bcc2a439f08ad0c64aa1 (patch) | |
tree | dfb046a476f5dece9f76764415e6f297591f1829 /testing/libfuzzer/pdf_fm2js_fuzzer.cc | |
parent | 2eef64cba5c8e08a9e625f4aba5a7fbdc8e62bad (diff) | |
download | pdfium-c0d358ad234843a524a1bcc2a439f08ad0c64aa1.tar.xz |
Update formcalc return types
Update return types to be bools instead of ints. Make some methods private.
Change-Id: I5d55c48a861f90e9bd116ef835c11cdb515002a6
Reviewed-on: https://pdfium-review.googlesource.com/5553
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'testing/libfuzzer/pdf_fm2js_fuzzer.cc')
-rw-r--r-- | testing/libfuzzer/pdf_fm2js_fuzzer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/libfuzzer/pdf_fm2js_fuzzer.cc b/testing/libfuzzer/pdf_fm2js_fuzzer.cc index 9afaa915ec..2f5b3ea7e4 100644 --- a/testing/libfuzzer/pdf_fm2js_fuzzer.cc +++ b/testing/libfuzzer/pdf_fm2js_fuzzer.cc @@ -18,7 +18,7 @@ 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(input.AsStringC()); - if (program.ParseProgram()) + if (!program.ParseProgram()) return 0; CFX_WideTextBuf js; |