¡@

Home 

c++ Programming Glossary: securezeromemory

Is it possible to guarantee code doing memory writes is not optimized away in C++?

http://stackoverflow.com/questions/13268657/is-it-possible-to-guarantee-code-doing-memory-writes-is-not-optimized-away-in-c

that memory writes are emitted by the compiler. Here's how SecureZeroMemory function in Visual C runtime library is implemented WinNT.h.. library is implemented WinNT.h FORCEINLINE PVOID RtlSecureZeroMemory __in_bcount cnt PVOID ptr __in SIZE_T cnt volatile char vptr.. However if I use it on a local variable char buffer size SecureZeroMemory buffer size the variable itself is not volatile . So according..

How-to ensure that compiler optimizations don't introduce a security risk?

http://stackoverflow.com/questions/3785366/how-to-ensure-that-compiler-optimizations-dont-introduce-a-security-risk

You need to use specifically designed function like SecureZeroMemory to prevent optimizations from modifying your code behavior...

how does one securely clear std::string?

http://stackoverflow.com/questions/5698002/how-does-one-securely-clear-stdstring

I store the password as a char array I can use APIs like SecureZeroMemory to get rid of the sensitive data from the process memory. However.. allocator U throw void deallocate pointer p size_type num SecureZeroMemory void p num std allocator T deallocate p num typedef std basic_string..

Does using SecureZeroMemory() really help to make the application more secure?

http://stackoverflow.com/questions/786093/does-using-securezeromemory-really-help-to-make-the-application-more-secure

using SecureZeroMemory really help to make the application more secure There's a SecureZeroMemory.. really help to make the application more secure There's a SecureZeroMemory function in WinAPI that is designed for erasing the memory used..