The ZeroMemory() function was available in Visual C++ to fill blocks of memory with zeroes, say the password variable after authentication, or credit card details after authorization. That, however, wasn’t secure enough. The ZeroMemory function could easily get optimized out by the compiler, if the block of memory it filled was never used again. The compiler would observe that the memory being modified was never referenced again, and so silently ignore the call to ZeroMemory.
SecureZeroMemory fixes that problem. It ensures that the memory is filled with zeroes even if the memory is never used again.
SecureZeroMemory()和ZeroMemory()的區別
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
VC界面顯示圖片(BMP)
wwtu_zfj
2018-08-27 19:32:08
使用vc顯示bmp位圖
wwtu_zfj
2018-08-27 19:32:06
fatal error C1083: 無法打開包括文件:“new.h”: No such file or directory
wel_leave
2018-08-27 19:00:57
#include和 #import區別
wel_leave
2018-08-27 19:00:57
contain remnants of that class
czg1984
2018-08-27 18:54:55
如何將字符文本寫在指定矩形的正中心
czg1984
2018-08-27 18:54:55
關於CStatic類不能重載ON_WM_LBUTTONDOWN消息的問題
czg1984
2018-08-27 18:54:55
轉:MFC的模塊狀態(AfxGetApp()和AFX_MANAGE_STATE())
czg1984
2018-08-27 18:54:55
VC知識庫BLOG-九月鷹飛-談談父窗口和所有者窗口
czg1984
2018-08-27 18:54:55
COM組件的內部流程簡介
czg1984
2018-08-27 18:54:55
vs2008 time_t問題
czg1984
2018-08-27 18:54:54
社會工程學解決VS2008升級VS2010問題 之一 Lnk2038
i华仔
2018-08-27 18:13:30
PE文件格式詳解(下)
feidegengao
2018-08-27 17:13:40