summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_function.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-12 17:56:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-12 17:56:35 +0000
commit6998bc502dd2798115024c48b95e6e9180b2b3ee (patch)
tree5a666d322c0ce76738bf905d06da7235e1edec83 /core/fpdfapi/page/cpdf_function.h
parenta8db06a715cd0090a8c838a7b2861ca3c657f6a2 (diff)
downloadpdfium-6998bc502dd2798115024c48b95e6e9180b2b3ee.tar.xz
Make the input data to CPDF_ColorSpace::GetRGB() const.
Make a copy of the input data when clamping it in CPDF_Function::Call(). Change-Id: I1d2b3d080977f0f9a4c3ccaf111780867668991a Reviewed-on: https://pdfium-review.googlesource.com/30350 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_function.h')
-rw-r--r--core/fpdfapi/page/cpdf_function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_function.h b/core/fpdfapi/page/cpdf_function.h
index 7966194ade..615c6a68d4 100644
--- a/core/fpdfapi/page/cpdf_function.h
+++ b/core/fpdfapi/page/cpdf_function.h
@@ -30,7 +30,7 @@ class CPDF_Function {
virtual ~CPDF_Function();
- bool Call(float* inputs,
+ bool Call(const float* inputs,
uint32_t ninputs,
float* results,
int* nresults) const;