[ruby-cvs:70926] nobu:r63835 (trunk): cont.c: handle errors for getcontext()

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jul 3 14:12:52 JST 2018


nobu	2018-07-03 14:12:52 +0900 (Tue, 03 Jul 2018)

  New Revision: 63835

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63835

  Log:
    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 at aosc.io>
    
    From: Lion Yang <lion at aosc.io>

  Modified files:
    trunk/cont.c


More information about the ruby-cvs mailing list