Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void drawShadedTexSubQuad(...,
- const MathUtil::Rectangle<float>* rDest, ...)
- {
- ...
- if (stsq_observer ||
- memcmp(rDest, &tex_sub_quad_data.rdest,
- sizeof(rDest)) != 0 ||
- tex_sub_quad_data.u1 != u1 ||
- tex_sub_quad_data.v1 != v1 ||
- tex_sub_quad_data.u2 != u2 ||
- tex_sub_quad_data.v2 != v2 ||
- tex_sub_quad_data.G != G)
- ...
- }
- This suspicious code was found in Dolphin project by PVS-Studio static code analyzer.
- Warning message is:
- V579 The memcmp function receives the pointer and its size as arguments. It is possibly a mistake. Inspect the third argument. VideoDX11 d3dutil.cpp 598
- 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
Advertisement