1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

missing.h: explicit_bzero by SecureZeroMemory

* include/ruby/missing.h (explicit_bzero): use SecureZeroMemory on
  Windows.  assume Windows XP or later at compile time.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-01 01:39:24 +00:00
parent a73f0f2cae
commit e84000fcba

View file

@ -252,6 +252,8 @@ explicit_bzero_by_memset_s(void *b, size_t len)
memset_s(b, len, 0, len);
}
# define explicit_bzero(b, len) explicit_bzero_by_memset_s(b, len)
# elif defined _WIN32
# define explicit_bzero(b, len) SecureZeroMemory(b, len)
# endif
#endif