aboutsummaryrefslogtreecommitdiffstats
path: root/compar.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-16 18:13:10 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-04-16 20:06:40 +0900
commit4bdd207b1a2ed20626c502cfc083d4f2d4969bcb (patch)
tree766fc0bd4173d27cd42cbc436f3970c5232c23f7 /compar.c
parent1826991f26249735e29b06778723f4808f0ee1dc (diff)
downloadruby-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 'compar.c')
0 files changed, 0 insertions, 0 deletions