summaryrefslogtreecommitdiff
path: root/testing/fuzzers/pdf_codec_icc_fuzzer.cc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-29 20:45:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-29 20:45:59 +0000
commit81fcde731fe44ef5a11748536a2d6404906c80ff (patch)
tree641251da3da640cecb9210017293f5050fa563dd /testing/fuzzers/pdf_codec_icc_fuzzer.cc
parent238947ce91a07fc4fbb17de0a140349446ff4898 (diff)
downloadpdfium-81fcde731fe44ef5a11748536a2d6404906c80ff.tar.xz
Use pdfium::span with CPDF_IccProfile and friends.
Change-Id: I88d3e86a1dad75ef9c6bfb3401af6606479031a7 Reviewed-on: https://pdfium-review.googlesource.com/36634 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'testing/fuzzers/pdf_codec_icc_fuzzer.cc')
-rw-r--r--testing/fuzzers/pdf_codec_icc_fuzzer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/fuzzers/pdf_codec_icc_fuzzer.cc b/testing/fuzzers/pdf_codec_icc_fuzzer.cc
index 2f4fa44662..faafc363a0 100644
--- a/testing/fuzzers/pdf_codec_icc_fuzzer.cc
+++ b/testing/fuzzers/pdf_codec_icc_fuzzer.cc
@@ -5,11 +5,12 @@
#include <cstdint>
#include "core/fxcodec/codec/ccodec_iccmodule.h"
+#include "third_party/base/span.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
CCodec_IccModule icc_module;
std::unique_ptr<CLcmsCmm> transform =
- icc_module.CreateTransform_sRGB(data, size);
+ icc_module.CreateTransform_sRGB(pdfium::make_span(data, size));
if (transform) {
float src[4];