diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-18 15:25:58 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-18 20:32:11 +0000 |
commit | fdf7d4092a5fa9c79bbb4a626a4d3d087053ae2c (patch) | |
tree | a05497438a59e21948e63a88d4d557909659054a /testing | |
parent | 152bfe0f60763263e8bf7292762885eb2aec9b85 (diff) | |
download | pdfium-fdf7d4092a5fa9c79bbb4a626a4d3d087053ae2c.tar.xz |
Remove IFGAS_Stream::CreateWideStringReadStream
This Cl removes the wide string read stream and passes through a
memory stream as needed. The callers were updated to pass the
correct types.
Change-Id: I8e2660859a85e38ed1c3f4c596ef7c8242762084
Reviewed-on: https://pdfium-review.googlesource.com/4172
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libfuzzer/pdf_xml_fuzzer.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testing/libfuzzer/pdf_xml_fuzzer.cc b/testing/libfuzzer/pdf_xml_fuzzer.cc index 8284bc6ce7..1f368699f4 100644 --- a/testing/libfuzzer/pdf_xml_fuzzer.cc +++ b/testing/libfuzzer/pdf_xml_fuzzer.cc @@ -51,10 +51,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { if (!safe_size.IsValid()) return 0; - CFX_WideString input = - CFX_WideString::FromUTF8(CFX_ByteStringC(data, safe_size.ValueOrDie())); - CFX_RetainPtr<IFGAS_Stream> stream = - IFGAS_Stream::CreateWideStringReadStream(input); + CFX_RetainPtr<IFGAS_Stream> stream = IFGAS_Stream::CreateReadStream( + IFX_MemoryStream::Create(const_cast<uint8_t*>(data), size)); if (!stream) return 0; |