New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test warning related with Mesh and array out of bounds #438

phcerdan opened this Issue Jan 23, 2019 · 0 comments


None yet
1 participant
Copy link

phcerdan commented Jan 23, 2019

[1065/1697] Building CXX object Modules/Nonunit/IntegratedTest...ITKIntegratedTestTestDriver.dir/itkBasicFiltersPrintTest.cxx.o
In function ‘int itkMeshTest(int, char**)’:
cc1plus: warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ forming offset [25, 48] is out of the bounds [0, 24] of object ‘quadraticTrianglePoints’ with type ‘itk::Mesh<int>::PointIdentifier [3]’ {aka ‘long unsigned int [3]’} [-Warray-bounds]
Modules/Core/Mesh/test/itkMeshTest.cxx:479:31: note: ‘quadraticTrianglePoints’ declared here
     MeshType::PointIdentifier quadraticTrianglePoints[3] = {0,1,2};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment