From 283a0433b081f88275b2f7e8c04d3c41b9187ca6 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 20 Apr 2017 14:11:21 -0400 Subject: Convert IFX_MemoryStream to CFX_MemoryStream The CFX_MemoryStream is the only implementation of IFX_MemoryStream. This CL removes the interfaces and uses CFX_MemoryStream directly. Change-Id: I2f43fa39e82dafa7673517d214ae15fd2d0df331 Reviewed-on: https://pdfium-review.googlesource.com/4391 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- testing/libfuzzer/pdf_cfx_saxreader_fuzzer.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'testing') diff --git a/testing/libfuzzer/pdf_cfx_saxreader_fuzzer.cc b/testing/libfuzzer/pdf_cfx_saxreader_fuzzer.cc index 7d54cff6da..6769d8e844 100644 --- a/testing/libfuzzer/pdf_cfx_saxreader_fuzzer.cc +++ b/testing/libfuzzer/pdf_cfx_saxreader_fuzzer.cc @@ -4,15 +4,16 @@ #include +#include "core/fxcrt/cfx_memorystream.h" #include "core/fxcrt/cfx_retain_ptr.h" #include "core/fxcrt/cfx_seekablestreamproxy.h" #include "core/fxcrt/xml/cfx_saxreader.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { CFX_SAXReader reader; - if (reader.StartParse( - IFX_MemoryStream::Create(const_cast(data), size), 0, -1, - CFX_SaxParseMode_NotSkipSpace) < 0) { + if (reader.StartParse(pdfium::MakeRetain( + const_cast(data), size, false), + 0, -1, CFX_SaxParseMode_NotSkipSpace) < 0) { return 0; } -- cgit v1.2.3