BaseXdb/basex — Issue #340: AIOOB when using a big LSERROR value
Author: LeoWoerteler
Created: 2012-01-19 13:28:39+00:00
State: open
Labels: bug, XQuery

Repro:
---------

CREATE DB test test
CREATE INDEX FULLTEXT
SET LSERROR 100
XQUERY /x[text() contains text 'test' using fuzzy]

Result:
----------

Error: Potential bug? Improper use? Your feedback is welcome:
Contact: basex-talk@mailman.uni-konstanz.de
Version: BaseX 7.1 beta
Java: Sun Microsystems Inc., 1.6.0_26
OS: Windows 7, amd64
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: 99
org.basex.index.ft.FTFuzzy.fuzzy(FTFuzzy.java:278)
org.basex.index.ft.FTFuzzy.iter(FTFuzzy.java:120)
org.basex.data.Data.iter(Data.java:182)
org.basex.query.ft.FTWords$1.next(FTWords.java:163)
org.basex.query.ft.FTIndexAccess$1.next(FTIndexAccess.java:55)
org.basex.query.iter.NodeIter.next(NodeIter.java:1)