[tracker/parser-libunistring-review] Fix invalid read when end of loop arrives
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/parser-libunistring-review] Fix invalid read when end of loop arrives
- Date: Wed, 28 Apr 2010 19:29:55 +0000 (UTC)
commit a97bee7faa4920412d13c60e0ee1fdea79e8bf21
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Apr 28 21:28:43 2010 +0200
Fix invalid read when end of loop arrives
src/libtracker-fts/tracker-parser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-parser.c b/src/libtracker-fts/tracker-parser.c
index 71c492f..e8bafb1 100644
--- a/src/libtracker-fts/tracker-parser.c
+++ b/src/libtracker-fts/tracker-parser.c
@@ -648,8 +648,8 @@ parser_next (TrackerParser *parser,
/* Find next word break */
i = parser->cursor + first_unichar_len;
- while (!parser->word_break_flags [i] &&
- i < parser->txt_size) {
+ while (i < parser->txt_size &&
+ !parser->word_break_flags [i]) {
i++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]