[tracker/binary-log-2: 24/48] libtracker-db: CRC fix
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/binary-log-2: 24/48] libtracker-db: CRC fix
- Date: Mon, 11 Jan 2010 16:00:12 +0000 (UTC)
commit 38987050b7128b45332404dbb1a1b356c259584d
Author: Jürg Billeter <j bitron ch>
Date: Wed Jan 6 11:47:38 2010 +0100
libtracker-db: CRC fix
src/libtracker-db/tracker-db-journal.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 06957c9..16288ed 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -672,7 +672,7 @@ tracker_db_journal_reader_next (GError **error)
entry_size = read_uint32 (reader.current);
/* Set the bounds for the entry */
- reader.entry_begin = reader.current + (sizeof (guint32) * 3);
+ reader.entry_begin = reader.current;
reader.entry_end = reader.entry_begin + entry_size;
/* Check the end of the entry does not exceed the end
@@ -710,7 +710,7 @@ tracker_db_journal_reader_next (GError **error)
reader.current += 4;
/* Calculate the crc */
- crc = tracker_crc32 (reader.entry_begin, entry_size);
+ crc = tracker_crc32 (reader.entry_begin + (sizeof (guint32) * 3), entry_size - (sizeof (guint32) * 3));
/* Verify checksum */
if (crc != crc_check) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]