From: Will Estes Date: Sat, 3 May 2014 11:16:53 +0000 (-0400) Subject: check limits before using array index cclp; resolves sf-166 X-Git-Tag: v2.6.0~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71aeaac9e835381469f1ae3774f60190b01dd4d3;p=flex check limits before using array index cclp; resolves sf-166 --- diff --git a/src/ecs.c b/src/ecs.c index e2abbe4..663266f 100644 --- a/src/ecs.c +++ b/src/ecs.c @@ -191,7 +191,7 @@ void mkeccl (ccls, lenccl, fwd, bck, llsiz, NUL_mapping) /* Find next ccl member to process. */ - for (++cclp; cclflags[cclp] && cclp < lenccl; ++cclp) { + for (++cclp; cclp < lenccl && cclflags[cclp]; ++cclp) { /* Reset "doesn't need processing" flag. */ cclflags[cclp] = 0; }