[MacRuby] #897: Bus error with OpenSSL::PKey::EC#dsa_sign_asn1.

MacRuby ruby-noreply at macosforge.org
Sun Sep 12 16:34:43 PDT 2010


#897: Bus error with OpenSSL::PKey::EC#dsa_sign_asn1.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 #!ruby
 #$ cat test_ec.rb
 require "openssl"

 data = 'foo'

 group = OpenSSL::PKey::EC::Group.new('secp112r1')

 key = OpenSSL::PKey::EC.new
 key.group = group
 key.generate_key
 p key.dsa_sign_asn1(data)
 }}}

 Result:
 {{{
 $ ruby test_ec.rb
 "0!\x02\x0E\vH\ed\xE6\xC5\xE6\x7FD_\x15T\a\"\x02\x0F\x00\x95\x97V\x11\xFA\xBA%\x87\\\xB8\x16\xEE\x8C1"

 $ macruby test_ec.rb
 zsh: bus error  macruby test_ec.rb
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/897>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list