Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mm2/Little-CMS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2011-06-27 13:35:06 +0400
committerMarti Maria <info@littlecms.com>2011-06-27 13:35:06 +0400
commitf2160fafa466b00be4967d1bef70687e36a619d1 (patch)
tree75e88db4c3c4f3ac66697097b1fcf82f896baf05
parent88c1a1b925ad48d62b29d55322a3af7ac5ba48b3 (diff)
Fixed a memory overwrite bug in GBD
-rw-r--r--AUTHORS1
-rw-r--r--src/cmssm.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index b590aca..4e77bf0 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -25,3 +25,4 @@ Jan Morovic
Jos Vernon (WebSupergoo)
Harald Schneider (Maxon)
Christian Albrecht
+Dimitrios Anastassakis
diff --git a/src/cmssm.c b/src/cmssm.c
index 5f11180..fbd8af3 100644
--- a/src/cmssm.c
+++ b/src/cmssm.c
@@ -553,13 +553,13 @@ cmsBool CMSEXPORT cmsGDBCompute(cmsHANDLE hGBD, cmsUInt32Number dwFlags)
_cmsAssert(hGBD != NULL);
// Interpolate black
- for (alpha = 0; alpha <= SECTORS; alpha++) {
+ for (alpha = 0; alpha < SECTORS; alpha++) {
if (!InterpolateMissingSector(gbd, alpha, 0)) return FALSE;
}
// Interpolate white
- for (alpha = 0; alpha <= SECTORS; alpha++) {
+ for (alpha = 0; alpha < SECTORS; alpha++) {
if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE;
}