[vtk-developers] Strange problem with vtkPLYReader

Bill Lorensen bill.lorensen at gmail.com
Thu Aug 10 13:32:45 EDT 2017


I found the error with valgrind...


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
>
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtk-developers mailing list