mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-25 20:20:26 -04:00
Prevent stack corruption with parallelized use.
If the length of the data set for the transform is a prime, then the OpenMP parallelization results in a recursion loop until the stack is corrupted or exhausted. This resolves #1.
This commit is contained in:
parent
3050076ab3
commit
f4496dc080
@ -246,7 +246,7 @@ void kf_work(
|
||||
#ifdef _OPENMP
|
||||
// use openmp extensions at the
|
||||
// top-level (not recursive)
|
||||
if (fstride==1 && p<=5)
|
||||
if (fstride==1 && p<=5 && m!=1)
|
||||
{
|
||||
int k;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user