Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.9, 2.0.0, 2.1, 2.2, 2.3, 2.3.1, 2.3.2, 2.4, 2.9, 3.0
-
None
-
New
Description
Spinoff from here:
Because MultiReader just holds a reference to the array that was passed in, it's possible to hit scary exceptions (that look like index corruption) if that array is later altered eg by reopening some of the readers.
The fix is trivial: just make a private copy.