Skip to content

Commit

Permalink
Temporary fix ftbfs on ARM 32 (alexkay#308)
Browse files Browse the repository at this point in the history
Double free or corruption due to an undersized buffer. Thanks to
Bernhard Übelacker <[email protected]> for the patch
  • Loading branch information
matteobin committed Jul 28, 2024
1 parent b1600d9 commit 59f21d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spek-fft.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FFTPlan
{
// FFmpeg uses various assembly optimizations which expect
// input data to be aligned by up to 32 bytes (e.g. AVX)
this->input = (float*) av_malloc(sizeof(float) * input_size);
this->input = (float*) av_malloc(sizeof(float) * (input_size + 2));
}

virtual ~FFTPlan()
Expand Down

0 comments on commit 59f21d2

Please sign in to comment.