diff options
author | Eric Hameleers <alien@slackware.com> | 2020-06-28 10:57:34 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-06-28 10:57:34 +0000 |
commit | dca34c83591f5cad07f9412ea7c444ef39d41f6a (patch) | |
tree | 54e4d698f2c2e70f57bae1097703db78e108707c /audacity | |
parent | ec6508aa94c599307440e59136694909a95a3e3e (diff) | |
download | asb-dca34c83591f5cad07f9412ea7c444ef39d41f6a.tar.gz asb-dca34c83591f5cad07f9412ea7c444ef39d41f6a.tar.xz |
Initial revision
Diffstat (limited to 'audacity')
-rw-r--r-- | audacity/build/patches/audacity-2.4.1_resize_crash.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/audacity/build/patches/audacity-2.4.1_resize_crash.patch b/audacity/build/patches/audacity-2.4.1_resize_crash.patch new file mode 100644 index 00000000..080b6bf9 --- /dev/null +++ b/audacity/build/patches/audacity-2.4.1_resize_crash.patch @@ -0,0 +1,35 @@ +From d7e769040b508aaf15ce7b51cc1a565d41cdb079 Mon Sep 17 00:00:00 2001 +From: David Runge <dave@sleepmap.de> +Date: Wed, 27 May 2020 23:09:50 +0200 +Subject: [PATCH] Fix crash on track resize + +As discussed in #538, there is an issue with the track resize option, +where with audacity >= 2.4.0, compiled using the autotools setup leads +to a hard crash. + +The sizeof(wxFrame) in src/menus/ViewMenus.cpp and src/ProjectWindow.cpp +is not aligned, leading to GetVerticalScrollBar in +src/menus/ViewMenus.cpp accessing unallocated memory. + +By ordering the include of ProjectWindow.h before the include of +Project.h, this crash is prevented. +--- + src/menus/ViewMenus.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/menus/ViewMenus.cpp b/src/menus/ViewMenus.cpp +index 8142be887a2..1e301ad4714 100644 +--- a/src/menus/ViewMenus.cpp ++++ b/src/menus/ViewMenus.cpp +@@ -4,10 +4,10 @@ + #include "../CommonCommandFlags.h" + #include "../Menus.h" + #include "../Prefs.h" ++#include "../ProjectWindow.h" + #include "../Project.h" + #include "../ProjectHistory.h" + #include "../ProjectSettings.h" +-#include "../ProjectWindow.h" + #include "../Track.h" + #include "../TrackInfo.h" + #include "../TrackPanel.h" |