[vtk-developers] BUG: Missing cast operator in vtkImageAccumulate
Dave Partyka
dave.partyka at kitware.com
Mon Apr 12 17:02:41 EDT 2010
FYI this is fixed on HEAD and on the Branches.
On Mon, Apr 12, 2010 at 8:30 AM, Dave Partyka <dave.partyka at kitware.com>wrote:
> 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/c874f55c/attachment.html>
More information about the vtk-developers
mailing list