b1b0b2b543dc1a10015272fc970ad7534f84e0c5 |
|
22-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-fts: Make sure address tokenizer can't return empty tokens.
This happened when address was a token that first looked like it could be
a valid address, but then got truncated due to reaching maxlen, followed
by truncating the UTF8-sequence and finally all the rest of the '-' or
'.' chars that were valid at the beginning of the address are stripped
away by fts_tokenizer_delete_trailing_invalid_char(), leaving nothing left.
Fixes:
Panic: file fts-tokenizer.c: line 206 (fts_tokenizer_next): assertion failed: (ret <= 0 || (*token_r)[0] != '\0') |
af177be2664018e8074d69449b9c6a2d9741ec25 |
|
16-Mar-2016 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
lib-fts: Limit maximum length of addresses found.
The address tokenizer now takes a "maxlen" parameter, which
defaults to 254 bytes.
Previously addresses, or something looking like it, could
be of any length. This could cause trouble in fts backends. |