summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-22 03:33:56 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-22 03:33:56 +0000
commitc2fdfb05a4db5cec1193ba3f5a2ef315d7698281 (patch)
tree1287d33034c2b5506e9158d4808b35025f71a812 /ChangeLog
parent85ddcb935791939d107cf11db7b3839f82b95cb0 (diff)
merge https://github.com/ruby/openssl/commit/3af2635f117f8da563d180bc1c58702aecb16e0c
patched by Kazuki Yamaguchi <k@rhe.jp> bio: prevent possible GC issue in ossl_obj2bio() Prevent the new object created by StringValue() from being GCed. Luckily, as none of the callers of ossl_obj2bio() reads from the returned BIO after possible triggering GC, this has not been a real problem. As a bonus, ossl_protect_obj2bio() function which is no longer used anywhere is removed. merge https://github.com/ruby/openssl/commit/f842b0d5c5e37527c11954a4b7a98c8d9cc57865 patched by Kazuki Yamaguchi <k@rhe.jp> bio: do not use the FILE BIO method in ossl_obj2bio() Read everything from an IO object into a String first and use the memory buffer BIO method just as we do for String inputs. For MSVC builds, the FILE BIO method uses the "UPLINK" interface that requires the application to provide OPENSSL_Applink() function. For us, the "application" means ruby.exe, in which we can't do anything. As a workaround, avoid using the FILE BIO method at all. Usually private keys or X.509 certificates aren't that large and the temporarily increased memory usage hopefully won't be an issue. ext/openssl/ossl_version.h (OpenSSL::VERSION): bump to 1.1.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog33
1 files changed, 33 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 10675ff13f..fc12b75d38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,36 @@
+Thu Mar 22 12:28:23 2018 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ merge https://github.com/ruby/openssl/commit/3af2635f117f8da563d180bc1c58702aecb16e0c
+ patched by Kazuki Yamaguchi <k@rhe.jp>
+
+ bio: prevent possible GC issue in ossl_obj2bio()
+
+ Prevent the new object created by StringValue() from being GCed.
+ Luckily, as none of the callers of ossl_obj2bio() reads from the
+ returned BIO after possible triggering GC, this has not been a real
+ problem.
+
+ As a bonus, ossl_protect_obj2bio() function which is no longer used
+ anywhere is removed.
+
+ merge https://github.com/ruby/openssl/commit/f842b0d5c5e37527c11954a4b7a98c8d9cc57865
+ patched by Kazuki Yamaguchi <k@rhe.jp>
+
+ bio: do not use the FILE BIO method in ossl_obj2bio()
+
+ Read everything from an IO object into a String first and use the
+ memory buffer BIO method just as we do for String inputs.
+
+ For MSVC builds, the FILE BIO method uses the "UPLINK" interface that
+ requires the application to provide OPENSSL_Applink() function. For us,
+ the "application" means ruby.exe, in which we can't do anything. As a
+ workaround, avoid using the FILE BIO method at all.
+
+ Usually private keys or X.509 certificates aren't that large and the
+ temporarily increased memory usage hopefully won't be an issue.
+
+ ext/openssl/ossl_version.h (OpenSSL::VERSION): bump to 1.1.1.
+
Thu Mar 22 11:24:43 2018 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (set_pioinfo_extra): use more reliable way to search