summaryrefslogtreecommitdiff
path: root/testing/fuzzers
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fuzzers')
-rw-r--r--testing/fuzzers/pdf_codec_icc_fuzzer.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/fuzzers/pdf_codec_icc_fuzzer.cc b/testing/fuzzers/pdf_codec_icc_fuzzer.cc
index 7021017953..2f4fa44662 100644
--- a/testing/fuzzers/pdf_codec_icc_fuzzer.cc
+++ b/testing/fuzzers/pdf_codec_icc_fuzzer.cc
@@ -8,16 +8,15 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
CCodec_IccModule icc_module;
- uint32_t nComponent = 0;
std::unique_ptr<CLcmsCmm> transform =
- icc_module.CreateTransform_sRGB(data, size, &nComponent);
+ icc_module.CreateTransform_sRGB(data, size);
if (transform) {
float src[4];
float dst[4];
for (int i = 0; i < 4; i++)
src[i] = 0.5f;
- icc_module.SetComponents(nComponent);
+ icc_module.SetComponents(transform->components());
icc_module.Translate(transform.get(), src, dst);
}