Commits

Anonymous committed 73976ac

Fix OverflowError on searching large index due to integer overflow while building column offset table.

Comments (0)

Files changed (1)

src/whoosh/columns.py

 
             self._read_lengths()
             # Create an array of offsets into the strings using the lengths
-            offsets = array("i", (0,))
+            offsets = array("L", (0,))
             for length in self._lengths:
                 offsets.append(offsets[-1] + length)
             self._offsets = offsets