[vtk-developers] Strange problem with vtkPLYReader

Will Schroeder will.schroeder at kitware.com
Thu Aug 10 13:38:28 EDT 2017


Sean-

In which case one may reasonably argue that the PLYReader is indeed broken,
> for failing to reject invalid files.


You are opening a can of worms here. I would humbly suggest that in most
all file formats in VTK if the data is invalid then bad things will happen.
If you want to make a sanity check as part of the read process then do it
as an optional step because fully vetting data can take forever.

Best,
W


On Thu, Aug 10, 2017 at 1:29 PM, Sean McBride <sean at rogue-research.com>
wrote:

> On Thu, 10 Aug 2017 13:06:18 -0400, Bill Lorensen said:
>
> >The PLYReader is fine. The file is not a proper PLY file. The face
> >indices should be zero-based, but in this file they are one-based. So,
> >the face
> >3 1 2 5
> >is referencing an point 5 which exceeds the points array which has
> >tuples from 0 - 4 (5 points).
>
> In which case one may reasonably argue that the PLYReader is indeed
> broken, for failing to reject invalid files.  Under ASan/valgrind, would
> the PLYReader crash with this file?
>
> Sean
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>


-- 
William J. Schroeder, PhD
Kitware, Inc. - Building the World's Technical Computing Software
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com
http://www.kitware.com
(518) 881-4902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170810/c9068e09/attachment.html>


More information about the vtk-developers mailing list