dovecot-2.2: fts: Fixed assert-crash in HTML parsing, broken by ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jan 19 19:12:49 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/89163656c0f5
changeset: 18167:89163656c0f5
user: Timo Sirainen <tss at iki.fi>
date: Mon Jan 19 21:11:29 2015 +0200
description:
fts: Fixed assert-crash in HTML parsing, broken by the earlier changes.
diffstat:
src/plugins/fts/fts-parser-html.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r c02f29ca104d -r 89163656c0f5 src/plugins/fts/fts-parser-html.c
--- a/src/plugins/fts/fts-parser-html.c Sat Jan 17 04:14:58 2015 +0200
+++ b/src/plugins/fts/fts-parser-html.c Mon Jan 19 21:11:29 2015 +0200
@@ -34,6 +34,11 @@
{
struct html_fts_parser *parser = (struct html_fts_parser *)_parser;
+ if (block->size == 0) {
+ /* finished */
+ return;
+ }
+
buffer_set_used_size(parser->output, 0);
mail_html2text_more(parser->html2text, block->data, block->size,
parser->output);
More information about the dovecot-cvs
mailing list