[tracker] Revert "Added some extra checks for size in mp3 extraction."



commit e59d80ec31fcd70f62d7f14a73720ba6b43a537a
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu May 7 19:20:36 2009 +0200

    Revert "Added some extra checks for size in mp3 extraction."
    
    This reverts commit b6a9079cf7ada74e739dbef476df688fda49d88b.
---
 src/tracker-extract/tracker-extract-mp3.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index fc74e7c..699c490 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -319,14 +319,11 @@ read_id3v1_buffer (int fd, goffset size)
 	guint bytes_read;
 	guint rc;
 
-	if (size<128) {
-		return NULL;
-	}
-
 	if (lseek (fd, size-ID3V1_SIZE, SEEK_SET) < 0) {
 		return NULL;
 	}
 
+
 	buffer = g_malloc (ID3V1_SIZE);
 
 	if (!buffer) {
@@ -484,10 +481,6 @@ get_id3 (const gchar *data,
 	const gchar *pos;
 	gchar buf[5];
 
-	if (!data) {
-		return FALSE;
-	}
-	
 	if (size < 128) {
 		return FALSE;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]