forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the way that MINC IO handles null-termination.
When vtkMINCImageReader creates a vtkCharArray to store a NetCDF attibute, it allocates one more byte than the number of chars, in order to make room for a null terminator. The way it did so was unsafe and incompatible with the new vtkGenericDataArray changes. This new code does the same thing, but in a compatible manner.
- Loading branch information
Showing
3 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters