Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Triangles::UpdateModelTangentsUseTCoords(....)
- {
- ....
- Float2 locTCoord[2];
- int curr;
- for (curr = 0; curr < 3; ++curr)
- {
- ....
- locTCoord[curr] = vba.TCoord<Float2>(0, k);
- }
- ....
- }
- This suspicious code was found in WildMagic5 project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The value of 'curr' index could reach 2. wm5triangles.cpp 365
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment