diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-16 18:13:10 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-16 20:06:40 +0900 |
commit | 4bdd207b1a2ed20626c502cfc083d4f2d4969bcb (patch) | |
tree | 766fc0bd4173d27cd42cbc436f3970c5232c23f7 /eval_safe.ci | |
parent | 1826991f26249735e29b06778723f4808f0ee1dc (diff) | |
download | ruby-4bdd207b1a2ed20626c502cfc083d4f2d4969bcb.tar.gz |
ext/openssl: check that the SSL object is still set after reacquiring GVL
Fix the segmentation fault due to use after free of SSL object.
OpenSSL::SSL::SSLSocket#stop frees the SSL object immediately after
SSL_shutdown(), but since some method, such as SSLSocket#connect
releases the GVL while waiting the peer, there is a good chance that the
SSL object is freed from another thread and this leads to a segmentation
fault.
Diffstat (limited to 'eval_safe.ci')
0 files changed, 0 insertions, 0 deletions