[vtk-developers] [VTK 0012786]: BUG in vtkFixedPointVolumeRayCastMapper

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 9 09:35:25 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12786 
====================================================================== 
Reported By:                Pavel Pokutnev
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12786
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   high
Status:                     backlog
Project:                    TBD 
Type:                       crash 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-12-09 09:35 EST
Last Modified:              2011-12-09 09:35 EST
====================================================================== 
Summary:                    BUG in vtkFixedPointVolumeRayCastMapper
Description: 
There are some int overflow bugs in vtkFixedPointVolumeRayCastMapper, if used
with big volumes [2000 * 2000 * 2000] > [max(int) = 2147483647] and shading
enabled.

BUG 1: Line 2787 / 2788
  int sliceSize = dim[0]*dim[1]*((independent)?(components):(1));
  int numSlices = dim[2];
should be:
  vtkIdType sliceSize = dim[0]*dim[1]*((independent)?(components):(1));
  vtkIdType numSlices = dim[2];
because of line 2840, 2848, … where the actual int overflow happens (numSlices
* sliceSize)!

BUG 2: Line 98
  int           x, y, z;
should be:
  vtkIdType           x, y, z;
because of line 171, where the actual int overflow happens (dptr = dataPtr + z *
dim[0] * dim[1] + y * dim[0] + xlow;)

Attached to this bug report you will find the fixed version of
vtkFixedPointVolumeRayCastMapper.cxx.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-12-09 09:35 Pavel Pokutnev New Issue                                    
2011-12-09 09:35 Pavel Pokutnev File Added: vtkFixedPointVolumeRayCastMapper.cxx
                   
======================================================================




More information about the vtk-developers mailing list