Fixed neg index read in channelMap
@@ -217,9 +217,11 @@ static int process_jsonarray(scratch_space_t *scratch, char *ct0conf, stack_entr
so->channel_map[i] = -1;
for (int i = 0; i < count; i++) {
+ if(values[i] >= 0) {
so->channel_map[values[i]] = i;
}
}
+ }
free(values);
} else if (jsoneq(ct0conf, tk, "acc_bias") == 0) {
int32_t count = (tk + 1)->size;
