Subj : Problem in jsscope.c? To : netscape.public.mozilla.jseng From : sukhisoul Date : Mon Sep 20 2004 06:47 am Hello, We just ran Klocwork software on our Spidermonkey embedding. It pointed out that its possible for array index to be out of bounds at jsscope.c, line 677 (http://lxr.mozilla.org/mozilla/source/js/src/jsscope.c#677). 675 --j; 676 if (chunk != lastChunk || j > i) 677 chunk->kids[i] = lastChunk->kids[j]; It seems that if the kids[0] of a chunk can be NULL, then it's possible for j to be -1 and hence be out of range of 'kids' array. What I want to know is this : should I worry about this and fix it, or just ignore it? If i were to fix this, what should I do? Thanks in advance Milind .