changeset 1169:55703f60fd54 trunk

[svn] - add check for string length before call g_convert(). it may close #962.
author yaz
date Thu, 07 Jun 2007 06:34:42 -0700
parents 940b7ded5756
children 96cc46b1cf5e
files ChangeLog src/wma/libffwma/asf.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 07 00:21:13 2007 -0700
+++ b/ChangeLog	Thu Jun 07 06:34:42 2007 -0700
@@ -1,3 +1,11 @@
+2007-06-07 07:21:13 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [2502]
+  - ditto. this is necessary too.
+  
+  trunk/src/wma/wma.c |    5 +++--
+  1 file changed, 3 insertions(+), 2 deletions(-)
+
+
 2007-06-07 07:05:17 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [2500]
   - add playback->playing = 0 where buffer_playing = FALSE is done. without this, playback_get_time() would be confused and playback wouldn't advance in playlist.
--- a/src/wma/libffwma/asf.c	Thu Jun 07 00:21:13 2007 -0700
+++ b/src/wma/libffwma/asf.c	Thu Jun 07 06:34:42 2007 -0700
@@ -310,6 +310,8 @@
     gchar *tmp;
     int tmplen = len;
 
+    g_return_if_fail(len > 0);
+
     ucs = g_malloc0(len);
     uptr = ucs;