View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015525VTK(No Category)public2015-06-09 09:322015-08-07 08:19
ReporterCory Quammen 
Assigned ToT.J. Corona 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.3.0 
Target VersionFixed in Version6.3.0 
Summary0015525: Crash when point arrays are repeated in VTK unstructured grid XML files
DescriptionLoad 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.
TagsNo tags attached.
ProjectTBD
Typecrash
Attached Files? file icon RepeatArrayNameCrash.vtu [^] (1,015 bytes) 2015-06-09 09:32

 Relationships

  Notes
(0034912)
T.J. Corona (developer)
2015-08-06 18:23

Files with multiple point/cell arrays with the same name are now rejected by vtkXMLDataReader.
(0034918)
Cory Quammen (developer)
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 (developer)
2015-08-07 08:19

Hi Cory,

The commit message can be found here:

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

-T.J.

 Issue History
Date Modified Username Field Change
2015-06-09 09:32 Cory Quammen New Issue
2015-06-09 09:32 Cory Quammen File Added: RepeatArrayNameCrash.vtu
2015-08-05 10:23 Utkarsh Ayachit Assigned To => T.J. Corona
2015-08-06 18:23 T.J. Corona Note Added: 0034912
2015-08-06 18:23 T.J. Corona Status backlog => closed
2015-08-06 18:23 T.J. Corona Resolution open => fixed
2015-08-06 18:23 T.J. Corona Fixed in Version => 6.3.0
2015-08-06 22:21 Cory Quammen Note Added: 0034918
2015-08-07 08:19 T.J. Corona Note Added: 0034921


Copyright © 2000 - 2018 MantisBT Team