[前][次][番号順一覧][スレッド一覧]

ruby-changes:40747

From: nobu <ko1@a...>
Date: Tue, 1 Dec 2015 10:39:30 +0900 (JST)
Subject: [ruby-changes:40747] nobu:r52826 (trunk): missing.h: explicit_bzero by SecureZeroMemory

nobu	2015-12-01 10:39:24 +0900 (Tue, 01 Dec 2015)

  New Revision: 52826

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52826

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

  Modified files:
    trunk/include/ruby/missing.h
Index: include/ruby/missing.h
===================================================================
--- include/ruby/missing.h	(revision 52825)
+++ include/ruby/missing.h	(revision 52826)
@@ -252,6 +252,8 @@ explicit_bzero_by_memset_s(void *b, size https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L252
     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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]