Codebase list libsdl2-mixer / 02856b1
Drop patches, applied upstream Simon McVittie 2 years ago
3 changed file(s) with 0 addition(s) and 72 deletion(s). Raw diff Collapse all Expand all
+0
-35
debian/patches/0199-Fixed-use-after-free-in-music_fluidsynth.c.patch less more
0 From: Sam Lantinga <slouken@libsdl.org>
1 Date: Wed, 20 Jan 2021 10:17:10 -0800
2 Subject: Fixed use-after-free in music_fluidsynth.c
3
4 There is a dangerous use-after-free in FLUIDSYNTH_Delete(): the settings
5 object is deleted **before** the synth. Since the settings have been
6 created first to initialize the synth, you must first delete the synth
7 and then delete the settings. This currently crashes all applications
8 that use fluidsynth 2.1.6 and SDL2_mixer. Please apply the attached
9 patch and release a bug fix release.
10
11 Originally reported at https://github.com/FluidSynth/fluidsynth/issues/748
12
13 Co-authored-by: Tom M.
14 Origin: upstream, 2.0.6, commit:https://github.com/libsdl-org/SDL_mixer/commit/6160668079f91d57a5d7bf0b40ffdd843be70daf
15 ---
16 music_fluidsynth.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19 diff --git a/music_fluidsynth.c b/music_fluidsynth.c
20 index f5346a4..e72e2ca 100644
21 --- a/music_fluidsynth.c
22 +++ b/music_fluidsynth.c
23 @@ -273,9 +273,10 @@ static void FLUIDSYNTH_Stop(void *context)
24 static void FLUIDSYNTH_Delete(void *context)
25 {
26 FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
27 + fluid_settings_t *settings = fluidsynth.fluid_synth_get_settings(music->synth);
28 fluidsynth.delete_fluid_player(music->player);
29 - fluidsynth.delete_fluid_settings(fluidsynth.fluid_synth_get_settings(music->synth));
30 fluidsynth.delete_fluid_synth(music->synth);
31 + fluidsynth.delete_fluid_settings(settings);
32 SDL_free(music);
33 }
34
+0
-35
debian/patches/build-Remove-redundant-AC_CONFIG_AUX_DIRS.patch less more
0 From: Simon McVittie <smcv@debian.org>
1 Date: Mon, 6 Sep 2021 10:07:46 +0100
2 Subject: build: Remove redundant AC_CONFIG_AUX_DIRS
3
4 There's an invocation of AC_CONFIG_AUX_DIR(build-scripts) at the top of
5 the file, which is sufficient. AC_CONFIG_AUX_DIRS is an undocumented,
6 internal version of AC_CONFIG_AUX_DIR that takes a whitespace-separated
7 list, instead of a single path to add to the list.
8
9 Newer versions of autoconf treat the argument to AC_CONFIG_AUX_DIRS
10 as being literal (they do not expand the shell variable), causing
11 autoreconf to fail. The argument to AC_CONFIG_AUX_DIR is documented
12 to be relative to $srcdir anyway, so there is no need to specify $srcdir
13 a second time.
14
15 Part of commit 614326ff "autotools build system updates" upstream.
16
17 Bug-Debian: https://bugs.debian.org/993157
18 Forwarded: not-needed, part of a larger commit upstream
19 ---
20 configure.in | 1 -
21 1 file changed, 1 deletion(-)
22
23 diff --git a/configure.in b/configure.in
24 index 240a322..02b97a4 100644
25 --- a/configure.in
26 +++ b/configure.in
27 @@ -41,7 +41,6 @@ AC_SUBST(LT_REVISION)
28 AC_SUBST(LT_AGE)
29
30 dnl Detect the canonical build and host environments
31 -AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
32 dnl AC_CANONICAL_HOST
33
34 dnl Check for tools
+0
-2
debian/patches/series less more
0 0199-Fixed-use-after-free-in-music_fluidsynth.c.patch
1 build-Remove-redundant-AC_CONFIG_AUX_DIRS.patch