summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-18 08:58:00 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-18 14:28:36 +0000
commit9dbc3c4fe51f890ef4e18b3dbe6b231e39d024c8 (patch)
tree0428ddf4a5cf7169c352940515422a4dd08d0384 /testing
parent091344f0d97022a0bf1f9edc41455b50f95b5d05 (diff)
downloadpdfium-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')
-rw-r--r--testing/libfuzzer/pdf_css_fuzzer.cc6
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 {