|
From: Julian S. <js...@ac...> - 2005-09-25 17:13:34
|
> OK, I just recompiled the program with gcc-2.95 and the valgrind > error remains. I think that means that the problem is in my code. First of all, ensure you compile without optimisation. > The thing that confuses me is the line that valgrind is warning > about is: > > retpcm [offset + j] = (buffer [j][pflac->bufferpos]) << shift ; > > where all the arrays are on the heap, not the stack. Dunno. Worth adding some assertions to range checki the 3 array indices you're using. J |