changeset 699:14f80d61e855 trunk

[svn] - TCON frame without string crashes mad_parse_genre().
author yaz
date Tue, 20 Feb 2007 18:12:05 -0800
parents acace9812961
children 27a557e80e15
files ChangeLog src/madplug/input.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 20 13:50:17 2007 -0800
+++ b/ChangeLog	Tue Feb 20 18:12:05 2007 -0800
@@ -1,3 +1,13 @@
+2007-02-20 21:50:17 +0000  Derek Pomery <nemo@m8y.org>
+  revision [1482]
+  Bug #806
+  Pretty sure freeing InputPlayback here is a bad idea.
+  
+  
+  trunk/src/metronom/metronom.c |    5 ++---
+  1 file changed, 2 insertions(+), 3 deletions(-)
+
+
 2007-02-20 17:12:56 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1480]
   - temporarily cheat and disable certain codepaths for local files
--- a/src/madplug/input.c	Tue Feb 20 13:50:17 2007 -0800
+++ b/src/madplug/input.c	Tue Feb 20 18:12:05 2007 -0800
@@ -167,6 +167,9 @@
     size_t string_len = 0;
     gboolean is_num = TRUE;
 
+    if(!string)
+        return NULL;
+
     string_len = mad_ucs4len((id3_ucs4_t *)string);
     tail = (id3_ucs4_t *)string + string_len;