]> granicus.if.org Git - flex/commitdiff
check limits before using array index cclp; resolves sf-166
authorWill Estes <westes575@gmail.com>
Sat, 3 May 2014 11:16:53 +0000 (07:16 -0400)
committerWill Estes <westes575@gmail.com>
Sat, 3 May 2014 13:23:49 +0000 (09:23 -0400)
src/ecs.c

index e2abbe48623981743bb6ccb442a5316b618faf3a..663266f8e795053c0483810837df9bec2f877730 100644 (file)
--- 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;
                }