Stack buffer overflow in vtkCellTypeSource::GenerateLagrangeWedges
Version
macOS debug build or ParaView SHA 1ba97f31
Steps to reproduce
- Laun ParaView
- Sources -> Alphabetical -> Unstructured Cell Types
- Set Cell Type property to "Lagrange Wedge". Click "Apply". Crash.
Relevant portion of backtrace
SUMMARY: AddressSanitizer: stack-buffer-overflow vtkLagrangeWedge.cxx:841 vtkLagrangeWedge::PointIndexFromIJK(int, int, int, int const*)
* thread #1: tid = 0x12ad3d, 0x000000011b871dc0 libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie(), queue = 'com.apple.main-thread', stop reason = Stack buffer overflow detected
* frame #0: 0x000000011b871dc0 libclang_rt.asan_osx_dynamic.dylib`__asan::AsanDie()
frame #1: 0x000000011b8756ed libclang_rt.asan_osx_dynamic.dylib`__sanitizer::Die() + 29
frame #2: 0x000000011b870bd1 libclang_rt.asan_osx_dynamic.dylib`__asan::ScopedInErrorReport::~ScopedInErrorReport() + 321
frame #3: 0x000000011b8709a6 libclang_rt.asan_osx_dynamic.dylib`__asan::ScopedInErrorReport::~ScopedInErrorReport() + 6
frame #4: 0x000000011b870525 libclang_rt.asan_osx_dynamic.dylib`__asan_report_error + 3925
frame #5: 0x000000011b870e17 libclang_rt.asan_osx_dynamic.dylib`__asan_report_load4 + 39
frame #6: 0x0000000117bd1af9 libvtkCommonDataModel-pv5.6.1.dylib`vtkLagrangeWedge::PointIndexFromIJK(i=1, j=0, k=0, order=0x00007fff5fbf4920) + 569 at vtkLagrangeWedge.cxx:841
frame #7: 0x0000000111fc5ed0 libvtkFiltersSources-pv5.6.1.dylib`vtkCellTypeSource::GenerateLagrangeWedges(this=0x000060f00004c5d0, output=0x000061600168a280, extent=0x00007fff5fbf6560) + 15664 at vtkCellTypeSource.cxx:1609
frame #8: 0x0000000111f93a82 libvtkFiltersSources-pv5.6.1.dylib`vtkCellTypeSource::RequestData(this=0x000060f00004c5d0, (null)=0x000060600127ad20, (null)=0x0000000000000000, outputVector=0x0000606000b79200) + 10514 at vtkCellTypeSource.cxx:372
frame #9: 0x0000000117436c8d libvtkCommonExecutionModel-pv5.6.1.dylib`vtkUnstructuredGridAlgorithm::ProcessRequest(this=0x000060f00004c5d0, request=0x000060600127ad20, inputVector=0x0000000000000000, outputVector=0x0000606000b79200) + 221 at vtkUnstructuredGridAlgorithm.cxx:81
frame #10: 0x00000001172c5af0 libvtkCommonExecutionModel-pv5.6.1.dylib`vtkExecutive::CallAlgorithm(this=0x00006110007a78c0, request=0x000060600127ad20, direction=1, inInfo=0x0000000000000000, outInfo=0x0000606000b79200) + 992 at vtkExecutive.cxx:773
frame #11: 0x00000001172ad21a libvtkCommonExecutionModel-pv5.6.1.dylib`vtkDemandDrivenPipeline::ExecuteData(this=0x00006110007a78c0, request=0x000060600127ad20, inInfo=0x0000000000000000, outInfo=0x0000606000b79200) + 346 at vtkDemandDrivenPipeline.cxx:490
frame #12: 0x000000011728befb libvtkCommonExecutionModel-pv5.6.1.dylib`vtkCompositeDataPipeline::ExecuteData(this=0x00006110007a78c0, request=0x000060600127ad20, inInfoVec=0x0000000000000000, outInfoVec=0x0000606000b79200) + 2763 at vtkCompositeDataPipeline.cxx:171
frame #13: 0x00000001172ab716 libvtkCommonExecutionModel-pv5.6.1.dylib`vtkDemandDrivenPipeline::ProcessRequest(this=0x00006110007a78c0, request=0x000060600127ad20, inInfoVec=0x0000000000000000, outInfoVec=0x0000606000b79200) + 2630 at vtkDemandDrivenPipeline.cxx:273
frame #14: 0x00000001173dde2c libvtkCommonExecutionModel-pv5.6.1.dylib`vtkStreamingDemandDrivenPipeline::ProcessRequest(this=0x00006110007a78c0, request=0x000060600127ad20, inInfoVec=0x0000000000000000, outInfoVec=0x0000606000b79200) + 7212 at vtkStreamingDemandDrivenPipeline.cxx:341
frame #15: 0x0000000117291eba libvtkCommonExecutionModel-pv5.6.1.dylib`vtkCompositeDataPipeline::ForwardUpstream(this=0x0000611000336480, request=0x000060600127ad20) + 2170 at vtkCompositeDataPipeline.cxx:758
frame #16: 0x00000001172ab5f7 libvtkCommonExecutionModel-pv5.6.1.dylib`vtkDemandDrivenPipeline::ProcessRequest(this=0x0000611000336480, request=0x000060600127ad20, inInfoVec=0x0000602000760850, outInfoVec=0x000060600127b620) + 2343 at vtkDemandDrivenPipeline.cxx:259
frame #17: 0x00000001173dde2c libvtkCommonExecutionModel-pv5.6.1.dylib`vtkStreamingDemandDrivenPipeline::ProcessRequest(this=0x0000611000336480, request=0x000060600127ad20, inInfoVec=0x0000602000760850, outInfoVec=0x000060600127b620) + 7212 at vtkStreamingDemandDrivenPipeline.cxx:341
frame #18: 0x00000001172acd0f libvtkCommonExecutionModel-pv5.6.1.dylib`vtkDemandDrivenPipeline::UpdateData(this=0x0000611000336480, outputPort=0) + 2159 at vtkDemandDrivenPipeline.cxx:440
frame #19: 0x00000001173de476 libvtkCommonExecutionModel-pv5.6.1.dylib`vtkStreamingDemandDrivenPipeline::Update(this=0x0000611000336480, port=0, requests=0x0000000000000000) + 822 at vtkStreamingDemandDrivenPipeline.cxx:416
frame #20: 0x00000001173de12b libvtkCommonExecutionModel-pv5.6.1.dylib`vtkStreamingDemandDrivenPipeline::Update(this=0x0000611000336480, port=0) + 155 at vtkStreamingDemandDrivenPipeline.cxx:378
frame #21: 0x00000001077aba6b libvtkPVServerImplementationCore-pv5.6.1.dylib`vtkSISourceProxy::UpdatePipeline(this=0x00006100002a3240, port=0, time=0, doTime=true) + 1035 at vtkSISourceProxy.cxx:249