FFI should not allow calling of rb_* functions from cext
--------------------------------------------------------

                 Key: JRUBY-5766
                 URL: http://jira.codehaus.org/browse/JRUBY-5766
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
            Reporter: Wayne Meissner
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.6.2



Once a C extension is loaded, all the rb_* functions defined by the cext 
compatibility layer can be accessed from FFI/DL/win32api, which, whilst 
extremely rare, is something people have done.  However, calling those 
functions like that, will result in a spectacular JVM crash if done on JRuby.

Hence we should probably explicitly disallow access to any function defined by 
the cext layer, from FFI (upon which JRuby's ruby/dl and Win32API layers are 
also built).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to