[vlc-commits] commit: Typo, use after free (fixes: #3372) ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Mar 2 20:17:54 CET 2010


vlc/vlc-1.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar  2 21:17:15 2010 +0200| [9c3e768de8e22e8bf1a2f221d9ae3c2ce4b6dc4e] | committer: Rémi Denis-Courmont 

Typo, use after free (fixes: #3372)

Regression from 4343976eae1037397ea9f6df61f86e2983344fa3

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.0.git/?a=commit;h=9c3e768de8e22e8bf1a2f221d9ae3c2ce4b6dc4e
---

 modules/misc/playlist/xspf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c
index 31a5c71..daaac86 100644
--- a/modules/misc/playlist/xspf.c
+++ b/modules/misc/playlist/xspf.c
@@ -145,7 +145,7 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file,
         psz_temp = convert_xml_special_chars( psz );
         free( psz );
         if( *psz_temp )
-            fprintf( p_file, "\t\t\t<location>%s</location>\n", psz );
+            fprintf( p_file, "\t\t\t<location>%s</location>\n", psz_temp );
         free( psz_temp );
     }
 



More information about the vlc-commits mailing list