|
From: João M. S. S. <joa...@gm...> - 2015-04-15 00:59:05
|
> There is no (direct) use of the function args on line 118.
> Of course, it might be that e.g. an uninitialised arg (e.g. no_eras
> might be unitialised and get a random value 22) might result later in j
> or whatever being initialised.
You're right, I think I found it. In:
tmp = INDEX_OF[lambda[j - 1]];
j gets = 22 but lambda is size 21.
This happens because no_eras = 22:
for (i = 1; i < no_eras; i++) {
u = MODNN(PRIM*(NN-1-eras_pos[i]));
for (j = i+1; j > 0; j--) {
tmp = INDEX_OF[lambda[j - 1]];
if(tmp != A0)
lambda[j] ^= ALPHA_TO[MODNN(u + tmp)];
}
}
I missed it before.
Thanks.
--
João M. S. Silva
|