summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2011-06-27 12:05:01 +0200
committerMarti Maria <info@littlecms.com>2011-06-27 12:05:01 +0200
commitccafb5390cf10234d07561f19c368c1edb2fd3f8 (patch)
tree58cb90a8ab4e6faccacef5ad0dd47b6c947ed149
parentf2160fafa466b00be4967d1bef70687e36a619d1 (diff)
downloadlcms2-ccafb5390cf10234d07561f19c368c1edb2fd3f8.tar.gz
Fixed a memory corruption in GBD
-rw-r--r--src/cmssm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmssm.c b/src/cmssm.c
index fbd8af3..139b952 100644
--- a/src/cmssm.c
+++ b/src/cmssm.c
@@ -567,7 +567,7 @@ cmsBool CMSEXPORT cmsGDBCompute(cmsHANDLE hGBD, cmsUInt32Number dwFlags)
// Interpolate Mid
for (theta = 1; theta < SECTORS; theta++) {
- for (alpha = 0; alpha <= SECTORS; alpha++) {
+ for (alpha = 0; alpha < SECTORS; alpha++) {
if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE;
}