Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D3D11_STATE_CACHE_INLINE void GetBlendState(
- ID3D11BlendState** BlendState, float BlendFactor[4],
- uint32* SampleMask)
- {
- ....
- FMemory::Memcmp(BlendFactor, CurrentBlendFactor,
- sizeof(CurrentBlendFactor));
- ....
- }
- This is what should have been written here: FMemory::Memcpy
- This suspicious code was found in UnrealEngine4 project by PVS-Studio static code analyzer.
- Warning message is:
- V530 The return value of function 'Memcmp' is required to be utilized. d3d11statecacheprivate.h 547
- 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