dovecot-2.2: fts: parser-html - parse_tag_name returns wrong val...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 27 18:19:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/54e508b71dcd
changeset: 17394:54e508b71dcd
user:      Phil Carmody <phil at dovecot.fi>
date:      Tue May 27 21:17:34 2014 +0300
description:
fts: parser-html - parse_tag_name returns wrong value for comments
This function returns 1 more than the number of additional
characters to be swallowed up by the state transition.

diffstat:

 src/plugins/fts/fts-parser-html.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8f68543fa7f8 -r 54e508b71dcd src/plugins/fts/fts-parser-html.c
--- a/src/plugins/fts/fts-parser-html.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/plugins/fts/fts-parser-html.c	Tue May 27 21:17:34 2014 +0300
@@ -68,7 +68,7 @@
 
 	if (size >= 3 && memcmp(data, "!--", 3) == 0) {
 		parser->state = HTML_STATE_COMMENT;
-		return 3;
+		return 3 + 1;
 	}
 
 	if (size > 5 && i_memcasecmp(data, "style", 5) == 0) {


More information about the dovecot-cvs mailing list