KissFFT versions prior to the fix commit 1b083165 contain an integer overflow in kissfftalloc() in kissfft.c on platforms where sizet is 32-bit. The nfft parameter is not validated before being used in a size calculation (sizeof(kissfftcpx) * (nfft - 1)), which can wrap to a small value when nfft is large. As a result, malloc() allocates an undersized buffer and the subsequent twiddle-factor initialization loop writes nfft elements, causing a heap buffer overflow. This vulnerability only affects 32-bit architectures.