From f2160fafa466b00be4967d1bef70687e36a619d1 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Mon, 27 Jun 2011 11:35:06 +0200 Subject: Fixed a memory overwrite bug in GBD --- AUTHORS | 1 + src/cmssm.c | 4 ++-- 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; } -- cgit v1.2.1