From a9d7bad9422b79eb059d4c354c24880e557f28e7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 21 Jun 2013 13:14:23 +0200 Subject: [PATCH] Fix check of dictionary entry size (IT_MAX_WORD) It was way too picky before. --- index/zebraapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)++; -- 1.7.10.4