summaryrefslogtreecommitdiff
path: root/testing/fuzzers
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-29 20:44:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-29 20:44:19 +0000
commit238947ce91a07fc4fbb17de0a140349446ff4898 (patch)
tree1d0a39616c35d5179857bb4a6c5756db0e3519bc /testing/fuzzers
parent013d065a0ad9cd4dd913997c0cc503234efe436e (diff)
downloadpdfium-238947ce91a07fc4fbb17de0a140349446ff4898.tar.xz
Remove out param from CCodec_IccModule::CreateTransform_sRGB().
Its return value contains the same data. Change-Id: I2bf4e72faf978e5d491bec573babc8099cda4e5a Reviewed-on: https://pdfium-review.googlesource.com/36633 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
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);
}