| // Copyright 2016 The PDFium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "core/fxcodec/icc/icc_transform.h" |
| #include "core/fxcrt/span.h" |
| extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
| std::unique_ptr<fxcodec::IccTransform> transform = |
| fxcodec::IccTransform::CreateTransformSRGB(pdfium::make_span(data, size)); |
| const float src[4] = {0.5f, 0.5f, 0.5f, 0.5f}; |
| transform->Translate(pdfium::make_span(src).first(transform->components()), |