[vtk-developers] BUG: Missing cast operator in vtkImageAccumulate

Dave Partyka dave.partyka at kitware.com
Mon Apr 12 08:30:11 EDT 2010


This looks reasonable I'll try and sneak it in.

On Sun, Apr 11, 2010 at 2:52 PM, Pavel Pokutnev <
pavel.pokutnev at googlemail.com> wrote:

> Hello vtk-developers,
>
> FYI: I just submitted a bug, that causes a crash due to buffer overflow.
>
> There is a missing cast operator in vtkImageAccumulate.cxx line 222.
>
> The line:
>     sumSqr[idxC] += (*subPtr * *subPtr);
> should be:
>     sumSqr[idxC] += (static_cast<double>(*subPtr) * (*subPtr));
>
> Bug Tracker link:
> http://public.kitware.com/Bug/view.php?id=10534
>
> I hope the fix can be made until VTK 5.6 release.
>
> Best regards!
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100412/48735727/attachment.html>


More information about the vtk-developers mailing list