[Pkg-sdl-commits] [SCM] Debian packaging of SDL_mixer project branch, master, updated. debian/1.2.12-4-6-g7ad1ce9

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Thu Jul 11 15:18:44 UTC 2013


The following commit has been merged in the master branch:
commit f7fabd8a9385d48e812c5e4cde25d4632550b8e3
Author: Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>
Date:   Sun Jun 9 16:59:43 2013 +0100

    Actually add the patch to fix the stack smashing missing from a recent commit.

diff --git a/debian/patches/bug-694260-freedink_stack_corruption.patch b/debian/patches/bug-694260-freedink_stack_corruption.patch
new file mode 100644
index 0000000..ddbe2b5
--- /dev/null
+++ b/debian/patches/bug-694260-freedink_stack_corruption.patch
@@ -0,0 +1,33 @@
+
+# HG changeset patch
+# User Sam Lantinga <slouken at libsdl.org>
+# Date 1370738137 25200
+# Node ID 0ff9b7b8ba7bb3eb8d15915dc405f161a3d3fde6
+# Parent  669ddc9b26fb253bd529b38f2d6b149353ce8708
+Fixed bug 1905 - Stack smashing when playing midi file
+
+manuel.montezelo
+
+I am forwarding this bug from Debian's bug tracking system.
+
+It is difficult to summarise the whole thread, but basically Freedink (a game using SDL) aborts when trying to play a midi file due to stack smashing protection functions, GCC fortifying options.
+
+There is more information, including backtraces with files and lines where this is triggered, midi files and instructions on how to reproduce.
+
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694260
+
+diff -r 669ddc9b26fb -r 0ff9b7b8ba7b timidity/readmidi.c
+--- a/timidity/readmidi.c	Fri Jun 07 21:52:34 2013 -0700
++++ b/timidity/readmidi.c	Sat Jun 08 17:35:37 2013 -0700
+@@ -673,7 +673,9 @@
+ 		meep->event.time, meep->event.channel + 1,
+ 		meep->event.type, meep->event.a, meep->event.b);
+ 
+-      if (meep->event.type==ME_TEMPO)
++      if (meep->event.channel >= MAXCHAN)
++	skip_this_event=1;
++      else if (meep->event.type==ME_TEMPO)
+ 	{
+ 	  tempo=
+ 	    meep->event.channel + meep->event.b * 256 + meep->event.a * 65536;
+

-- 
Debian packaging of SDL_mixer project



More information about the pkg-sdl-commits mailing list