mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-07-18 13:04:19 -04:00
added a check to hopefully satisfy some brain dead boundscheckers
and the folks who use them
This commit is contained in:
@ -73,6 +73,13 @@ kiss_fftnd_cfg kiss_fftnd_alloc(const int *dims,int ndims,int inverse_fft,void*m
|
|||||||
st->states[i] = kiss_fft_alloc (st->dims[i], inverse_fft, ptr,&len);
|
st->states[i] = kiss_fft_alloc (st->dims[i], inverse_fft, ptr,&len);
|
||||||
ptr += len;
|
ptr += len;
|
||||||
}
|
}
|
||||||
|
if ( ptr - (char*)st != memneeded ) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"################################################################################\n"
|
||||||
|
"Internal error! Memory allocation miscalculation\n"
|
||||||
|
"################################################################################\n"
|
||||||
|
);
|
||||||
|
}
|
||||||
return st;
|
return st;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user