diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-18 08:58:00 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-18 14:28:36 +0000 |
commit | 9dbc3c4fe51f890ef4e18b3dbe6b231e39d024c8 (patch) | |
tree | 0428ddf4a5cf7169c352940515422a4dd08d0384 /testing/libfuzzer/pdf_css_fuzzer.cc | |
parent | 091344f0d97022a0bf1f9edc41455b50f95b5d05 (diff) | |
download | pdfium-9dbc3c4fe51f890ef4e18b3dbe6b231e39d024c8.tar.xz |
Remove unused syntax parser initialize method.
This Cl removes the stream initializer from the FDE CSS parser. The only
consumer was the css fuzzer. The fuzzer has been moved to use the string
initializer to match the rest of the code.
Change-Id: I65445af1159058b7c71d5e1d7c12e60383da6dbd
Reviewed-on: https://pdfium-review.googlesource.com/2217
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/libfuzzer/pdf_css_fuzzer.cc')
-rw-r--r-- | testing/libfuzzer/pdf_css_fuzzer.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/testing/libfuzzer/pdf_css_fuzzer.cc b/testing/libfuzzer/pdf_css_fuzzer.cc index 4a45a03f5f..779f5ca37f 100644 --- a/testing/libfuzzer/pdf_css_fuzzer.cc +++ b/testing/libfuzzer/pdf_css_fuzzer.cc @@ -15,12 +15,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { CFX_WideString input = CFX_WideString::FromUTF8( CFX_ByteStringC(data, static_cast<FX_STRSIZE>(size))); - auto stream = pdfium::MakeRetain<CXFA_WideTextRead>(input); - if (!stream) - return 0; - CFDE_CSSSyntaxParser parser; - parser.Init(stream, 1024); + parser.Init(input.c_str(), size); FDE_CSSSyntaxStatus status; do { |