pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/SDL2_mixer audio/SDL2_mixer: Update to 2.0.4nb5
details: https://anonhg.NetBSD.org/pkgsrc/rev/98528ec2f9fa
branches: trunk
changeset: 455119:98528ec2f9fa
user: micha <micha%pkgsrc.org@localhost>
date: Mon Jun 28 12:11:16 2021 +0000
description:
audio/SDL2_mixer: Update to 2.0.4nb5
Backport patch for use-after-free bug.
https://github.com/libsdl-org/SDL_mixer/commit/6160668079f91d57a5d7bf0b40ffdd843be70daf
Bump PKGREVISION.
diffstat:
audio/SDL2_mixer/Makefile | 4 ++--
audio/SDL2_mixer/distinfo | 3 ++-
audio/SDL2_mixer/patches/patch-music__fluidsynth.c | 21 +++++++++++++++++++++
3 files changed, 25 insertions(+), 3 deletions(-)
diffs (51 lines):
diff -r b26d0a775f5a -r 98528ec2f9fa audio/SDL2_mixer/Makefile
--- a/audio/SDL2_mixer/Makefile Mon Jun 28 12:10:38 2021 +0000
+++ b/audio/SDL2_mixer/Makefile Mon Jun 28 12:11:16 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2021/04/05 10:55:29 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2021/06/28 12:11:16 micha Exp $
DISTNAME= SDL2_mixer-2.0.4
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= audio devel
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
diff -r b26d0a775f5a -r 98528ec2f9fa audio/SDL2_mixer/distinfo
--- a/audio/SDL2_mixer/distinfo Mon Jun 28 12:10:38 2021 +0000
+++ b/audio/SDL2_mixer/distinfo Mon Jun 28 12:11:16 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2018/11/01 21:12:40 adam Exp $
+$NetBSD: distinfo,v 1.7 2021/06/28 12:11:16 micha Exp $
SHA1 (SDL2_mixer-2.0.4.tar.gz) = 242a63b1c7f38e358e94b1e0dc5120a6c1f3763b
RMD160 (SDL2_mixer-2.0.4.tar.gz) = d5674a92bc9a81e3aba0072c4d7e2314e56958d6
SHA512 (SDL2_mixer-2.0.4.tar.gz) = 98c56069640668aaececa63748de21fc8f243c7d06386c45c43d0ee472bbb2595ccda644d9886ce5b95c3a3dee3c0a96903cf9a89ddc18d38f041133470699a3
Size (SDL2_mixer-2.0.4.tar.gz) = 11125077 bytes
SHA1 (patch-configure) = 1666d97f82c5f3dca03eb45dad6b9e73dc61dffd
+SHA1 (patch-music__fluidsynth.c) = affe25cbb8fc21afe80ef3f5fd0e98853addff20
diff -r b26d0a775f5a -r 98528ec2f9fa audio/SDL2_mixer/patches/patch-music__fluidsynth.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL2_mixer/patches/patch-music__fluidsynth.c Mon Jun 28 12:11:16 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-music__fluidsynth.c,v 1.1 2021/06/28 12:11:16 micha Exp $
+
+A bug in SDL2_Mixer <= 2.0.4 will crash fluidsynth >= 2.1.6 because the
+objects are destroyed in an illegal order.
+https://www.fluidsynth.org/news/2021/01/23/sdl2-mixer-bug/
+https://github.com/libsdl-org/SDL_mixer/commit/6160668079f91d57a5d7bf0b40ffdd843be70daf
+
+--- music_fluidsynth.c.orig 2018-10-31 14:59:00.000000000 +0000
++++ music_fluidsynth.c
+@@ -273,9 +273,10 @@ static void FLUIDSYNTH_Stop(void *contex
+ static void FLUIDSYNTH_Delete(void *context)
+ {
+ FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
++ fluid_settings_t *settings = fluidsynth.fluid_synth_get_settings(music->synth);
+ fluidsynth.delete_fluid_player(music->player);
+- fluidsynth.delete_fluid_settings(fluidsynth.fluid_synth_get_settings(music->synth));
+ fluidsynth.delete_fluid_synth(music->synth);
++ fluidsynth.delete_fluid_settings(settings);
+ SDL_free(music);
+ }
+
Home |
Main Index |
Thread Index |
Old Index