[tracker] tracker-extract: Fixed MP3 id3v20/v22 memory corruption
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Fixed MP3 id3v20/v22 memory corruption
- Date: Thu, 5 Nov 2009 12:49:33 +0000 (UTC)
commit 761de153c9984d1a8a998c6a9a883af50ff305f4
Author: Martyn Russell <martyn lanedo com>
Date: Thu Nov 5 12:26:54 2009 +0000
tracker-extract: Fixed MP3 id3v20/v22 memory corruption
Was a select case fall through
src/tracker-extract/tracker-extract-mp3.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index e71fb9a..d335a59 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1544,7 +1544,7 @@ get_id3v20_tags (const gchar *data,
}
} else {
/* text frames */
- gchar * word;
+ gchar *word;
word = id3v2_text_to_utf8 (data[pos], &data[pos + 1], csize - 1);
if (!tracker_is_empty_string (word)) {
@@ -1553,10 +1553,9 @@ get_id3v20_tags (const gchar *data,
switch (frame) {
case ID3V2_COM:
- {
tag->comment = g_strdup (word + strlen (word) + 1);
g_free (word);
- }
+ break;
case ID3V2_TAL:
tag->album = word;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]