| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0015525 | VTK | (No Category) | public | 2015-06-09 09:32 | 2015-08-07 08:19 | ||||
| Reporter | Cory Quammen | ||||||||
| Assigned To | T.J. Corona | ||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | 6.3.0 | ||||||||
| Target Version | Fixed in Version | 6.3.0 | |||||||
| Summary | 0015525: Crash when point arrays are repeated in VTK unstructured grid XML files | ||||||||
| Description | 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.  | ||||||||
| Tags | No tags attached. | ||||||||
| Project | TBD | ||||||||
| Type | crash | ||||||||
| Attached Files | |||||||||
| Relationships | |
| 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.  | 
| Notes | 
| 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 | |
| Issue History | 
| Copyright © 2000 - 2018 MantisBT Team |