Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CAST256::Base::UncheckedSetKey(const byte *userKey,
- unsigned int keylength, const NameValuePairs &)
- {
- AssertValidKeyLength(keylength);
- word32 kappa[8];
- ...
- memset(kappa, 0, sizeof(kappa));
- }
- This suspicious code was found in Crypto++ project by PVS-Studio static code analyzer.
- Warning message is:
- V597 The compiler could delete the 'memset' function call, which is used to flush 'kappa' buffer. The RtlSecureZeroMemory() function should be used to erase the private data. cryptlib cast.cpp 293
- 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