vtk-m2/vtkm/rendering/raytracing
Kenneth Moreland 8834458238 Fix use of uninitialized invSpacing value
The SamplerRect worklet had an error where it was possible that the
invSpacing stack-local values could be used uninitialized. On the first
iteration of the loop in the SamplerRect operation, it calls LocateCell,
which is supposed to set invSpacing. Under most conditions it does, but
if one of the ray directions is 0 (which can happen with axis-aligned
views), one of the invSpacing dimensions was skipped, leaving the value
to whatever garbage happened to be on the stack. Later, the invSpacing
value was used to interpolate a scalar, which under some circumstances
could cause an array index error when looking up a color in the color
map.

This fix changes the condition for when the ray direction is 0 to still
initialize invSpacing.
2016-06-07 09:36:56 -06:00
..
BoundingVolumeHierarchy.h Fix multiple warnings about unused params and precision loss 2016-05-19 17:15:06 -06:00
Camera.h Change vtkm::rendering::RenderSurface to Canvas 2016-06-02 16:04:13 -06:00
CMakeLists.txt Fixing typo in CMakeLists 2016-05-18 16:38:15 -07:00
Ray.h Fix multiple warnings about unused params and precision loss 2016-05-19 17:15:06 -06:00
RayTracer.h Change vtkm::rendering::RenderSurface to Canvas 2016-06-02 16:04:13 -06:00
RayTracingTypeDefs.h Ray Tracer 2016-05-17 22:13:36 -07:00
TriangleIntersector.h Fix warnings about out of order member initialization 2016-05-19 17:27:16 -06:00
VolumeRendererStructured.h Fix use of uninitialized invSpacing value 2016-06-07 09:36:56 -06:00
Worklets.h Add missing copyright headers. 2016-03-28 11:16:35 -04:00