1 |
ssuominen 11/11/25 18:13:06 |
2 |
|
3 |
Added: gxine-0.5.906-playlist_segfault.patch |
4 |
Log: |
5 |
Fix segmentation fault in playlist wrt #390783 by Rafał Mużyło |
6 |
|
7 |
(Portage version: 2.2.0_alpha77/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-video/gxine/files/gxine-0.5.906-playlist_segfault.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/gxine/files/gxine-0.5.906-playlist_segfault.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/gxine/files/gxine-0.5.906-playlist_segfault.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: gxine-0.5.906-playlist_segfault.patch |
16 |
=================================================================== |
17 |
Fix segmentation fault in playlist wrt http://bugs.gentoo.org/390783 by Rafał Mużyło |
18 |
|
19 |
--- src/playlist.c |
20 |
+++ src/playlist.c |
21 |
@@ -427,7 +427,7 @@ static int playlist_load (const char *fn |
22 |
if (errno != ENOENT && (defaultfile || errno != ENOTDIR)) |
23 |
display_error (FROM_GXINE, _("Loading of playlist file failed."), |
24 |
_("Failed to open file ‘%s’\n%s"), fname, strerror (errno)); |
25 |
- goto ret0; |
26 |
+ goto ret1; |
27 |
} |
28 |
|
29 |
xml_parser_init_R (xml_parser_t *xml, plfile, st.st_size, XML_PARSER_CASE_INSENSITIVE); |
30 |
@@ -524,9 +524,10 @@ static int playlist_load (const char *fn |
31 |
return 1; |
32 |
|
33 |
ret0: |
34 |
- free (plfile); |
35 |
xml_parser_free_tree (root); |
36 |
xml_parser_finalize_R (xml); |
37 |
+ free (plfile); |
38 |
+ ret1: |
39 |
if (defaultfile) |
40 |
free ((char *)fname); |
41 |
return ret; |