From: Adam Dickmeiss Date: Fri, 21 Jun 2013 11:14:23 +0000 (+0200) Subject: Fix check of dictionary entry size (IT_MAX_WORD) X-Git-Tag: v2.0.55~7 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=a9d7bad9422b79eb059d4c354c24880e557f28e7 Fix check of dictionary entry size (IT_MAX_WORD) It was way too picky before. --- diff --git a/index/zebraapi.c b/index/zebraapi.c index c6e9668..7cb1667 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -2267,7 +2267,7 @@ static ZEBRA_RES zebra_record_check(ZebraHandle zh, Record rec, } memcpy(ord_buf + ord_len, str, slen); ord_buf[ord_len + slen] = '\0'; - if (ord_len + slen >= IT_MAX_WORD) + if (slen > IT_MAX_WORD || ord_len > 4) { res = ZEBRA_FAIL; (*no_long_dict_entries)++;