[vtk-developers] Help with vtkDataSetSurfaceFilter.cxx:2144...

Bill Lorensen bill.lorensen at gmail.com
Fri Mar 8 16:53:53 EST 2013


Not sure if it is related, but this test if failing:
http://open.cdash.org/testDetails.php?test=162737499&build=2839068


On Fri, Mar 8, 2013 at 3:55 PM, Berk Geveci <berk.geveci at kitware.com> wrote:

> Sounds like Charles' code. I CC'ed him.
>
> On Fri, Mar 8, 2013 at 3:50 PM, Sean McBride <sean at rogue-research.com>
> wrote:
> > Hi folks,
> >
> > On 18 different VTK tests, clang's sanitizer complains about:
> >
> > Filters/Geometry/vtkDataSetSurfaceFilter.cxx:2144:7: runtime error:
> index 4 out of bounds for type 'vtkIdType [4]'
> >
> > I believe it is right to complain.  When 'numPts' is > 4, the write to
> 'ptArray' goes past the end.  The read of 'tab' is ok, as it is allocated
> to be big enough:
> >
> > vtkIdType* tab = new vtkIdType[numPts];
> >
> > But AFAICT, 'ptArray' is always 4 items big, despite the existence of
> the sizeofFastQuad() function and the comment "actually a variable length
> array.  MUST be last"
> >
> > Someone out there know this code?
> >
> > Thanks,
> >
> > --
> > ____________________________________________________________
> > Sean McBride, B. Eng                 sean at rogue-research.com
> > Rogue Research                        www.rogue-research.com
> > Mac Software Developer              Montréal, Québec, Canada
> >
> >
> > _______________________________________________
> > 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
> >
> _______________________________________________
> 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
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130308/29f5435e/attachment.html>


More information about the vtk-developers mailing list