Mac, malloc scribble and FFT
Jaydee2190 opened this issue · comments
Jaydee2190 commented
Hello Jamie. When using the built in Accelerate framework and malloc_scribble is enabled, the last elements of the fft structure are non-zero. (Throwing off pretty much scalar functions!)
fix...(clear the structure instead of just malloc).
xtract_init_vdsp_data.c
vdsp_data->fft.realp = (double *) calloc((N >> 1) + 1,sizeof(double));
vdsp_data->fft.imagp = (double *) calloc((N >> 1) + 1,sizeof(double));
Jamie Bullock commented
Hi,
Thanks for reporting the bug. Would you mind submitting a pull request with the fix?
Thanks,
Jamie