1. Matt Chaput
  2. whoosh

Commits

Joel Steres  committed 73976ac

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

  • Participants
  • Parent commits 12655f5
  • Branches column_offset_overflow_fix

Comments (0)

Files changed (1)

File src/whoosh/columns.py

View file
  • Ignore whitespace
 
             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