Skip to content

cont.c: handle errors for getcontext()#1903

Closed
LionNatsu wants to merge 2 commits intoruby:trunkfrom
LionNatsu:patch-1
Closed

cont.c: handle errors for getcontext()#1903
LionNatsu wants to merge 2 commits intoruby:trunkfrom
LionNatsu:patch-1

Conversation

@LionNatsu
Copy link
Copy Markdown

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

LionNatsu added 2 commits July 3, 2018 11:32
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
@matzbot matzbot closed this in 8fc203b Jul 3, 2018
nurse pushed a commit to nurse/ruby that referenced this pull request Jul 4, 2018
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 rubyGH-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
@hsbt hsbt added the Backport label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants