From 59f21d2e1307eb97989926b0a0ac7a0ec35cb25a Mon Sep 17 00:00:00 2001 From: Matteo Bini Date: Sun, 28 Jul 2024 19:00:22 +0200 Subject: [PATCH] Temporary fix ftbfs on ARM 32 (#308) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Double free or corruption due to an undersized buffer. Thanks to Bernhard Übelacker for the patch --- src/spek-fft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spek-fft.h b/src/spek-fft.h index 409263e..9a16c87 100644 --- a/src/spek-fft.h +++ b/src/spek-fft.h @@ -26,7 +26,7 @@ public: { // 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()