Commit 548b76d4 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Add out-of-bounds check for fft computation.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 9d1a3296
......@@ -307,6 +307,8 @@ gen_mix_entries (int block)
vector<vector<complex<float>>>
compute_frame_ffts (const WavData& wav_data, size_t start_index, size_t frame_count)
{
assert (wav_data.n_values() >= (start_index + frame_count * Params::frame_size) * wav_data.n_channels());
vector<vector<complex<float>>> fft_out;
/* generate analysis window */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment