`vtkImageReader2` overflows o 2 GB files on Windows
This issue stems from this discourse post.
vtkImageReader2
and its subclasses index positions in the input file using long
and unsigned long
, which are only guaranteed to be 4 bytes by C++ standard. On windows, they are defined on 4 bytes, which causes this class to not be able to open files larger than 2 GB.
All indexing in these class need to be replaced by vtkTypeUInt64
.
@ben.boeckel FYI