diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-03 05:12:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-03 05:12:52 +0000 |
commit | b4e5757122e1d9eb89aa3b7a7140d093b5831010 (patch) | |
tree | 9630e0bf769462731b288ccd064ef10812954233 /vm.c | |
parent | 29d6f77fcd00384e86ce94dc643a16fa18f13b73 (diff) | |
download | ruby-b4e5757122e1d9eb89aa3b7a7140d093b5831010.tar.gz |
cont.c: handle errors for getcontext()
It may raise an error in a certain security configuration.
It is very likely to trigger a segmentation fault if `getcontext()` failed silently
and we just let it keep going.
Related to https://bugs.ruby-lang.org/issues/14883
[Fix GH-1903]
Based on the patch from Lion Yang <lion@aosc.io>
From: Lion Yang <lion@aosc.io>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions