[tracker] libtracker-fts: Fix invalid read in parser
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-fts: Fix invalid read in parser
- Date: Fri, 27 Nov 2009 12:23:39 +0000 (UTC)
commit 4138a58b64d21863b83c97df0316a5d9ed69e989
Author: Jürg Billeter <j bitron ch>
Date: Fri Nov 27 13:20:41 2009 +0100
libtracker-fts: Fix invalid read in parser
src/libtracker-fts/tracker-parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-parser.c b/src/libtracker-fts/tracker-parser.c
index c1161d1..cd1db1d 100644
--- a/src/libtracker-fts/tracker-parser.c
+++ b/src/libtracker-fts/tracker-parser.c
@@ -442,7 +442,7 @@ parser_next (TrackerParser *parser,
*byte_offset_start = start-parser->txt;
*byte_offset_end = *byte_offset_start + bytes;
- parser->cursor = g_utf8_next_char (parser->txt + *byte_offset_end);
+ parser->cursor = parser->txt + *byte_offset_end;
processed_word = tracker_parser_process_word (parser, utf8, bytes, do_strip);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]