Package list libsdl2-mixer / 3ddccdf
Was backported from upstream, now included: http://hg.libsdl.org/SDL_mixer/rev/2d713670db9b Manuel A. Fernandez Montecelo 8 years ago
2 changed file(s) with 0 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
+0
-36
debian/patches/bug-688369-double_free_crash.patch less more
0 Description: Fix crash on double free if loading WAV file failed
1 Backported from upstream:
2 # HG changeset patch
3 # User Sam Lantinga <slouken@libsdl.org>
4 # Date 1329087437 18000
5 # Node ID 2d713670db9b832b0c5aa700824900bc1fc3c3cd
6 # Parent df72f22b4b411ad4b08f924329678aabd5ac97d6
7 Fixed 1418 - crash on double free if loading WAV file failed
8 Author: Sam Lantinga <slouken@libsdl.org>
9 Last-Update: 2012-09-23
10 Bug-Debian: http://bugs.debian.org/688369
11
12 diff -r df72f22b4b41 -r 2d713670db9b mixer.c
13 --- a/mixer.c Mon Jan 30 21:41:45 2012 -0500
14 +++ b/mixer.c Sun Feb 12 17:57:17 2012 -0500
15 @@ -610,13 +610,15 @@
16 break;
17 default:
18 SDL_SetError("Unrecognized sound file type");
19 - return(0);
20 + if ( freesrc ) {
21 + SDL_RWclose(src);
22 + }
23 + loaded = NULL;
24 + break;
25 }
26 if ( !loaded ) {
27 + /* The individual loaders have closed src if needed */
28 SDL_free(chunk);
29 - if ( freesrc ) {
30 - SDL_RWclose(src);
31 - }
32 return(NULL);
33 }
34
35
11 # were backports in the first place
22 #
33 # 02_hurd.patch
4 # bug-688369-double_free_crash.patch