From 9dbc3c4fe51f890ef4e18b3dbe6b231e39d024c8 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 18 Jan 2017 08:58:00 -0500 Subject: Remove unused syntax parser initialize method. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- testing/libfuzzer/pdf_css_fuzzer.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'testing/libfuzzer/pdf_css_fuzzer.cc') 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(size))); - auto stream = pdfium::MakeRetain(input); - if (!stream) - return 0; - CFDE_CSSSyntaxParser parser; - parser.Init(stream, 1024); + parser.Init(input.c_str(), size); FDE_CSSSyntaxStatus status; do { -- cgit v1.2.3