summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-30 22:23:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-30 22:23:37 +0000
commit3b83e83fbfd24e521f7ecd7ce7f1019769bcaec7 (patch)
treec8aa119940a263837b589035f0f09111577d8926 /testing
parent07388cae6fb525ccecc20f66ce530ac52d30d754 (diff)
downloadpdfium-3b83e83fbfd24e521f7ecd7ce7f1019769bcaec7.tar.xz
Use pdfium::span<> arg in A85 and RLE encoder methods
Change-Id: Iff900bc3e1cd9c9dd6b023230c1feba78759581c Reviewed-on: https://pdfium-review.googlesource.com/41710 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r--testing/fuzzers/pdf_codec_a85_fuzzer.cc2
-rw-r--r--testing/fuzzers/pdf_codec_rle_fuzzer.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/testing/fuzzers/pdf_codec_a85_fuzzer.cc b/testing/fuzzers/pdf_codec_a85_fuzzer.cc
index 20bd792886..0da713b831 100644
--- a/testing/fuzzers/pdf_codec_a85_fuzzer.cc
+++ b/testing/fuzzers/pdf_codec_a85_fuzzer.cc
@@ -12,7 +12,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
uint8_t* dest_buf = nullptr;
uint32_t dest_size = 0;
CCodec_BasicModule encoder_module;
- encoder_module.A85Encode(data, size, &dest_buf, &dest_size);
+ encoder_module.A85Encode({data, size}, &dest_buf, &dest_size);
FX_Free(dest_buf);
return 0;
}
diff --git a/testing/fuzzers/pdf_codec_rle_fuzzer.cc b/testing/fuzzers/pdf_codec_rle_fuzzer.cc
index c86671e5f4..adf454ecbd 100644
--- a/testing/fuzzers/pdf_codec_rle_fuzzer.cc
+++ b/testing/fuzzers/pdf_codec_rle_fuzzer.cc
@@ -12,7 +12,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
uint8_t* dest_buf = nullptr;
uint32_t dest_size = 0;
CCodec_BasicModule encoder_module;
- encoder_module.RunLengthEncode(data, size, &dest_buf, &dest_size);
+ encoder_module.RunLengthEncode({data, size}, &dest_buf, &dest_size);
FX_Free(dest_buf);
return 0;
}