MantisBT - VTK
View Issue Details
0015525VTK(No Category)public2015-06-09 09:322015-08-07 08:19
Cory Quammen 
T.J. Corona 
normalminorhave not tried
closedfixed 
6.3.0 
6.3.0 
TBD
crash
0015525: Crash when point arrays are repeated in VTK unstructured grid XML files
Load the attached file with a vtkXMLUnstructuredGridReader. You should get a crash in vtkAbstractArray::GetNumberOfComponents() because the array instance is NULL. This is because vtkXMLDataReader::ReadPieceData() accesses point data arrays by index, and the maximum index is found by looking at how many point data arrays are defined in the XML file. When a data file has more than one data array with the same name, the XML reader counts all of them. However, vtkPointData can have only one array of a particular name. This leads to the array being requested by index being invalid, hence NULL is returned, hence a crash.

The same likely happens for repeat cell arrays.
No tags attached.
? RepeatArrayNameCrash.vtu (1,015) 2015-06-09 09:32
https://www.vtk.org/Bug/file/9813/RepeatArrayNameCrash.vtu
Issue History
2015-06-09 09:32Cory QuammenNew Issue
2015-06-09 09:32Cory QuammenFile Added: RepeatArrayNameCrash.vtu
2015-08-05 10:23Utkarsh AyachitAssigned To => T.J. Corona
2015-08-06 18:23T.J. CoronaNote Added: 0034912
2015-08-06 18:23T.J. CoronaStatusbacklog => closed
2015-08-06 18:23T.J. CoronaResolutionopen => fixed
2015-08-06 18:23T.J. CoronaFixed in Version => 6.3.0
2015-08-06 22:21Cory QuammenNote Added: 0034918
2015-08-07 08:19T.J. CoronaNote Added: 0034921

Notes
(0034912)
T.J. Corona   
2015-08-06 18:23   
Files with multiple point/cell arrays with the same name are now rejected by vtkXMLDataReader.
(0034918)
Cory Quammen   
2015-08-06 22:21   
Hi T.J.,

It would be great if you could copy and paste the commit message with the fix here for reference.

Thanks,
Cory
(0034921)
T.J. Corona   
2015-08-07 08:19   
Hi Cory,

The commit message can be found here:

https://gitlab.kitware.com/vtk/vtk/commit/c3a86fd543f7b216c32ef3fccd4d279629e7f462 [^]

-T.J.