MantisBT - VTK
View Issue Details
0013057VTK(No Category)public2012-04-04 13:062014-10-03 09:26
Tim Hutton 
Bill Lorensen 
normalminoralways
closedfixed 
5.8.0 
6.2.06.2.0 
Release
crash
0013057: bad input to vtkXMLImageDataReader causes floating point exception (SIGFPE)
The following file (also attached) crashes our VTK application and also Paraview, giving a floating point exception.

<?xml version="1.0"?>
<VTKFile type="ImageData" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <ImageData WholeExtent="0 63 0 63 0 63" Origin="0 0 0" Spacing="1 1 1">
    <Piece Extent="0 63 0 63 0 63">
      <PointData Scalars="ImageScalars">
        <DataArray type="Float32" Name="ImageScalars" format="appended" RangeMin="0" RangeMax="0" offset="0" />
      </PointData>
      <CellData>
      </CellData>
    </Piece>
  </ImageData>
  <AppendedData encoding="base64">
   _IAAAAA
  </AppendedData></VTKFile>

This file was produced by manual editing. Ideally this would give an error on loading but wouldn't crash.
Try to read file with XMLImageDataReader.
hackaton
? edited_image_BAD.vti (543) 2012-04-04 13:06
https://www.vtk.org/Bug/file/9144/edited_image_BAD.vti
Issue History
2012-04-04 13:06Tim HuttonNew Issue
2012-04-04 13:06Tim HuttonFile Added: edited_image_BAD.vti
2014-09-30 10:11Bill LorensenTag Attached: hackaton
2014-09-30 10:11Bill LorensenAssigned To => Bill Lorensen
2014-09-30 10:11Bill LorensenStatusbacklog => tabled
2014-09-30 12:52Bill LorensenProjectTBD => Release
2014-09-30 12:52Bill LorensenReproducibilityhave not tried => always
2014-09-30 12:52Bill LorensenSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=840#r840
2014-09-30 13:52Bill LorensenNote Added: 0033383
2014-09-30 21:57Andy BauerNote Added: 0033384
2014-10-01 12:40Berk GeveciStatustabled => backlog
2014-10-02 14:33Ben Boeckel (Kitware)Statusbacklog => gerrit review
2014-10-03 09:25Bill LorensenNote Added: 0033569
2014-10-03 09:26Bill LorensenStatusgerrit review => closed
2014-10-03 09:26Bill LorensenResolutionopen => fixed
2014-10-03 09:26Bill LorensenFixed in Version => 6.2.0
2014-10-03 09:26Bill LorensenTarget Version => 6.2.0

Notes
(0033383)
Bill Lorensen   
2014-09-30 13:52   
Submitted gerrit patch:
http://review.source.kitware.com/#/t/4736/ [^]
(0033384)
Andy Bauer   
2014-09-30 21:57   
Others were seeing similar issues so I'd like to check on this during the VTK hackathon on 10/2/2014 to make sure this gets resolved. I think the issue I saw it with was with either the vtkXMLStructuredGridReader or the vtkXMLRectilinearGridReader.
(0033569)
Bill Lorensen   
2014-10-03 09:25   
Gerrit patch:
http://review.source.kitware.com/#/t/4736/ [^]