diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-28 23:15:02 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-28 23:15:02 +0000 |
commit | b719bc4a6f219483059f66c33e4a3a7667d75ed5 (patch) | |
tree | bb1f512fd303b46dab323e849e56d21779d32488 /testing | |
parent | da379c7af512aa7baa221d38b04c8aa9912b4e02 (diff) | |
download | pdfium-b719bc4a6f219483059f66c33e4a3a7667d75ed5.tar.xz |
Use pdfium::span<> in more image modules
Change-Id: Ie344bb37abf7dde158d03cc2897dca3588f1a5e3
Reviewed-on: https://pdfium-review.googlesource.com/41550
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/fuzzers/pdf_codec_fax_fuzzer.cc | 2 | ||||
-rw-r--r-- | testing/fuzzers/pdf_jpx_fuzzer.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/fuzzers/pdf_codec_fax_fuzzer.cc b/testing/fuzzers/pdf_codec_fax_fuzzer.cc index f6cc1e7200..1d0b0f85f8 100644 --- a/testing/fuzzers/pdf_codec_fax_fuzzer.cc +++ b/testing/fuzzers/pdf_codec_fax_fuzzer.cc @@ -30,7 +30,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { CCodec_FaxModule fax_module; std::unique_ptr<CCodec_ScanlineDecoder> decoder( - fax_module.CreateDecoder(data, size, width, height, K, EndOfLine, + fax_module.CreateDecoder({data, size}, width, height, K, EndOfLine, ByteAlign, BlackIs1, Columns, Rows)); if (decoder) { diff --git a/testing/fuzzers/pdf_jpx_fuzzer.cc b/testing/fuzzers/pdf_jpx_fuzzer.cc index b74957bb14..011b1711e0 100644 --- a/testing/fuzzers/pdf_jpx_fuzzer.cc +++ b/testing/fuzzers/pdf_jpx_fuzzer.cc @@ -20,7 +20,7 @@ const uint32_t kMaxJPXFuzzSize = 100 * 1024 * 1024; // 100 MB extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { std::unique_ptr<CJPX_Decoder> decoder = - g_module.CreateDecoder(data, size, nullptr); + g_module.CreateDecoder({data, size}, nullptr); if (!decoder) return 0; |