[vtkusers] BUG: Missing cast operator in vtkImageAccumulate
Pavel Pokutnev
pavel.pokutnev at googlemail.com
Sun Apr 11 05:56:07 EDT 2010
Hello vtk-users,
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100411/f8a30792/attachment.htm>
More information about the vtkusers
mailing list